xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
group_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "control.h"
6 #include "border_style.h"
7 #include "flat_style.h"
8 
10 namespace xtd {
12  namespace forms {
28  class forms_export_ group_box : public control {
29  public:
32 
35  virtual forms::auto_size_mode auto_size_mode() const {return auto_size_mode_;}
40 
41  drawing::size default_size() const override {return {200, 100};}
42 
43  protected:
44  forms::create_params create_params() const override;
45 
46  drawing::size measure_control() const override;
47 
48  void on_font_changed(const xtd::event_args& e) override;
49 
50  void on_resize(const xtd::event_args& e) override;
51 
52  void on_text_changed(const xtd::event_args& e) override;
53 
57  };
58  }
59 }
Contains xtd::forms::border_style enum class.
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
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:67
Represents a Windows control that displays a frame around a group of controls with an optional captio...
Definition: group_box.h:28
void on_font_changed(const xtd::event_args &e) override
Raises the control::font_changed event.
virtual group_box & auto_size_mode(forms::auto_size_mode value)
Sets how the group_box behaves when its auto_size property is enabled.
void on_resize(const xtd::event_args &e) override
Raises the control::resize event.
group_box()
Initializes a new instance of the group_box class.
forms::create_params create_params() const override
Gets the required creation parameters when the control handle is created.
void on_text_changed(const xtd::event_args &e) override
Raises the control::text_changed event.
drawing::size measure_control() const override
Measure this control.
drawing::size default_size() const override
Gets the default size of the control.
Definition: group_box.h:41
virtual forms::auto_size_mode auto_size_mode() const
Gets how the group_box behaves when its auto_size property is enabled.
Definition: group_box.h:35
Contains xtd::forms::control control.
Contains xtd::forms::flat_style enum class.
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
flat_style
Specifies the appearance of a control.
Definition: flat_style.h:20
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
@ system
The appearance of the control is determined by the user's operating system.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17