OHOS-Theme.md 8.8 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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
# OHOS::Theme<a name="ZH-CN_TOPIC_0000001055198164"></a>

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

**Related Modules:**

[Graphic](Graphic.md)

**Description:**

Defines the theme class used to define the functions related to the styles of different components. 

**Since:**

1.0

**Version:**

1.0

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

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

<a name="table1102083774093536"></a>
<table><thead align="left"><tr id="row1006749798093536"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p630318972093536"><a name="p630318972093536"></a><a name="p630318972093536"></a>Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1138039410093536"><a name="p1138039410093536"></a><a name="p1138039410093536"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1587603246093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1906835455093536"><a name="p1906835455093536"></a><a name="p1906835455093536"></a><a href="Graphic.md#ga375bdd5a61da0f2bc437a531c8958d70">Theme</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p697953210093536"><a name="p697953210093536"></a><a name="p697953210093536"></a>&nbsp;</p>
<p id="p1784604376093536"><a name="p1784604376093536"></a><a name="p1784604376093536"></a>A constructor used to create a <strong id="b803591978093536"><a name="b803591978093536"></a><a name="b803591978093536"></a><a href="OHOS-Theme.md">Theme</a></strong> instance. </p>
</td>
</tr>
<tr id="row1957092820093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1124817926093536"><a name="p1124817926093536"></a><a name="p1124817926093536"></a><a href="Graphic.md#ga7de1b9b039dd5aee8493f4aad889358f">~Theme</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p472369370093536"><a name="p472369370093536"></a><a name="p472369370093536"></a>virtual&nbsp;</p>
<p id="p943404955093536"><a name="p943404955093536"></a><a name="p943404955093536"></a>A destructor used to delete the <strong id="b350802514093536"><a name="b350802514093536"></a><a name="b350802514093536"></a><a href="OHOS-Theme.md">Theme</a></strong> instance. </p>
</td>
</tr>
<tr id="row3718749093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1377259417093536"><a name="p1377259417093536"></a><a name="p1377259417093536"></a><a href="Graphic.md#ga141064843f4b5524b91f3f7c3cb21d11">GetMainStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1391561826093536"><a name="p1391561826093536"></a><a name="p1391561826093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1561990222093536"><a name="p1561990222093536"></a><a name="p1561990222093536"></a>Obtains the basic style. </p>
</td>
</tr>
<tr id="row1661593104093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1951431028093536"><a name="p1951431028093536"></a><a name="p1951431028093536"></a><a href="Graphic.md#ga0b1ce70a05042464e32e5bbddbc8f715">GetButtonStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p348181663093536"><a name="p348181663093536"></a><a name="p348181663093536"></a><a href="OHOS-ButtonStyle.md">ButtonStyle</a> &amp;&nbsp;</p>
<p id="p353508606093536"><a name="p353508606093536"></a><a name="p353508606093536"></a>Obtains the style of this button. </p>
</td>
</tr>
<tr id="row901814807093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p2008093022093536"><a name="p2008093022093536"></a><a name="p2008093022093536"></a><a href="Graphic.md#ga1d56911596bb1b1480a412ac9c3ff0ed">GetLabelStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p115963433093536"><a name="p115963433093536"></a><a name="p115963433093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1682089211093536"><a name="p1682089211093536"></a><a name="p1682089211093536"></a>Obtains the style of this label. </p>
</td>
</tr>
<tr id="row38769335093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1929308794093536"><a name="p1929308794093536"></a><a name="p1929308794093536"></a><a href="Graphic.md#ga17e000653498ceec378b79a1f25cf490">GetPickerBackgroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1790402582093536"><a name="p1790402582093536"></a><a name="p1790402582093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1153710371093536"><a name="p1153710371093536"></a><a name="p1153710371093536"></a>Obtains the background style of this picker. </p>
</td>
</tr>
<tr id="row647534246093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1627028227093536"><a name="p1627028227093536"></a><a name="p1627028227093536"></a><a href="Graphic.md#ga40c28c8cf0f19f8507b34e8c3af88c6b">GetPickerHighlightStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1358975797093536"><a name="p1358975797093536"></a><a name="p1358975797093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1874242121093536"><a name="p1874242121093536"></a><a name="p1874242121093536"></a>Obtains the highlight style of this picker. </p>
</td>
</tr>
<tr id="row1877722661093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1896108725093536"><a name="p1896108725093536"></a><a name="p1896108725093536"></a><a href="Graphic.md#gafbc7c3ae50f322fbb9c12d06eb50b9bf">GetProgressBackgroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p7531687093536"><a name="p7531687093536"></a><a name="p7531687093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1988155456093536"><a name="p1988155456093536"></a><a name="p1988155456093536"></a>Obtains the background style of this progress bar. </p>
</td>
</tr>
<tr id="row1736806439093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p35341985093536"><a name="p35341985093536"></a><a name="p35341985093536"></a><a href="Graphic.md#ga0366f405bc2221944783a96c14f89b8a">GetProgressForegroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p955547064093536"><a name="p955547064093536"></a><a name="p955547064093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p2083309892093536"><a name="p2083309892093536"></a><a name="p2083309892093536"></a>Obtains the foreground style of this progress bar. </p>
</td>
</tr>
<tr id="row1915200816093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1137850966093536"><a name="p1137850966093536"></a><a name="p1137850966093536"></a><a href="Graphic.md#gad528fd10d4b9bcec9d1951c1c54674ee">GetSliderKnobStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p583957783093536"><a name="p583957783093536"></a><a name="p583957783093536"></a><a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p101949758093536"><a name="p101949758093536"></a><a name="p101949758093536"></a>Obtains the style of this slider knob. </p>
</td>
</tr>
<tr id="row1748824091093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p497160923093536"><a name="p497160923093536"></a><a name="p497160923093536"></a><a href="Graphic.md#ga4854963aa969ee20a6cd174a70f5cd23">operator new</a> (size_t size)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1010989002093536"><a name="p1010989002093536"></a><a name="p1010989002093536"></a>void *&nbsp;</p>
<p id="p30614874093536"><a name="p30614874093536"></a><a name="p30614874093536"></a>Overrides the <strong id="b1040230324093536"><a name="b1040230324093536"></a><a name="b1040230324093536"></a>new</strong> function. </p>
</td>
</tr>
<tr id="row1356506110093536"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p575861599093536"><a name="p575861599093536"></a><a name="p575861599093536"></a><a href="Graphic.md#gadf1997a0f56ac2b220e7f0f8e8e0a6ef">operator delete</a> (void *p)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1784254235093536"><a name="p1784254235093536"></a><a name="p1784254235093536"></a>void&nbsp;</p>
<p id="p771824712093536"><a name="p771824712093536"></a><a name="p771824712093536"></a>Overrides the <strong id="b943423471093536"><a name="b943423471093536"></a><a name="b943423471093536"></a>delete</strong> function. </p>
</td>
</tr>
</tbody>
</table>