xtd 0.2.0
Loading...
Searching...
No Matches
font_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "font_box_options.h"
7#include "dialog_result.h"
8#include "iwin32_window.h"
9#include <xtd/drawing/color>
10#include <xtd/drawing/font>
11#include <xtd/static>
12
14namespace xtd {
16 namespace forms {
36 public:
38
45
52
59
66 static dialog_result show(xtd::drawing::font& font, const iwin32_window& owner, const font_box_options options);
67
74
82
90
98 static dialog_result show(xtd::drawing::font& font, xtd::drawing::color& color, const iwin32_window& owner, const font_box_options options);
100
101 private:
102 static dialog_result show_font_box(xtd::drawing::font& font, xtd::drawing::color* color = nullptr, const iwin32_window* owner = nullptr, font_box_options options = font_box_options::none);
103 };
104 }
105}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:45
Represents a common dialog box that displays a dialog to the user to choose a font from among those i...
Definition font_box.h:35
static dialog_result show(xtd::drawing::font &font, xtd::drawing::color &color)
Displays a font dialog box.
static dialog_result show(xtd::drawing::font &font, xtd::drawing::color &color, const iwin32_window &owner)
Displays a font dialog box in front of a specified window.
static dialog_result show(xtd::drawing::font &font, const iwin32_window &owner, const font_box_options options)
Displays a font dialog box in front of a specified window.
static dialog_result show(xtd::drawing::font &font, xtd::drawing::color &color, const iwin32_window &owner, const font_box_options options)
Displays a font dialog box in front of a specified window.
static dialog_result show(xtd::drawing::font &font, const font_box_options options)
Displays a font dialog box.
static dialog_result show(xtd::drawing::font &font)
Displays a font dialog box.
static dialog_result show(xtd::drawing::font &font, xtd::drawing::color &color, const font_box_options options)
Displays a font dialog box.
static dialog_result show(xtd::drawing::font &font, const iwin32_window &owner)
Displays a font dialog box in front of a specified window.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Contains xtd::forms::dialog_result enum class.
Contains xtd::forms::font_box_options control.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
font_box_options
Specifies options on a xtd::forms::font_box.
Definition font_box_options.h:22
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:43
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10