xtd 0.2.0
Loading...
Searching...
No Matches
font_picker.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
7
9namespace xtd {
11 namespace forms {
29 struct data;
30
31 public:
33
38
40
45 virtual const drawing::color& color() const noexcept;
50 virtual font_picker& color(const drawing::color& color);
51
54 drawing::font font() const noexcept override;
58 control& font(const drawing::font& font) override;
60
62
66 static font_picker create();
70 static font_picker create(const drawing::point& location);
75 static font_picker create(const drawing::point& location, const drawing::size& size);
81 static font_picker create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
85 static font_picker create(const drawing::font& font);
90 static font_picker create(const drawing::font& font, const drawing::point& location);
96 static font_picker create(const drawing::font& font, const drawing::point& location, const drawing::size& size);
103 static font_picker create(const drawing::font& font, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
108 static font_picker create(const drawing::font& font, const xtd::drawing::color& color);
114 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location);
121 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size);
129 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
133 static font_picker create(const control& parent);
138 static font_picker create(const control& parent, const drawing::point& location);
144 static font_picker create(const control& parent, const drawing::point& location, const drawing::size& size);
151 static font_picker create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
156 static font_picker create(const control& parent, const drawing::font& font);
162 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location);
169 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location, const drawing::size& size);
177 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
183 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color);
190 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location);
198 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size);
207 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
209
211
217
218 protected:
220
222 forms::create_params create_params() const noexcept override;
224
226
232 std::unique_ptr<xtd::object> clone() const override;
233
236 void on_font_picker_changed(const font_picker_event_args& e);
237
238 void on_handle_created(const event_args& e) override;
239
243 void wnd_proc(message& message) override;
245
246 private:
247 void wm_command_control(message& message);
248 void wm_command_control_selchange(message& message);
249
250 std::shared_ptr<data> data_;
251 };
252 }
253}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Represents an event.
Definition event.h:21
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Provides data for the xtd::forms::font_picker::font_picker_changed events.
Definition font_picker_event_args.h:26
Represents a picker control that displays available fonts along with controls.
Definition font_picker.h:28
font_picker()
Initializes a new instance of the font_picker class.
virtual const drawing::color & color() const noexcept
Gets the color selected by the user.
Implements a Windows message.
Definition message.h:26
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::font_picker_event_handler event handler.
delegate< void(object &sender, const font_picker_event_args &e)> font_picker_event_handler
Represents the method that will handle the xtd::forms::font_picker::color_changeds of the xtd::forms:...
Definition font_picker_event_handler.h:23
#define forms_export_
Define shared library export.
Definition forms_export.h:13
size_t size
Represents a size of any object in bytes.
Definition types.h:197
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
Contains xtd::forms::style_sheets::control class.