xtd 0.2.0
create_params.h
Go to the documentation of this file.
1 #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 
14 namespace xtd {
16  namespace forms {
27  class create_params : public object {
28  struct data;
29 
30  public:
32 
35  create_params();
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;
101 
104  intptr param() const noexcept;
109 
112  intptr parent() const noexcept;
117 
121  size_t style() const noexcept;
126  create_params& style(size_t style);
127 
130  drawing::size size() const noexcept;
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 }
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
const xtd::ustring & caption() const noexcept
Gets the control&#39;s initial text.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
size_t style() const noexcept
Gets a bitwise combination of window style values.
size_t class_style() const noexcept
Gets a bitwise combination of class style values.
Encapsulates the information needed when creating a control.
Definition: create_params.h:27
int32 x() const noexcept
Gets the initial left position of the control.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
drawing::size size() const noexcept
Gets the initial size of the control.
size_t ex_style() const noexcept
Gets a bitwise combination of extended window style values.
intptr parent() const noexcept
Gets or sets the control&#39;s parent.
create_params()
Initializes a new instance of the create_params class.
const xtd::ustring & class_name() const noexcept
Gets the name of the Windows class to derive the control from.
The operating system is other.
int32 width() const noexcept
Gets the initial width of the control.
int32 y() const noexcept
Gets the initial top position of the control.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
int32 height() const noexcept
Gets the initial height of the control.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
intptr param() const noexcept
Gets additional parameter information needed to create the control.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195
drawing::point location() const noexcept
Gets the initial location of the control.
xtd::ustring to_string() const noexcept override
Returns a string that represents the current object.