OHOS-StyleDefault.md 12.5 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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
# OHOS::StyleDefault<a name="ZH-CN_TOPIC_0000001054799633"></a>

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

**Related Modules:**

[Graphic](Graphic.md)

**Description:**

Define some default style for  [UIView](OHOS-UIView.md). 

**Since:**

1.0

**Version:**

1.0

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

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

<a name="table366273084093535"></a>
<table><thead align="left"><tr id="row106375003093535"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p185929480093535"><a name="p185929480093535"></a><a name="p185929480093535"></a>Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1734136693093535"><a name="p1734136693093535"></a><a name="p1734136693093535"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1867514132093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1027204318093535"><a name="p1027204318093535"></a><a name="p1027204318093535"></a><a href="Graphic.md#gae5bc682ac7e77c369ccdd32a68de4387">StyleDefault</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1521650093093535"><a name="p1521650093093535"></a><a name="p1521650093093535"></a>&nbsp;</p>
<p id="p1415803702093535"><a name="p1415803702093535"></a><a name="p1415803702093535"></a>A constructor used to create a <strong id="b916806669093535"><a name="b916806669093535"></a><a name="b916806669093535"></a><a href="OHOS-StyleDefault.md">StyleDefault</a></strong> instance. </p>
</td>
</tr>
<tr id="row880882133093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1377838654093535"><a name="p1377838654093535"></a><a name="p1377838654093535"></a><a href="Graphic.md#ga01ecc90591628698b0d657a60f567b09">~StyleDefault</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p643861054093535"><a name="p643861054093535"></a><a name="p643861054093535"></a>&nbsp;</p>
<p id="p365413664093535"><a name="p365413664093535"></a><a name="p365413664093535"></a>A destructor used to delete the <strong id="b1034269797093535"><a name="b1034269797093535"></a><a name="b1034269797093535"></a><a href="OHOS-StyleDefault.md">StyleDefault</a></strong> instance. </p>
</td>
</tr>
<tr id="row110187955093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p77396864093535"><a name="p77396864093535"></a><a name="p77396864093535"></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="p2142745852093535"><a name="p2142745852093535"></a><a name="p2142745852093535"></a>void *&nbsp;</p>
<p id="p1353035412093535"><a name="p1353035412093535"></a><a name="p1353035412093535"></a>Overrides the <strong id="b407933328093535"><a name="b407933328093535"></a><a name="b407933328093535"></a>new</strong> function. </p>
</td>
</tr>
<tr id="row1243524967093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1372822304093535"><a name="p1372822304093535"></a><a name="p1372822304093535"></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="p566603422093535"><a name="p566603422093535"></a><a name="p566603422093535"></a>void&nbsp;</p>
<p id="p906049807093535"><a name="p906049807093535"></a><a name="p906049807093535"></a>Overrides the <strong id="b267148040093535"><a name="b267148040093535"></a><a name="b267148040093535"></a>delete</strong> function. </p>
</td>
</tr>
</tbody>
</table>

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

