vfs: check userland buffers before reading them.
[haiku.git] / docs / develop / servers / app_server / ColorSet.htm
blob90673403097f76d174ba026a75ceb37b04eff278
1 <HTML>
2 <HEAD>
3 <TITLE>ColorSet.htm</TITLE>
4 <style type="text/css">
5 <!--
6 .Default {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 12pt}
7 .OBOS-Function-Def {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 16pt}
8 .OBOS-Title {background-color: rgb(255,255,255); color: rgb(0,128,0); font-family: 'Dutch801 Rm BT'; font-size: 24pt}
9 .Text-Background {background-color: rgb(255,255,255)}
10 .GR-Default {}
11 .Body {margin: 0px}
12 .Footer {margin: 0px}
13 .Header {margin: 0px}
14 .WP-Default {text-align: left; text-indent: 0px; margin-left: 0px; margin-right: 0px}
15 -->
16 </style>
17 </HEAD>
18 <BODY BGCOLOR="#ffffff">
19 <DIV class="sheet" id="Sheet 1">
20 <P class="Body" style="margin: 0px"><span class="OBOS-Title">ColorSet class</span><span style="color: rgb(0,0,0); font-size: 24pt"></span></P>
21 <P class="Body" style="margin: 0px"><BR>
22 </P>
23 <P class="Body" style="margin: 0px">The ColorSet class provides an easy manner to manage system attribute colors, such as window tabs, panel background colors, etc. Each member is an RGBColor. The attributes are list below and are publicly accessible.</P>
24 <P class="Body" style="margin: 0px"><BR>
25 </P>
26 <P class="Body" style="margin: 0px">panel_background</P>
27 <P class="Body" style="margin: 0px">panel_text</P>
28 <P class="Body" style="margin: 0px">document_background</P>
29 <P class="Body" style="margin: 0px">document_text</P>
30 <P class="Body" style="margin: 0px">control_background</P>
31 <P class="Body" style="margin: 0px">control_text</P>
32 <P class="Body" style="margin: 0px">control_border</P>
33 <P class="Body" style="margin: 0px">control_highlight</P>
34 <P class="Body" style="margin: 0px">tooltip_background</P>
35 <P class="Body" style="margin: 0px">tooltip_text</P>
36 <P class="Body" style="margin: 0px">menu_background</P>
37 <P class="Body" style="margin: 0px">menu_selected_background</P>
38 <P class="Body" style="margin: 0px">menu_text</P>
39 <P class="Body" style="margin: 0px">menu_selected_text</P>
40 <P class="Body" style="margin: 0px">menu_separator_high</P>
41 <P class="Body" style="margin: 0px">menu_separator_low</P>
42 <P class="Body" style="margin: 0px">menu_triggers</P>
43 <P class="Body" style="margin: 0px">window_tab</P>
44 <P class="Body" style="margin: 0px">window_tab_text</P>
45 <P class="Body" style="margin: 0px">inactive_window_tab</P>
46 <P class="Body" style="margin: 0px">inactive_window_tab_text</P>
47 <P class="Body" style="margin: 0px">keyboard_navigation</P>
48 <P class="Body" style="margin: 0px">desktop</P>
49 <P class="Body" style="margin: 0px"><BR>
50 <BR>
51 <HR>
52 </P>
53 <P class="Body" style="margin: 0px"><BR>
54 Member Functions</P>
55 <P class="Body" style="margin: 0px"><BR>
56 </P>
57 <TABLE WIDTH=463 HEIGHT=72 BORDER=1 CELLPADDING=1 CELLSPACING=2>
58 <TR>
59 <TD WIDTH=203 HEIGHT=17>
60 <P class="Body" style="margin: 0px">ColorSet(void)</P>
61 </TD>
62 <TD WIDTH=260 HEIGHT=17>
63 <P class="Body" style="margin: 0px">ColorSet(const ColorSet &amp;cs)</P>
64 </TD>
65 </TR>
66 <TR>
67 <TD WIDTH=203 HEIGHT=38>
68 <P class="Body" style="margin: 0px">ColorSet &amp; operator=(const ColorSet &amp;cs)</P>
69 </TD>
70 <TD WIDTH=260 HEIGHT=38>
71 <P class="Body" style="margin: 0px">void SetColors(const ColorSet &amp;cs)</P>
72 </TD>
73 </TR>
74 <TR>
75 <TD WIDTH=203 HEIGHT=17>
76 <P class="Body" style="margin: 0px">void PrintToStream(void)</P>
77 </TD>
78 <TD WIDTH=260 HEIGHT=17>
79 &nbsp;
80 </TD>
81 </TR>
82 </TABLE>
83 <P class="Body" style="margin: 0px"><BR>
84 <BR>
85 <BR>
86 <HR>
87 </P>
88 <P class="Body" style="margin: 0px"><BR>
89 <span class="OBOS-Function-Def">ColorSet(void)</span></P>
90 <P class="Body" style="margin: 0px"><BR>
91 Does nothing.</P>
92 <P class="Body" style="margin: 0px"><BR>
93 <BR>
94 <span class="OBOS-Function-Def">ColorSet(const ColorSet &amp;cs)</span></P>
95 <P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">ColorSet &amp; operator=(const ColorSet &amp;cs)</span></P>
96 <P class="Body" style="margin: 0px"><BR>
97 Calls SetColors on the passed ColorSet object</P>
98 <P class="Body" style="margin: 0px"><BR>
99 <BR>
100 <span class="OBOS-Function-Def">void SetColors(const ColorSet &amp;cs)</span></P>
101 <P class="Body" style="margin: 0px"><BR>
102 Copies all data members of the passed color set to those of the current one</P>
103 <P class="Body" style="margin: 0px"><BR>
104 <BR>
105 <span class="OBOS-Function-Def">void PrintToStream(void)</span></P>
106 <P class="Body" style="margin: 0px"><BR>
107 Prints the name of each attribute color and then calls the color's PrintToStream member.</P>
108 <DIV class="layer" id="Layer 1">
109 </DIV>
110 </DIV>
111 </BODY>
112 </HTML>