1wxFontPickerCtrl(3)        Erlang Module Definition        wxFontPickerCtrl(3)
2
3
4

NAME

6       wxFontPickerCtrl - Functions for wxFontPickerCtrl class
7

DESCRIPTION

9       This  control allows the user to select a font. The generic implementa‐
10       tion is a button which brings up a wxFontDialog  when  clicked.  Native
11       implementation  may  differ  but this is usually a (small) widget which
12       give access to  the  font-chooser  dialog.  It  is  only  available  if
13       wxUSE_FONTPICKERCTRL is set to 1 (the default).
14
15       Styles
16
17       This class supports the following styles:
18
19       See: wxFontDialog, wxFontPickerEvent
20
21       This class is derived (and can use functions) from: wxPickerBase wxCon‐
22       trol wxWindow wxEvtHandler
23
24       wxWidgets docs: wxFontPickerCtrl
25

EVENTS

27       Event types emitted from this class: command_fontpicker_changed
28

DATA TYPES

30       wxFontPickerCtrl() = wx:wx_object()
31

EXPORTS

33       new() -> wxFontPickerCtrl()
34
35       new(Parent, Id) -> wxFontPickerCtrl()
36
37              Types:
38
39                 Parent = wxWindow:wxWindow()
40                 Id = integer()
41
42       new(Parent, Id, Options :: [Option]) -> wxFontPickerCtrl()
43
44              Types:
45
46                 Parent = wxWindow:wxWindow()
47                 Id = integer()
48                 Option =
49                     {initial, wxFont:wxFont()} |
50                     {pos, {X :: integer(), Y :: integer()}} |
51                     {size, {W :: integer(), H :: integer()}} |
52                     {style, integer()} |
53                     {validator, wx:wx_object()}
54
55              Initializes the object and calls create/4 with all  the  parame‐
56              ters.
57
58       create(This, Parent, Id) -> boolean()
59
60              Types:
61
62                 This = wxFontPickerCtrl()
63                 Parent = wxWindow:wxWindow()
64                 Id = integer()
65
66       create(This, Parent, Id, Options :: [Option]) -> boolean()
67
68              Types:
69
70                 This = wxFontPickerCtrl()
71                 Parent = wxWindow:wxWindow()
72                 Id = integer()
73                 Option =
74                     {initial, wxFont:wxFont()} |
75                     {pos, {X :: integer(), Y :: integer()}} |
76                     {size, {W :: integer(), H :: integer()}} |
77                     {style, integer()} |
78                     {validator, wx:wx_object()}
79
80              Creates this widget with given parameters.
81
82              Return: true if the control was successfully created or false if
83              creation failed.
84
85       getSelectedFont(This) -> wxFont:wxFont()
86
87              Types:
88
89                 This = wxFontPickerCtrl()
90
91              Returns the currently selected font.
92
93              Note that this function  is  completely  different  from  wxWin‐
94              dow:getFont/1.
95
96       setSelectedFont(This, Font) -> ok
97
98              Types:
99
100                 This = wxFontPickerCtrl()
101                 Font = wxFont:wxFont()
102
103              Sets the currently selected font.
104
105              Note  that  this  function  is  completely different from wxWin‐
106              dow:setFont/2.
107
108       getMaxPointSize(This) -> integer()
109
110              Types:
111
112                 This = wxFontPickerCtrl()
113
114              Returns the maximum point size value allowed for the user-chosen
115              font.
116
117       setMaxPointSize(This, Max) -> ok
118
119              Types:
120
121                 This = wxFontPickerCtrl()
122                 Max = integer()
123
124              Sets  the  maximum  point size value allowed for the user-chosen
125              font.
126
127              The default value is 100. Note that big fonts can require a  lot
128              of  memory  and  CPU  time  both for creation and for rendering;
129              thus, specially because the user has the option to  specify  the
130              fontsize  through a text control (see wxFNTP_USE_TEXTCTRL), it's
131              a good idea to put a limit to the maximum font  size  when  huge
132              fonts do not make much sense.
133
134       destroy(This :: wxFontPickerCtrl()) -> ok
135
136              Destroys the object.
137
138
139
140wxWidgets team.                    wx 2.2.2                wxFontPickerCtrl(3)
Impressum