OHOS-Screen.md 3.3 KB
Newer Older
W
wenjun 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
# OHOS::Screen<a name="ZH-CN_TOPIC_0000001054918173"></a>

## **Overview**<a name="section847462150093533"></a>

**Related Modules:**

[Graphic](Graphic.md)

**Description:**

Represents the screen info of the device. 

**Since:**

1.0

**Version:**

1.0

## **Summary**<a name="section797598686093533"></a>

## Public Member Functions<a name="pub-methods"></a>

<a name="table1221057564093533"></a>
<table><thead align="left"><tr id="row718184498093533"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p613819502093533"><a name="p613819502093533"></a><a name="p613819502093533"></a>Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1296401363093533"><a name="p1296401363093533"></a><a name="p1296401363093533"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row4688817093533"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p305208188093533"><a name="p305208188093533"></a><a name="p305208188093533"></a><a href="Graphic.md#ga2ce903f605e04f8d42d561b72944b30b">GetWidth</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1100668186093533"><a name="p1100668186093533"></a><a name="p1100668186093533"></a>uint16_t&nbsp;</p>
<p id="p30589734093533"><a name="p30589734093533"></a><a name="p30589734093533"></a>Obtains the width of this screen. </p>
</td>
</tr>
<tr id="row477434079093533"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p288589149093533"><a name="p288589149093533"></a><a name="p288589149093533"></a><a href="Graphic.md#ga65e3a923208b28f5a5f3a4be57d12996">GetHeight</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p874854873093533"><a name="p874854873093533"></a><a name="p874854873093533"></a>uint16_t&nbsp;</p>
<p id="p1065318876093533"><a name="p1065318876093533"></a><a name="p1065318876093533"></a>Obtains the height of this screen. </p>
</td>
</tr>
</tbody>
</table>

## Static Public Member Functions<a name="pub-static-methods"></a>

<a name="table1714277565093533"></a>
<table><thead align="left"><tr id="row1080711385093533"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p711559615093533"><a name="p711559615093533"></a><a name="p711559615093533"></a>Static Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1512175985093533"><a name="p1512175985093533"></a><a name="p1512175985093533"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1605699378093533"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p729265409093533"><a name="p729265409093533"></a><a name="p729265409093533"></a><a href="Graphic.md#ga25c8efee1241f371b5d30df9817830a6">GetInstance</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p879971081093533"><a name="p879971081093533"></a><a name="p879971081093533"></a>static <a href="OHOS-Screen.md">Screen</a> &amp;&nbsp;</p>
<p id="p308955772093533"><a name="p308955772093533"></a><a name="p308955772093533"></a>Obtains a singleton <strong id="b533806987093533"><a name="b533806987093533"></a><a name="b533806987093533"></a><a href="OHOS-Screen.md">Screen</a></strong> instance. </p>
</td>
</tr>
</tbody>
</table>