![]() |
xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <padding.h>
Represents a display device or multiple display devices on a single system.
Inherits xtd::object.
Static Public Attributes | |
| static const padding | empty |
| Provides a Padding object with no padding. | |
Public Member Functions | |
| padding ()=default | |
| Initializes a new instance of the padding class. | |
| padding (int all) | |
| Initializes a new instance of the padding class using the supplied padding size for all edges. | |
| padding (int left, int top, int right, int bottom) | |
| Initializes a new instance of the padding class using a separate padding size for each edge. | |
| int | all () const |
| Gets the padding value for all the edges. | |
| void | all (int all) |
| Sets the padding value for all the edges. | |
| int | bottom () const |
| Gets the padding value for the bottom edge. | |
| void | bottom (int bottom) |
| Sets the padding value for the bottom edge. | |
| int | horizontal () const |
| Gets the combined padding for the right and left edges. | |
| int | left () const |
| Gets the padding value for the left edge. | |
| void | left (int left) |
| Sets the padding value for the left edge. | |
| int | right () const |
| Gets the padding value for the right edge. | |
| void | right (int right) |
| Sets the padding value for the right edge. | |
| xtd::ustring | to_string () const noexcept override |
| Returns a string that represents the current padding. | |
| int | top () const |
| Gets the padding value for the top edge. | |
| void | top (int top) |
| Sets the padding value for the top edge. | |
| int | vertical () const |
| Gets the combined padding for the bottom and top edges. | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance. | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a std::string that represents the current object. | |
Static Public Member Functions | |
| static padding | add (const padding &p1, const padding &p2) |
| Computes the sum of the two specified padding values. | |
| static padding | subtract (const padding &p1, const padding &p2) |
| Subtracts one specified Padding value from another. | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the padding class.
|
inline |
Initializes a new instance of the padding class using the supplied padding size for all edges.
| all | The number of pixels to be used for padding for all edges. |
|
inline |
Initializes a new instance of the padding class using a separate padding size for each edge.
| left | The padding size, in pixels, for the left edge. |
| top | The padding size, in pixels, for the top edge. |
| right | The padding size, in pixels, for the right edge. |
| bottom | The padding size, in pixels, for the bottom edge. |
Computes the sum of the two specified padding values.
|
inline |
Gets the padding value for all the edges.
|
inline |
Sets the padding value for all the edges.
| all | The padding, in pixels, for all edges if the same; otherwise, -1. |
|
inline |
Gets the padding value for the bottom edge.
|
inline |
Sets the padding value for the bottom edge.
| bottom | The padding, in pixels, for the bottom edge. |
|
inline |
Gets the combined padding for the right and left edges.
|
inline |
Gets the padding value for the left edge.
|
inline |
Sets the padding value for the left edge.
| left | The padding, in pixels, for the left edge. |
|
inline |
Gets the padding value for the right edge.
|
inline |
Sets the padding value for the right edge.
| right | The padding, in pixels, for the right edge. |
|
inlinestatic |
Subtracts one specified Padding value from another.
| p1 | A padding. |
| p2 | A padding. |
|
inlineoverridevirtualnoexcept |
Returns a string that represents the current padding.
Reimplemented from xtd::object.
|
inline |
Gets the padding value for the top edge.
|
inline |
Sets the padding value for the top edge.
| top | The padding, in pixels, for the top edge. |
|
inline |
Gets the combined padding for the bottom and top edges.
| p1 | A padding. |
| p2 | A padding. |
|
static |
Provides a Padding object with no padding.