xtd 0.2.0
Loading...
Searching...
No Matches
create_params.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/drawing/point>
6#include <xtd/drawing/size>
7#include <xtd/object>
8#include <xtd/ustring>
9#include <cstdint>
10#include <iostream>
11#include <string>
12
14namespace xtd {
16 namespace forms {
27 class create_params : public object {
28 struct data;
29
30 public:
32
37
40 create_params& operator =(const create_params& other);
42
44
48 const xtd::ustring& caption() const noexcept;
53
57 const xtd::ustring& class_name() const noexcept;
63
67 size_t class_style() const noexcept;
73
78 size_t ex_style() const noexcept;
85
88 int32 height() const noexcept;
93
96 drawing::point location() const noexcept;
100 create_params& location(const drawing::point location);
101
104 intptr param() const noexcept;
109
112 intptr parent() const noexcept;
117
121 size_t style() const noexcept;
127
130 drawing::size size() const noexcept;
134 create_params& size(const drawing::size size);
135
138 int32 width() const noexcept;
143
146 int32 x() const noexcept;
151
154 int32 y() const noexcept;
160
162
166 xtd::ustring to_string() const noexcept override;
168
169 private:
170 std::shared_ptr<data> data_;
171 };
172 }
173}
Encapsulates the information needed when creating a control.
Definition create_params.h:27
create_params()
Initializes a new instance of the create_params class.
size_t style() const noexcept
Gets a bitwise combination of window style values.
const xtd::ustring & caption() const noexcept
Gets the control's initial text.
int32 y() const noexcept
Gets the initial top position of the control.
size_t class_style() const noexcept
Gets a bitwise combination of class style values.
int32 height() const noexcept
Gets the initial height of the control.
drawing::point location() const noexcept
Gets the initial location of the control.
int32 x() const noexcept
Gets the initial left position of the control.
intptr param() const noexcept
Gets additional parameter information needed to create the control.
xtd::ustring to_string() const noexcept override
Returns a string that represents the current object.
const xtd::ustring & class_name() const noexcept
Gets the name of the Windows class to derive the control from.
intptr parent() const noexcept
Gets or sets the control's parent.
int32 width() const noexcept
Gets the initial width of the control.
size_t ex_style() const noexcept
Gets a bitwise combination of extended window style values.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
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
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
@ other
The operating system is other.
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