xtd 0.2.0
Loading...
Searching...
No Matches
panel.h
Go to the documentation of this file.
1
4#pragma once
5#include "border_sides.h"
6#include "border_style.h"
8#include <xtd/optional>
9
11namespace xtd {
13 namespace forms {
31 struct data;
32
33 public:
35
40
42
46 virtual forms::auto_size_mode auto_size_mode() const noexcept;
51
54 virtual forms::border_sides border_sides() const noexcept;
58
62 virtual forms::border_style border_style() const noexcept;
72 virtual panel& border_style(std::nullptr_t border_style);
74
76
80 static panel create();
84 static panel create(const drawing::point& location);
89 static panel create(const drawing::point& location, const drawing::size& size);
95 static panel create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
99 static panel create(const control& parent);
104 static panel create(const control& parent, const drawing::point& location);
110 static panel create(const control& parent, const drawing::point& location, const drawing::size& size);
117 static panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
119
120 protected:
122
124 forms::create_params create_params() const noexcept override;
126
128
134 std::unique_ptr<xtd::object> clone() const override;
135
136 drawing::size measure_control() const noexcept override;
137 void on_layout(const event_args& e) override;
138 void on_paint(paint_event_args& e) override;
140
141 private:
142 std::shared_ptr<data> data_;
143 };
144 }
145}
Contains xtd::forms::border_sides enum class.
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:79
Encapsulates the information needed when creating a control.
Definition create_params.h:27
Provides data for the xtd::forms::control::paint event.
Definition paint_event_args.h:28
Used to group collections of controls.
Definition panel.h:30
virtual forms::auto_size_mode auto_size_mode() const noexcept
Gets the mode by which the panel automatically resizes itself.
panel()
Initialises a new instance of panel class.
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:20
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define forms_export_
Define shared library export.
Definition forms_export.h:13
size_t size
Represents a size of any object in bytes.
Definition types.h:197
border_sides
Specifies how a control anchors to the edges of its container.
Definition border_sides.h:21
border_style
Specifies the border style for a control.
Definition border_style.h:20
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition auto_size_mode.h:20
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::scrollable_control control.
Contains xtd::forms::style_sheets::border_style class.