xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::drawing::size_f Class Reference

Stores an ordered pair of integers, which specify a height and width. More...

#include <size_f.h>

Public Member Functions

 size_f ()=default
 Initializes a new instance of the Size class that has a Height and Width value of 0. More...
 
 size_f (const xtd::drawing::point_f &point)
 Initializes a new instance of the Size class from the specified Point class. More...
 
 size_f (float width, float height)
 Initializes a new instance of the Size class from the specified dimensions. More...
 
float height () const
 Gets he vertical component of this Size Class. More...
 
void height (float height)
 Sets the vertical component of this Size Class. More...
 
bool is_empty () const
 Tests whether this Size class has width and height of 0. More...
 
std::string to_string () const
 Creates a human-readable string that represents this size class. More...
 
float width () const
 Gets the horizontal component of this Size class. More...
 
void width (float width)
 Sets the horizontal component of this Size class. More...
 

Static Public Member Functions

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

Static Public Attributes

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

Detailed Description

Stores an ordered pair of integers, which specify a height and width.


The documentation for this class was generated from the following file: