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 {
27 struct data;
28
29 public:
31
36
38
50 control& dock(dock_style dock) override;
51
54 virtual int32 min_size() const noexcept;
58 virtual splitter& min_size(int32 min_size);
59
62 virtual xtd::forms::splitter_style splitter_style() const noexcept;
68
70
74 static splitter create();
78 static splitter create(const drawing::point& location);
83 static splitter create(const drawing::point& location, const drawing::size& size);
89 static splitter create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
93 static splitter create(const control& parent);
98 static splitter create(const control& parent, const drawing::point& location);
104 static splitter create(const control& parent, const drawing::point& location, const drawing::size& size);
111 static splitter create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
113
114 protected:
116
118 forms::cursor default_cursor() const noexcept override;
119 drawing::size default_size() const noexcept override;
121
123
129 xtd::uptr<xtd::object> clone() const override;
130
131 void on_handle_created(const event_args& e) override;
132 void on_mouse_down(const mouse_event_args& e) override;
133 void on_mouse_move(const mouse_event_args& e) override;
134 void on_mouse_up(const mouse_event_args& e) override;
136
137 private:
138 xtd::sptr<data> data_;
139 };
140 }
141}
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
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:40
Provides data for the xtd::forms::control::mouse_up, xtd::forms::control::mouse_down,...
Definition mouse_event_args.h:34
Represents a splitter control that enables the user to resize docked controls.
Definition splitter.h:26
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...
#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
dock_style
Specifies the position and manner in which a control is docked.
Definition dock_style.h:23
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.