<a name="table1627878358093535"></a>
<table><thead align="left"><tr id="row74732447093535"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p2015323113093535"><a name="p2015323113093535"></a><a name="p2015323113093535"></a>Static Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p2125677789093535"><a name="p2125677789093535"></a><a name="p2125677789093535"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row692919942093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p871671192093535"><a name="p871671192093535"></a><a name="p871671192093535"></a><a href="Graphic.md#gae8f75aba900bbc7119228cdc8e97e40b">GetDefaultStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1659391961093535"><a name="p1659391961093535"></a><a name="p1659391961093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p217647427093535"><a name="p217647427093535"></a><a name="p217647427093535"></a>Obtains the default style. </p>
</td>
</tr>
<tr id="row935777282093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p818639136093535"><a name="p818639136093535"></a><a name="p818639136093535"></a><a href="Graphic.md#ga1463772d745bb998846daad09b11df58">GetBrightStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p390866963093535"><a name="p390866963093535"></a><a name="p390866963093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1357945250093535"><a name="p1357945250093535"></a><a name="p1357945250093535"></a>Obtains the bright style. </p>
</td>
</tr>
<tr id="row200852834093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1982279708093535"><a name="p1982279708093535"></a><a name="p1982279708093535"></a><a href="Graphic.md#ga1b8645b79268358000db1cc1af2f26b9">GetBrightColorStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p243373467093535"><a name="p243373467093535"></a><a name="p243373467093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1998727633093535"><a name="p1998727633093535"></a><a name="p1998727633093535"></a>Obtains the bright color style. </p>
</td>
</tr>
<tr id="row1083094744093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1845302210093535"><a name="p1845302210093535"></a><a name="p1845302210093535"></a><a href="Graphic.md#gaa2096a167e0ea9de4450ae516f88ce31">GetButtonPressedStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1517371092093535"><a name="p1517371092093535"></a><a name="p1517371092093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p491064077093535"><a name="p491064077093535"></a><a name="p491064077093535"></a>Obtains the button pressed style. </p>
</td>
</tr>
<tr id="row931195113093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p627403294093535"><a name="p627403294093535"></a><a name="p627403294093535"></a><a href="Graphic.md#ga694e90d027391fd114481ea91ad39011">GetButtonReleasedStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p2128044826093535"><a name="p2128044826093535"></a><a name="p2128044826093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1600549529093535"><a name="p1600549529093535"></a><a name="p1600549529093535"></a>Obtains the button released style. </p>
</td>
</tr>
<tr id="row874305971093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p437714030093535"><a name="p437714030093535"></a><a name="p437714030093535"></a><a href="Graphic.md#ga42f393499cc83304a2a1cfa1cacc4003">GetButtonInactivedStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1373843380093535"><a name="p1373843380093535"></a><a name="p1373843380093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p166076883093535"><a name="p166076883093535"></a><a name="p166076883093535"></a>Obtains the button inactived style. </p>
</td>
</tr>
<tr id="row397477367093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p437503093093535"><a name="p437503093093535"></a><a name="p437503093093535"></a><a href="Graphic.md#ga3f4f513b6dff5e245f2341890dae5ee1">GetLabelStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p144519522093535"><a name="p144519522093535"></a><a name="p144519522093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1674826297093535"><a name="p1674826297093535"></a><a name="p1674826297093535"></a>Obtains the label style. </p>
</td>
</tr>
<tr id="row1414881994093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p427261664093535"><a name="p427261664093535"></a><a name="p427261664093535"></a><a href="Graphic.md#ga726fa9b4839e4a37712addd93bc91c9c">GetBackgroundTransparentStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p52623230093535"><a name="p52623230093535"></a><a name="p52623230093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p787829015093535"><a name="p787829015093535"></a><a name="p787829015093535"></a>Obtains the background transparent style. </p>
</td>
</tr>
<tr id="row1411693636093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1201335910093535"><a name="p1201335910093535"></a><a name="p1201335910093535"></a><a href="Graphic.md#gaa4c13964a439e472d5a41edfa2e5dd4f">GetProgressBackgroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p273807978093535"><a name="p273807978093535"></a><a name="p273807978093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1467063188093535"><a name="p1467063188093535"></a><a name="p1467063188093535"></a>Obtains the progress background style. </p>
</td>
</tr>
<tr id="row648638634093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1790722149093535"><a name="p1790722149093535"></a><a name="p1790722149093535"></a><a href="Graphic.md#ga6ce583a8cce5527ee812cea6fb6a6113">GetProgressForegroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p159822981093535"><a name="p159822981093535"></a><a name="p159822981093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p800017201093535"><a name="p800017201093535"></a><a name="p800017201093535"></a>Obtains the progress foreground style. </p>
</td>
</tr>
<tr id="row1731593914093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1583405367093535"><a name="p1583405367093535"></a><a name="p1583405367093535"></a><a href="Graphic.md#ga9102687741cde90b659ebdc3eb773895">GetSliderKnobStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1496295215093535"><a name="p1496295215093535"></a><a name="p1496295215093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p235871264093535"><a name="p235871264093535"></a><a name="p235871264093535"></a>Obtains the slider knob style. </p>
</td>
</tr>
<tr id="row203420415093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1152516697093535"><a name="p1152516697093535"></a><a name="p1152516697093535"></a><a href="Graphic.md#ga39a41c86eba9feaa5a8130da6e7c8014">GetPickerBackgroundStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p391693662093535"><a name="p391693662093535"></a><a name="p391693662093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p2044401497093535"><a name="p2044401497093535"></a><a name="p2044401497093535"></a>Obtains the picker background style. </p>
</td>
</tr>
<tr id="row1306372859093535"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p775129189093535"><a name="p775129189093535"></a><a name="p775129189093535"></a><a href="Graphic.md#gace2f6b055a11b93b1fc632c4e135043d">GetPickerHighlightStyle</a> ()</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p454713754093535"><a name="p454713754093535"></a><a name="p454713754093535"></a>static <a href="OHOS-Style.md">Style</a> &amp;&nbsp;</p>
<p id="p1767745418093535"><a name="p1767745418093535"></a><a name="p1767745418093535"></a>Obtains the picker highlight style. </p>
</td>
</tr>
</tbody>
</table>