xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
panel.h
Go to the documentation of this file.
1 #pragma once
5 #include "scrollable_control.h"
6 #include "border_style.h"
7 
9 namespace xtd {
11  namespace forms {
21  class forms_export_ panel : public scrollable_control {
22  public:
24  panel();
25 
28  virtual forms::auto_size_mode auto_size_mode() const {return auto_size_mode_;}
33 
37  virtual forms::border_style border_style() const {return border_style_;}
43 
44  drawing::size default_size() const override {return {200, 100};}
45 
46  protected:
47  forms::create_params create_params() const override;
48 
49  drawing::size measure_control() const override;
50 
51  void on_handle_created(const event_args& e) override;
52 
53  void on_layout(const event_args& e) override;
54 
58  };
59  }
60 }
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Used to group collections of controls.
Definition: panel.h:21
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
Contains xtd::forms::scrollable_control control.
Defines a base class for controls that support auto-scrolling behavior.
Definition: scrollable_control.h:18
virtual forms::auto_size_mode auto_size_mode() const
Gets the mode by which the panel automatically resizes itself.
Definition: panel.h:28
border_style
Specifies the border style for a control.
Definition: border_style.h:18
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::border_style enum class.
drawing::size default_size() const override
Gets the default size of the control.
Definition: panel.h:44
virtual forms::border_style border_style() const
Gets the border style for the control.
Definition: panel.h:37