xtd 0.2.0
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, iequatable<create_params> {
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
169 bool equals(const xtd::object& obj) const noexcept override;
173 bool equals(const create_params& other) const noexcept override;
174
177 xtd::size get_hash_code() const noexcept override;
178
181 xtd::string to_string() const noexcept override;
183
184 private:
185 xtd::sptr<data> data_;
186 };
187 }
188}
Represents text as a sequence of character units.
Definition basic_string.hpp:71
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.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
size_t style() const noexcept
Gets a bitwise combination of window style values.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
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.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
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
@ 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