xtd 0.2.0
Loading...
Searching...
No Matches
xtd::drawing::size_f Class Reference
Inheritance diagram for xtd::drawing::size_f:
xtd::object xtd::iequatable< size_f > xtd::interface xtd::equality_operators< type_t, equatable_t >

Definition

Stores an ordered pair of floating-point, which specify a height and width.

Stores an ordered pair of floating-point, which specify a height and width.
Definition size_f.h:31
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
Inheritance
xtd::objectxtd::drawing::size_f
Namespace
xtd::drawing
Library
xtd.drawing

Public Fields

static const xtd::drawing::size_f empty
 Gets a Size class that has a Height and Width value of 0. This field is constant.
 

Public Constructors

 size_f () noexcept=default
 Initializes a new instance of the Size class that has a Height and Width value of 0.
 
 size_f (const xtd::drawing::point_f &point) noexcept
 Initializes a new instance of the xtd::drawing::size_f class from the specified xtd::drawing::point_f class.
 
 size_f (float width, float height) noexcept
 Initializes a new instance of the xtd::drawing::size_f class from the specified dimensions.
 

Public Properties

float height () const noexcept
 Gets he vertical component of this xtd::drawing::size_f class.
 
void height (float value) noexcept
 Sets the vertical component of this xtd::drawing::size_f Class.
 
bool is_empty () const noexcept
 Tests whether this Size class has xtd::drawing::size_f::width and xtd::drawing::size_f::height of 0.
 
float width () const noexcept
 Gets the horizontal component of this xtd::drawing::size_f class.
 
void width (float value) noexcept
 Sets the horizontal component of this xtd::drawing::size_f class.
 

Public Methods

bool equals (const xtd::drawing::size_f &value) const noexcept override
 
xtd::string to_string () const noexcept override
 Creates a human-readable string that represents this xtd::drawing::size_f class.
 
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 

Operators

size_f operator+ (const xtd::drawing::size_f &size) const noexcept
 Increases a xtd::drawing::size_f with a given xtd::drawing::size_f.
 
size_f operator+ (const xtd::drawing::size &size) const noexcept
 Increases a xtd::drawing::size_f with a given xtd::drawing::size.
 
size_foperator+= (const xtd::drawing::size_f &size) noexcept
 Increases a xtd::drawing::size_f wuth a given xtd::drawing::size_f.
 
size_foperator+= (const xtd::drawing::size &size) noexcept
 Increases a xtd::drawing::size_f wuth a given xtd::drawing::size.
 
size_f operator- (const xtd::drawing::size_f &size) const noexcept
 Decreases a xtd::drawing::size_f with the a given xtd::drawing::size_f.
 
size_f operator- (const xtd::drawing::size &size) const noexcept
 Decreases a xtd::drawing::size_f with the a given xtd::drawing::size.
 
size_foperator-= (const xtd::drawing::size_f &size) noexcept
 Decreases a xtd::drawing::size_f with the a given xtd::drawing::size_f.
 
size_foperator-= (const xtd::drawing::size &size) noexcept
 Decreases a xtd::drawing::size_f with the a given xtd::drawing::size.
 

Public Static Methods

static xtd::drawing::size_f add (const xtd::drawing::size_f &size1, const xtd::drawing::size_f &size2) noexcept
 Adds the width and height of one xtd::drawing::size_f class to the width and height of another xtd::drawing::size_f class.
 
static xtd::drawing::size_f subtract (const xtd::drawing::size_f &sz1, const xtd::drawing::size_f &sz2) noexcept
 Returns the result of subtracting specified xtd::drawing::size_f from the specified xtd::drawing::size_f.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Public Member Functions inherited from xtd::iequatable< size_f >
virtual bool equals (const size_f &) const noexcept=0
 Indicates wheth er the current object is equal to another object of the same type.
 
- Static Public Member Functions inherited from xtd::object
template<typename object_a_t , typename object_b_t >
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
template<typename object_a_t , typename object_b_t >
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.
 

The documentation for this class was generated from the following file:
  • xtd.drawing/include/xtd/drawing/size_f.h