xtd 1.0.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 xtd::object, xtd::iequatable<create_params> {
30 struct data;
31
32 public:
34
39
42 auto operator =(const create_params& other) -> create_params&;
44
46
50 [[nodiscard]] auto caption() const noexcept -> const xtd::string&;
54 auto caption(const xtd::string& value) -> create_params&;
55
59 [[nodiscard]] auto class_name() const noexcept -> const xtd::string&;
64 auto class_name(const xtd::string& value) -> create_params&;
65
69 [[nodiscard]] auto class_style() const noexcept -> xtd::usize;
75
80 [[nodiscard]] auto ex_style() const noexcept -> xtd::usize;
86 auto ex_style(xtd::usize value) -> create_params&;
87
90 [[nodiscard]] auto height() const noexcept -> xtd::int32;
94 auto height(xtd::int32 value) -> create_params&;
95
98 [[nodiscard]] auto location() const noexcept -> xtd::drawing::point;
102 auto location(const xtd::drawing::point value) -> create_params&;
103
106 [[nodiscard]] auto param() const noexcept -> xtd::intptr;
110 auto param(xtd::intptr value) -> create_params&;
111
114 [[nodiscard]] auto parent() const noexcept -> xtd::intptr;
118 auto parent(xtd::intptr value) -> create_params&;
119
123 [[nodiscard]] auto style() const noexcept -> xtd::usize;
128 auto style(xtd::usize value) -> create_params&;
129
132 [[nodiscard]] auto size() const noexcept -> xtd::drawing::size;
136 auto size(const xtd::drawing::size value) -> create_params&;
137
140 [[nodiscard]] auto width() const noexcept -> xtd::int32;
144 auto width(xtd::int32 value) -> create_params&;
145
148 [[nodiscard]] auto x() const noexcept -> xtd::int32;
152 auto x(xtd::int32 value) -> create_params&;
153
156 [[nodiscard]] auto y() const noexcept -> xtd::int32;
160 auto y(xtd::int32 value) -> create_params&;
162
164
169 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
173 [[nodiscard]] auto equals(const create_params& other) const noexcept -> bool override;
174
177 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
178
181 [[nodiscard]] auto to_string() const noexcept -> xtd::string override;
183
184 private:
185 xtd::sptr<data> data_;
186 };
187 }
188}
auto width() const noexcept -> xtd::int32
Gets the initial width of the control.
auto style() const noexcept -> xtd::usize
Gets a bitwise combination of window style values.
create_params()
Initializes a new instance of the create_params class.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto location() const noexcept -> xtd::drawing::point
Gets the initial location of the control.
auto size() const noexcept -> xtd::drawing::size
Gets the initial size of the control.
auto height() const noexcept -> xtd::int32
Gets the initial height of the control.
auto y() const noexcept -> xtd::int32
Gets the initial top position of the control.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto param() const noexcept -> xtd::intptr
Gets additional parameter information needed to create the control.
auto caption() const noexcept -> const xtd::string &
Gets the control's initial text.
auto class_style() const noexcept -> xtd::usize
Gets a bitwise combination of class style values.
auto ex_style() const noexcept -> xtd::usize
Gets a bitwise combination of extended window style values.
auto x() const noexcept -> xtd::int32
Gets the initial left position of the control.
auto class_name() const noexcept -> const xtd::string &
Gets the name of the Windows class to derive the control from.
auto parent() const noexcept -> xtd::intptr
Gets or sets the control's parent.
auto to_string() const noexcept -> xtd::string override
Returns a string that represents the current object.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197