xtd 0.2.0
Loading...
Searching...
No Matches
group_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "border_style.h"
6#include "control.h"
7#include "flat_style.h"
8
10namespace xtd {
12 namespace forms {
38 struct data;
39
40 public:
42
47
49
53 virtual forms::auto_size_mode auto_size_mode() const noexcept;
58
61
64 virtual xtd::forms::flat_style flat_style() const noexcept;
69
71
75 static group_box create();
79 static group_box create(const drawing::point& location);
84 static group_box create(const drawing::point& location, const drawing::size& size);
90 static group_box create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
94 static group_box create(const xtd::string& text);
99 static group_box create(const xtd::string& text, const drawing::point& location);
105 static group_box create(const xtd::string& text, const drawing::point& location, const drawing::size& size);
112 static group_box create(const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
117 static group_box create(const control& parent);
122 static group_box create(const control& parent, const drawing::point& location);
128 static group_box create(const control& parent, const drawing::point& location, const drawing::size& size);
135 static group_box create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
141 static group_box create(const control& parent, const xtd::string& text);
147 static group_box create(const control& parent, const xtd::string& text, const drawing::point& location);
154 static group_box create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size);
162 static group_box create(const control& parent, const xtd::string& text, const drawing::point& location, const drawing::size& size, const xtd::string& name);
164
165 protected:
167
169 forms::create_params create_params() const noexcept override;
171
173
179 xtd::uptr<xtd::object> clone() const override;
180
181 drawing::size measure_control() const noexcept override;
182 void on_font_changed(const xtd::event_args& e) override;
183 void on_resize(const xtd::event_args& e) override;
184 void on_text_changed(const xtd::event_args& e) override;
186
187 private:
188 xtd::sptr<data> data_;
189 };
190 }
191}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
Encapsulates the information needed when creating a control.
Definition create_params.h:29
Represents a Windows control that displays a frame around a group of controls with an optional captio...
Definition group_box.h:37
virtual forms::auto_size_mode auto_size_mode() const noexcept
Gets how the group_box behaves when its auto_size property is enabled.
group_box()
Initializes a new instance of the group_box class.
Contains xtd::forms::flat_style enum class.
#define forms_export_
Define shared library export.
Definition forms_export.h:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
control_appearance
Specifies the appearance of a control.
Definition control_appearance.h:21
flat_style
Specifies the appearance of a control.
Definition flat_style.h:24
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition auto_size_mode.h:22
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::border_style class.
Contains xtd::forms::style_sheets::control class.