proc getChosenFont(self: wFontDialog): wFont {...}{.inline, raises: [], tags: [].}
-
Gets the font chosen by the user if the user pressed OK.
proc setInitialFont(self: wFontDialog; font: wFont) {...}{.inline, raises: [], tags: [].}
-
Sets the font that will be initially used by the font dialog.
proc getColor(self: wFontDialog): wColor {...}{.inline, raises: [], tags: [].}
-
Gets the color associated with the font dialog.
proc setColor(self: wFontDialog; color: wColor) {...}{.inline, raises: [], tags: [].}
-
Sets the color that will be used for the font foreground color.
proc getRange(self: wFontDialog): Slice[int] {...}{.inline, raises: [], tags: [].}
-
Returns the valid range for the font point size.
proc setRange(self: wFontDialog; min: int; max: int) {...}{.inline, raises: [], tags: [].}
-
Sets the valid range for the font point size, 0..0 means no limit.
proc setRange(self: wFontDialog; range: Slice[int]) {...}{.inline, raises: [], tags: [].}
-
Sets the valid range for the font point size, 0..0 means no limit.
proc enableSymbols(self: wFontDialog; flag = true) {...}{.inline, raises: [], tags: [].}
-
Enables or disables whether symbol fonts can be selected (by default yes).
proc enableEffects(self: wFontDialog; flag = true) {...}{.inline, raises: [], tags: [].}
-
Enables or disables effects (by default yes).
proc enableApply(self: wFontDialog; flag = true) {...}{.raises: [], tags: [].}
-
Display a Apply button, the dialog got wEvent_DialogApply event when the button pressed.
proc enableHelp(self: wFontDialog; flag = true) {...}{.raises: [], tags: [].}
-
Display a Help button, the dialog got wEvent_DialogHelp event when the button pressed.
proc init(self: wFontDialog; owner: wWindow = nil; font: wFont = nil) {...}{.
raises: [wWindowError, wCursorError, IndexDefect, wFontError], tags: [RootEffect].}
-
Initializer.
proc FontDialog(owner: wWindow = nil; font: wFont = nil): wFontDialog {...}{.inline,
discardable, raises: [wWindowError, wCursorError, IndexDefect, wFontError],
tags: [RootEffect].}
-
Constructor.
proc showModal(self: wFontDialog): wId {...}{.discardable, raises: [wFontError],
tags: [RootEffect].}
-
Shows the dialog, returning wIdOk if the user pressed OK, and wIdCancel otherwise.
proc display(self: wFontDialog): wFont {...}{.inline, discardable, raises: [wFontError],
tags: [RootEffect].}
-
Shows the dialog in modal mode, returning the user-selected font or nil.