xtd 0.2.0
Loading...
Searching...
No Matches
font_picker.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "control.hpp"
7
9namespace xtd {
11 namespace forms {
31 struct data;
32
33 public:
35
40
42
47 virtual const drawing::color& color() const noexcept;
52 virtual font_picker& color(const drawing::color& color);
53
56 drawing::font font() const noexcept override;
60 control& font(const drawing::font& font) override;
62
64
68 static font_picker create();
72 static font_picker create(const drawing::point& location);
77 static font_picker create(const drawing::point& location, const drawing::size& size);
83 static font_picker create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
87 static font_picker create(const drawing::font& font);
92 static font_picker create(const drawing::font& font, const drawing::point& location);
98 static font_picker create(const drawing::font& font, const drawing::point& location, const drawing::size& size);
105 static font_picker create(const drawing::font& font, const drawing::point& location, const drawing::size& size, const xtd::string& name);
110 static font_picker create(const drawing::font& font, const xtd::drawing::color& color);
116 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location);
123 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size);
131 static font_picker create(const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size, const xtd::string& name);
135 static font_picker create(const control& parent);
140 static font_picker create(const control& parent, const drawing::point& location);
146 static font_picker create(const control& parent, const drawing::point& location, const drawing::size& size);
153 static font_picker create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
158 static font_picker create(const control& parent, const drawing::font& font);
164 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location);
171 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location, const drawing::size& size);
179 static font_picker create(const control& parent, const drawing::font& font, const drawing::point& location, const drawing::size& size, const xtd::string& name);
185 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color);
192 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location);
200 static font_picker create(const control& parent, const drawing::font& font, const xtd::drawing::color& color, const drawing::point& location, const drawing::size& size);
209 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::string& name);
211
213
219
220 protected:
222
224 forms::create_params create_params() const noexcept override;
226
228
234 xtd::uptr<xtd::object> clone() const override;
235
238 void on_font_picker_changed(const font_picker_event_args& e);
239
240 void on_handle_created(const event_args& e) override;
241
245 void wnd_proc(message& message) override;
247
248 private:
249 void wm_command_control(message& message);
250 void wm_command_control_selchange(message& message);
251
252 xtd::sptr<data> data_;
253 };
254 }
255}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:49
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Represents an event.
Definition event.hpp:21
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Encapsulates the information needed when creating a control.
Definition create_params.hpp:29
Provides data for the xtd::forms::font_picker::font_picker_changed events.
Definition font_picker_event_args.hpp:28
Represents a picker control that displays available fonts along with controls.
Definition font_picker.hpp:30
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.hpp:28
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.hpp:25
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::style_sheets::control class.