xtd 0.2.0
Loading...
Searching...
No Matches
split_container.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "orientation.hpp"
7#include "splitter.hpp"
8#include "splitter_panel.hpp"
9
11namespace xtd {
13 namespace forms {
28 struct data;
29
30 public:
32
37
39
43 virtual xtd::forms::orientation orientation() const noexcept;
48
51 virtual const splitter_panel& panel1() const noexcept;
54 virtual splitter_panel& panel1() noexcept;
55
58 virtual const splitter_panel& panel2() const noexcept;
61 virtual splitter_panel& panel2() noexcept;
62
65 virtual int32 splitter_distance() const noexcept;
69 virtual split_container& splitter_distance(int32 splitter_distance);
70
73 virtual xtd::forms::splitter_style splitter_style() const noexcept;
78
82 virtual int32 splitter_width() const noexcept;
87 virtual split_container& splitter_width(int32 splitter_width);
89
91
95 static split_container create();
99 static split_container create(const drawing::point& location);
104 static split_container create(const drawing::point& location, const drawing::size& size);
110 static split_container create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
114 static split_container create(const control& parent);
119 static split_container create(const control& parent, const drawing::point& location);
125 static split_container create(const control& parent, const drawing::point& location, const drawing::size& size);
132 static split_container create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
134
135 protected:
137
139 drawing::size default_size() const noexcept override;
141
143
149 xtd::uptr<xtd::object> clone() const override;
150
151 void on_resize(const event_args& e) override;
153
154 private:
155 void arrange_children();
156
157 xtd::sptr<data> data_;
158 };
159 }
160}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.hpp:22
Represents a control consisting of a movable bar that divides a container's display area into two res...
Definition split_container.hpp:27
split_container()
Initializes a new instance of the split_container class.
virtual xtd::forms::orientation orientation() const noexcept
Gets a value indicating the horizontal or vertical orientation of the split_container panels.
Creates a panel that is associated with a split_container.
Definition splitter_panel.hpp:27
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
splitter_style
Represent splitter style used by splitter control.
Definition splitter_style.hpp:21
orientation
Specifies the orientation of controls or elements of controls.
Definition orientation.hpp:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::orientation enum class.
Contains xtd::forms::scrollable_control control.
Contains xtd::forms::splitter control.
Contains xtd::forms::splitter_panel container.