File: wx101.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (168 lines) | stat: -rw-r--r-- 5,826 bytes parent folder | download
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<HTML>
<head><title>wxFontData</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxfontdata"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx100.htm#wxfont"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx102.htm#wxfontdialog"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxFontData</H2>
<P>
<A HREF="wx291.htm#wxfontdialogoverview">wxFontDialog overview</A><P>
This class holds a variety of information related to font dialogs.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/cmndata.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx291.htm#wxfontdialogoverview">Overview</A>, <A HREF="wx102.htm#wxfontdialog">wxFontDialog</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic388">wxFontData::wxFontData</A><BR>
<A HREF="#topic389">wxFontData::~wxFontData</A><BR>
<A HREF="#topic390">wxFontData::EnableEffects</A><BR>
<A HREF="#topic391">wxFontData::GetAllowSymbols</A><BR>
<A HREF="#topic392">wxFontData::GetColour</A><BR>
<A HREF="#topic393">wxFontData::GetChosenFont</A><BR>
<A HREF="#topic394">wxFontData::GetEnableEffects</A><BR>
<A HREF="#topic395">wxFontData::GetInitialFont</A><BR>
<A HREF="#topic396">wxFontData::GetShowHelp</A><BR>
<A HREF="#topic397">wxFontData::SetAllowSymbols</A><BR>
<A HREF="#topic398">wxFontData::SetChosenFont</A><BR>
<A HREF="#topic399">wxFontData::SetColour</A><BR>
<A HREF="#topic400">wxFontData::SetInitialFont</A><BR>
<A HREF="#topic401">wxFontData::SetRange</A><BR>
<A HREF="#topic402">wxFontData::SetShowHelp</A><BR>
<A HREF="#topic403">wxFontData::operator =</A><BR>
<P>

<HR>
<A NAME="topic388"></A>
<H3>wxFontData::wxFontData</H3>
<P>
<B></B> <B>wxFontData</B>()<P>
Constructor. Initializes <I>fontColour</I> to black, <I>showHelp</I> to black,
<I>allowSymbols</I> to TRUE, <I>enableEffects</I> to TRUE,
<I>minSize</I> to 0 and <I>maxSize</I> to 0.<P>

<HR>
<A NAME="topic389"></A>
<H3>wxFontData::~wxFontData</H3>
<P>
<B></B> <B>~wxFontData</B>()<P>
Destructor.<P>

<HR>
<A NAME="topic390"></A>
<H3>wxFontData::EnableEffects</H3>
<P>
<B>void</B> <B>EnableEffects</B>(<B>bool</B><I> enable</I>)<P>
Enables or disables 'effects' under MS Windows only. This refers to the
controls for manipulating colour, strikeout and underline properties.<P>
The default value is TRUE.<P>

<HR>
<A NAME="topic391"></A>
<H3>wxFontData::GetAllowSymbols</H3>
<P>
<B>bool</B> <B>GetAllowSymbols</B>()<P>
Under MS Windows, returns a flag determining whether symbol fonts can be selected. Has no
effect on other platforms.<P>
The default value is TRUE.<P>

<HR>
<A NAME="topic392"></A>
<H3>wxFontData::GetColour</H3>
<P>
<B>wxColour&amp;</B> <B>GetColour</B>()<P>
Gets the colour associated with the font dialog.<P>
The default value is black.<P>

<HR>
<A NAME="topic393"></A>
<H3>wxFontData::GetChosenFont</H3>
<P>
<B>wxFont</B> <B>GetChosenFont</B>()<P>
Gets the font chosen by the user. If the user pressed OK (wxFontDialog::Show returned TRUE), this returns
a new font which is now 'owned' by the application, and should be deleted
if not required. If the user pressed Cancel (wxFontDialog::Show returned FALSE) or
the colour dialog has not been invoked yet, this will return NULL.<P>

<HR>
<A NAME="topic394"></A>
<H3>wxFontData::GetEnableEffects</H3>
<P>
<B>bool</B> <B>GetEnableEffects</B>()<P>
Determines whether 'effects' are enabled under Windows. This refers to the
controls for manipulating colour, strikeout and underline properties.<P>
The default value is TRUE.<P>

<HR>
<A NAME="topic395"></A>
<H3>wxFontData::GetInitialFont</H3>
<P>
<B>wxFont</B> <B>GetInitialFont</B>()<P>
Gets the font that will be initially used by the font dialog. This should have
previously been set by the application.<P>

<HR>
<A NAME="topic396"></A>
<H3>wxFontData::GetShowHelp</H3>
<P>
<B>bool</B> <B>GetShowHelp</B>()<P>
Returns TRUE if the Help button will be shown (Windows only).<P>
The default value is FALSE.<P>

<HR>
<A NAME="topic397"></A>
<H3>wxFontData::SetAllowSymbols</H3>
<P>
<B>void</B> <B>SetAllowSymbols</B>(<B>bool</B><I> allowSymbols</I>)<P>
Under MS Windows, determines whether symbol fonts can be selected. Has no
effect on other platforms.<P>
The default value is TRUE.<P>

<HR>
<A NAME="topic398"></A>
<H3>wxFontData::SetChosenFont</H3>
<P>
<B>void</B> <B>SetChosenFont</B>(<B>const wxFont&amp; </B><I>font</I>)<P>
Sets the font that will be returned to the user (for internal use only).<P>

<HR>
<A NAME="topic399"></A>
<H3>wxFontData::SetColour</H3>
<P>
<B>void</B> <B>SetColour</B>(<B>const wxColour&amp;</B><I> colour</I>)<P>
Sets the colour that will be used for the font foreground colour.<P>
The default colour is black.<P>

<HR>
<A NAME="topic400"></A>
<H3>wxFontData::SetInitialFont</H3>
<P>
<B>void</B> <B>SetInitialFont</B>(<B>const wxFont&amp;</B><I>font</I>)<P>
Sets the font that will be initially used by the font dialog.<P>

<HR>
<A NAME="topic401"></A>
<H3>wxFontData::SetRange</H3>
<P>
<B>void</B> <B>SetRange</B>(<B>int</B><I> min</I>, <B>int</B><I> max</I>)<P>
Sets the valid range for the font point size (Windows only).<P>
The default is 0, 0 (unrestricted range).<P>

<HR>
<A NAME="topic402"></A>
<H3>wxFontData::SetShowHelp</H3>
<P>
<B>void</B> <B>SetShowHelp</B>(<B>bool</B><I> showHelp</I>)<P>
Determines whether the Help button will be displayed in the font dialog (Windows only).<P>
The default value is FALSE.<P>

<HR>
<A NAME="topic403"></A>
<H3>wxFontData::operator =</H3>
<P>
<B>void</B> <B>operator =</B>(<B>const wxFontData&amp;</B><I> data</I>)<P>
Assingment operator for the font data.<P>

</BODY></HTML>