xtd 0.2.0
Loading...
Searching...
No Matches
create_params.hpp
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/string>
9#include <cstdint>
10#include <iostream>
11#include <string>
12
14namespace xtd {
16 namespace forms {
29 class create_params : public object {
30 struct data;
31
32 public:
34
39
42 create_params& operator =(const create_params& other);
44
46
50 const xtd::string& caption() const noexcept;
54 create_params& caption(const xtd::string& caption);
55
59 const xtd::string& class_name() const noexcept;
65
69 size_t class_style() const noexcept;
75
80 size_t ex_style() const noexcept;
87
90 int32 height() const noexcept;
95
98 drawing::point location() const noexcept;
102 create_params& location(const drawing::point location);
103
106 intptr param() const noexcept;
111
114 intptr parent() const noexcept;
119
123 size_t style() const noexcept;
129
132 drawing::size size() const noexcept;
136 create_params& size(const drawing::size size);
137
140 int32 width() const noexcept;
145
148 int32 x() const noexcept;
153
156 int32 y() const noexcept;
162
164
168 xtd::string to_string() const noexcept override;
170
171 private:
172 xtd::sptr<data> data_;
173 };
174 }
175}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Encapsulates the information needed when creating a control.
Definition create_params.hpp:29
const xtd::string & class_name() const noexcept
Gets the name of the Windows class to derive the control from.
create_params()
Initializes a new instance of the create_params class.
size_t style() const noexcept
Gets a bitwise combination of window style values.
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.
const xtd::string & caption() const noexcept
Gets the control's initial text.
intptr parent() const noexcept
Gets or sets the control's parent.
int32 width() const noexcept
Gets the initial width of the control.
xtd::string to_string() const noexcept override
Returns a string that represents the current object.
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.hpp:42
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ 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.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10