5 #include "../drawing_export.h" 7 #include <xtd/iequatable> 57 operator size_f() const noexcept;
66 int32 height() const noexcept;
70 void height(
int32 value) noexcept;
74 bool is_empty() const noexcept;
79 int32 width() const noexcept;
83 void width(
int32 value) noexcept;
93 static
size add(const
size& size1, const
size& size2) noexcept;
98 static
size ceiling(const
size_f& value) noexcept;
100 bool equals(const
xtd::drawing::
size& value) const noexcept override;
105 static
size round(const
size_f& value) noexcept;
111 static
xtd::drawing::
size subtract(const
xtd::drawing::
size& sz1, const
xtd::drawing::
size& sz2) noexcept;
120 static
size truncate(const
size_f& value) noexcept;
156 inline drawing::
size parse<drawing::
size>(const std::
string& str) {
158 return {xtd::parse<int32>(values[0]), xtd::parse<int32>(values[1])};
value_t parse(const std::string &str)
Convert a string into a type.
Definition: parse.h:23
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
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
ustring replace(value_type old_char, value_type new_char) const noexcept
Replaces all occurrences of a specified char_t in this string with another specified char_t...
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Stores an ordered pair of floating-point, which specify a height and width.
Definition: size_f.h:31
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
std::vector< ustring > split(const std::vector< value_type > &separators, size_t count, string_split_options options) const noexcept
Splits this string into a maximum number of substrings based on the characters in an array...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::drawing::size_f class.
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
Specifies a printer's point (1/72 inch) as the unit of measure.
static const xtd::drawing::size empty
Gets a xtd::drawing::size class that has a Height and Width value of 0. This field is constant...
Definition: size.h:37