Class: Wx::FontData
Overview
This class is untracked and should not be derived from nor instances extended!
This class holds a variety of information related to font dialogs.
Category: Common Dialogs, Data Structures
Instance Method Summary collapse
-
#enable_effects(enable) ⇒ void
Enables or disables “effects” under Windows or generic only.
-
#get_allow_symbols ⇒ Boolean
(also: #allow_symbols)
Under Windows, returns a flag determining whether symbol fonts can be selected.
-
#get_chosen_font ⇒ Wx::Font
(also: #chosen_font)
Gets the font chosen by the user if the user pressed OK (Wx::FontDialog#show_modal returned StandardID::ID_OK).
-
#get_colour ⇒ Wx::Colour, ...
(also: #colour)
Gets the colour associated with the font dialog.
-
#get_enable_effects ⇒ Boolean
Determines whether “effects” are enabled under Windows.
-
#get_initial_font ⇒ Wx::Font
(also: #initial_font)
Gets the font that will be initially used by the font dialog.
-
#get_restrict_selection ⇒ Integer
Returns the state of the flags restricting the selection.
-
#get_show_help ⇒ Boolean
(also: #show_help)
Returns true if the Help button will be shown (Windows only).
-
#initialize ⇒ Wx::FontData
constructor
Constructor.
-
#restrict_selection(flags) ⇒ void
Restricts the selection to a subset of the available fonts.
-
#set_allow_symbols(allowSymbols) ⇒ void
(also: #allow_symbols=)
Under Windows, determines whether symbol fonts can be selected.
-
#set_chosen_font(font) ⇒ void
(also: #chosen_font=)
Sets the font that will be returned to the user (for internal use only).
-
#set_colour(colour) ⇒ void
(also: #colour=)
Sets the colour that will be used for the font foreground colour.
-
#set_initial_font(font) ⇒ void
(also: #initial_font=)
Sets the font that will be initially used by the font dialog.
-
#set_range(min, max) ⇒ void
Sets the valid range for the font point size (Windows only).
-
#set_show_help(showHelp) ⇒ void
(also: #show_help=)
Determines whether the Help button will be displayed in the font dialog (Windows only).
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::FontData
Constructor.
Initializes fontColour to black, showHelp to false, allowSymbols to true, enableEffects to true, minSize to 0 and maxSize to 0.
26 |
# File 'lib/wx/doc/gen/font_data.rb', line 26 def initialize; end |
Instance Method Details
#enable_effects(enable) ⇒ void
This method returns an undefined value.
Enables or disables “effects” under Windows or generic only.
This refers to the controls for manipulating colour, strikeout and underline properties. The default value is true.
34 |
# File 'lib/wx/doc/gen/font_data.rb', line 34 def enable_effects(enable) end |
#get_allow_symbols ⇒ Boolean Also known as: allow_symbols
Under Windows, returns a flag determining whether symbol fonts can be selected.
Has no effect on other platforms. The default value is true.
41 |
# File 'lib/wx/doc/gen/font_data.rb', line 41 def get_allow_symbols; end |
#get_chosen_font ⇒ Wx::Font Also known as: chosen_font
Gets the font chosen by the user if the user pressed OK (Wx::FontDialog#show_modal returned StandardID::ID_OK).
46 |
# File 'lib/wx/doc/gen/font_data.rb', line 46 def get_chosen_font; end |
#get_colour ⇒ Wx::Colour, ... Also known as: colour
Gets the colour associated with the font dialog.
The default value is black.
53 |
# File 'lib/wx/doc/gen/font_data.rb', line 53 def get_colour; end |
#get_enable_effects ⇒ Boolean
Determines whether “effects” are enabled under Windows.
This refers to the controls for manipulating colour, strikeout and underline properties. The default value is true.
61 |
# File 'lib/wx/doc/gen/font_data.rb', line 61 def get_enable_effects; end |
#get_initial_font ⇒ Wx::Font Also known as: initial_font
Gets the font that will be initially used by the font dialog.
This should have previously been set by the application.
79 |
# File 'lib/wx/doc/gen/font_data.rb', line 79 def get_initial_font; end |
#get_restrict_selection ⇒ Integer
Returns the state of the flags restricting the selection.
Note that currently these flags are only effectively used in WXMSW.
-
Wx::FONTRESTRICT_NONE If no restriction applies, or a combination of the following flags:
-
Wx::FONTRESTRICT_SCALABLE To show only scalable fonts - no raster fonts.
-
Wx::FONTRESTRICT_FIXEDPITCH To show only monospaced fonts.
The default value is Wx::FONTRESTRICT_NONE.
73 |
# File 'lib/wx/doc/gen/font_data.rb', line 73 def get_restrict_selection; end |
#get_show_help ⇒ Boolean Also known as: show_help
Returns true if the Help button will be shown (Windows only).
The default value is false.
86 |
# File 'lib/wx/doc/gen/font_data.rb', line 86 def get_show_help; end |
#restrict_selection(flags) ⇒ void
This method returns an undefined value.
Restricts the selection to a subset of the available fonts.
Note that currently these flags are only effectively used in WXMSW and are ignored in the other ports. Possible values are:
-
Wx::FONTRESTRICT_NONE No restriction, show all fonts in the dialog.
-
Wx::FONTRESTRICT_SCALABLE To show only scalable fonts - no raster fonts.
-
Wx::FONTRESTRICT_FIXEDPITCH To show only monospaced fonts.
The default value is Wx::FONTRESTRICT_NONE.
101 |
# File 'lib/wx/doc/gen/font_data.rb', line 101 def restrict_selection(flags) end |
#set_allow_symbols(allowSymbols) ⇒ void Also known as: allow_symbols=
This method returns an undefined value.
Under Windows, determines whether symbol fonts can be selected.
Has no effect on other platforms. The default value is true.
109 |
# File 'lib/wx/doc/gen/font_data.rb', line 109 def set_allow_symbols(allowSymbols) end |
#set_chosen_font(font) ⇒ void Also known as: chosen_font=
This method returns an undefined value.
Sets the font that will be returned to the user (for internal use only).
115 |
# File 'lib/wx/doc/gen/font_data.rb', line 115 def set_chosen_font(font) end |
#set_colour(colour) ⇒ void Also known as: colour=
This method returns an undefined value.
Sets the colour that will be used for the font foreground colour.
The default colour is black.
123 |
# File 'lib/wx/doc/gen/font_data.rb', line 123 def set_colour(colour) end |
#set_initial_font(font) ⇒ void Also known as: initial_font=
This method returns an undefined value.
Sets the font that will be initially used by the font dialog.
129 |
# File 'lib/wx/doc/gen/font_data.rb', line 129 def set_initial_font(font) end |
#set_range(min, max) ⇒ void
This method returns an undefined value.
Sets the valid range for the font point size (Windows only).
The default is 0, 0 (unrestricted range).
138 |
# File 'lib/wx/doc/gen/font_data.rb', line 138 def set_range(min, max) end |
#set_show_help(showHelp) ⇒ void Also known as: show_help=
This method returns an undefined value.
Determines whether the Help button will be displayed in the font dialog (Windows only).
The default value is false.
145 |
# File 'lib/wx/doc/gen/font_data.rb', line 145 def set_show_help(showHelp) end |