xtd 0.2.0
Loading...
Searching...
No Matches
splitter.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
6#include "splitter_style.h"
7#include <xtd/argument_exception>
8
10namespace xtd {
12 namespace forms {
25 struct data;
26
27 public:
29
34
36
48 control& dock(dock_style dock) override;
49
52 virtual int32 min_size() const noexcept;
56 virtual splitter& min_size(int32 min_size);
57
60 virtual xtd::forms::splitter_style splitter_style() const noexcept;
66
68
72 static splitter create();
76 static splitter create(const drawing::point& location);
81 static splitter create(const drawing::point& location, const drawing::size& size);
87 static splitter create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
91 static splitter create(const control& parent);
96 static splitter create(const control& parent, const drawing::point& location);
102 static splitter create(const control& parent, const drawing::point& location, const drawing::size& size);
109 static splitter create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
111
112 protected:
114
116 forms::cursor default_cursor() const noexcept override;
117 drawing::size default_size() const noexcept override;
119
121
127 std::unique_ptr<xtd::object> clone() const override;
128
129 void on_handle_created(const event_args& e) override;
130 void on_mouse_down(const mouse_event_args& e) override;
131 void on_mouse_move(const mouse_event_args& e) override;
132 void on_mouse_up(const mouse_event_args& e) override;
134
135 private:
136 std::shared_ptr<data> data_;
137 };
138 }
139}
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
virtual dock_style dock() const noexcept
Gets which control borders are docked to its parent control and determines how a control is resized w...
Represents the image used to paint the mouse pointer.
Definition cursor.h:38
Provides data for the xtd::forms::control::mouse_up, xtd::forms::control::mouse_down,...
Definition mouse_event_args.h:32
Represents a splitter control that enables the user to resize docked controls.
Definition splitter.h:24
splitter()
Initializes a new instance of the splitter class.
virtual int32 min_size() const noexcept
Gets the minimum distance that must remain between the splitter control and the container edge that t...
control & dock(dock_style dock) override
Sets or sets which control borders are docked to its parent control and determines how a control is r...
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
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
size_t size
Represents a size of any object in bytes.
Definition types.h:197
splitter_style
Represent splitter style used by splitter control.
Definition splitter_style.h:19
dock_style
Specifies the position and manner in which a control is docked.
Definition dock_style.h:21
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::splitter_style enum class.
Contains xtd::forms::style_sheets::control class.