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.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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 {
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 }
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
Used to group collections of controls.
Definition: panel.h:21
virtual panel & border_style(forms::border_style border_style)
Sets the border style for the control.
panel()
Initialises a new instance of panel class.
void on_layout(const event_args &e) override
Raises the control::layout event.
virtual panel & auto_size_mode(forms::auto_size_mode value)
Sets the mode by which the panel automatically resizes itself.
forms::create_params create_params() const override
Gets the required creation parameters when the control handle is created.
virtual forms::border_style border_style() const
Gets the border style for the control.
Definition: panel.h:37
virtual forms::auto_size_mode auto_size_mode() const
Gets the mode by which the panel automatically resizes itself.
Definition: panel.h:28
drawing::size default_size() const override
Gets the default size of the control.
Definition: panel.h:44
drawing::size measure_control() const override
Measure this control.
void on_handle_created(const event_args &e) override
Raises the control::handle_created event.
Defines a base class for controls that support auto-scrolling behavior.
Definition: scrollable_control.h:18
#define forms_export_
Define shared library export.
Definition: forms_export.h:13
border_style
Specifies the border style for a control.
Definition: border_style.h:18
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition: auto_size_mode.h:18
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
Contains xtd::forms::scrollable_control control.