xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::font_dialog Class Referencefinal
Inheritance diagram for xtd::forms::native::font_dialog:
xtd::static_object

Definition

Contains font dialog native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static bool run_dialog (intptr hwnd, drawing::font &font, drawing::color &color, size_t options, size_t min_size, size_t max_size, bool show_color)
 Shows dialog.
 
static void run_sheet (xtd::delegate< void(bool)> on_dialog_closed, intptr hwnd, drawing::font &font, drawing::color &color, size_t options, size_t min_size, size_t max_size, bool show_color)
 Shows async dialog as sheet.
 

Member Function Documentation

◆ run_dialog()

static bool xtd::forms::native::font_dialog::run_dialog ( intptr  hwnd,
drawing::font font,
drawing::color color,
size_t  options,
size_t  min_size,
size_t  max_size,
bool  show_color 
)
staticprotected

Shows dialog.

Parameters
hwndParent window handle.
fontThe selected font.
colorThe selected color.
min_sizeThe minimum point size a user can select.
max_sizeThe maximum point size a user can select.
show_colortrue if the dialog box displays the color choice; otherwise, false.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
If result is true, the font parameter contains the new font, and the color parameter contains the now color.
Warning
Internal use only

◆ run_sheet()

static void xtd::forms::native::font_dialog::run_sheet ( xtd::delegate< void(bool)>  on_dialog_closed,
intptr  hwnd,
drawing::font font,
drawing::color color,
size_t  options,
size_t  min_size,
size_t  max_size,
bool  show_color 
)
staticprotected

Shows async dialog as sheet.

Parameters
hwndParent window handle.
fontThe selected font.
colorThe selected color.
min_sizeThe minimum point size a user can select.
max_sizeThe maximum point size a user can select.
show_colortrue if the dialog box displays the color choice; otherwise, false.
Returns
true if the user clicks OK in the dialog box; otherwise, false.
Remarks
When dialog closed and if result is true, the font parameter contains the new font, and the color parameter contains the now color.
Warning
Internal use only

The documentation for this class was generated from the following file: