xtd 0.2.0
Loading...
Searching...
No Matches
split_container.h
Go to the documentation of this file.
1
4#pragma once
5#include "orientation.h"
7#include "splitter.h"
8#include "splitter_panel.h"
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.h:18
Defines the base class for controls, which are components with visual representation.
Definition control.h:81
Defines a base class for controls that support auto-scrolling behavior.
Definition scrollable_control.h:22
Represents a control consisting of a movable bar that divides a container's display area into two res...
Definition split_container.h: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.h:27
#define forms_export_
Define shared library export.
Definition forms_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
splitter_style
Represent splitter style used by splitter control.
Definition splitter_style.h:21
orientation
Specifies the orientation of controls or elements of controls.
Definition orientation.h:22
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::orientation enum class.
Contains xtd::forms::scrollable_control control.
Contains xtd::forms::splitter control.
Contains xtd::forms::splitter_panel container.