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;
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;
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}
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.
drawing::size size() const noexcept
Gets the initial size of the control.
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
object()=default
Create a new instance of the ultimate base class object.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201