#include <padding.h>
Represents a display device or multiple display devices on a single system.
- Namespace
- xtd::forms
- Library
- xtd.forms
- Examples
- list_box.cpp.
Inherits xtd::object.
|
| padding ()=default |
| Initializes a new instance of the padding class. More...
|
|
| padding (int all) |
| Initializes a new instance of the padding class using the supplied padding size for all edges. More...
|
|
| 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. More...
|
|
int | all () const |
| Gets the padding value for all the edges. More...
|
|
void | all (int all) |
| Sets the padding value for all the edges. More...
|
|
int | bottom () const |
| Gets the padding value for the bottom edge. More...
|
|
void | bottom (int bottom) |
| Sets the padding value for the bottom edge. More...
|
|
int | horizontal () const |
| Gets the combined padding for the right and left edges. More...
|
|
int | left () const |
| Gets the padding value for the left edge. More...
|
|
void | left (int left) |
| Sets the padding value for the left edge. More...
|
|
int | right () const |
| Gets the padding value for the right edge. More...
|
|
void | right (int right) |
| Sets the padding value for the right edge. More...
|
|
xtd::ustring | to_string () const noexcept override |
| Returns a string that represents the current padding. More...
|
|
int | top () const |
| Gets the padding value for the top edge. More...
|
|
void | top (int top) |
| Sets the padding value for the top edge. More...
|
|
int | vertical () const |
| Gets the combined padding for the bottom and top edges. More...
|
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
virtual bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const |
| Gets the type of the current instance. More...
|
|
◆ padding() [1/3]
xtd::forms::padding::padding |
( |
| ) |
|
|
default |
Initializes a new instance of the padding class.
◆ padding() [2/3]
xtd::forms::padding::padding |
( |
int |
all | ) |
|
|
inline |
Initializes a new instance of the padding class using the supplied padding size for all edges.
- Parameters
-
all | The number of pixels to be used for padding for all edges. |
◆ padding() [3/3]
xtd::forms::padding::padding |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom |
|
) |
| |
|
inline |
Initializes a new instance of the padding class using a separate padding size for each edge.
- Parameters
-
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. |
◆ add()
Computes the sum of the two specified padding values.
- Returns
- A padding that contains the sum of the two specified padding values.
◆ all() [1/2]
int xtd::forms::padding::all |
( |
| ) |
const |
|
inline |
Gets the padding value for all the edges.
- Returns
- The padding, in pixels, for all edges if the same; otherwise, -1.
◆ all() [2/2]
void xtd::forms::padding::all |
( |
int |
all | ) |
|
|
inline |
Sets the padding value for all the edges.
- Parameters
-
all | The padding, in pixels, for all edges if the same; otherwise, -1. |
◆ bottom() [1/2]
int xtd::forms::padding::bottom |
( |
| ) |
const |
|
inline |
Gets the padding value for the bottom edge.
- Returns
- The padding, in pixels, for the bottom edge.
◆ bottom() [2/2]
void xtd::forms::padding::bottom |
( |
int |
bottom | ) |
|
|
inline |
Sets the padding value for the bottom edge.
- Parameters
-
bottom | The padding, in pixels, for the bottom edge. |
◆ horizontal()
int xtd::forms::padding::horizontal |
( |
| ) |
const |
|
inline |
Gets the combined padding for the right and left edges.
- Returns
- Gets the sum, in pixels, of the left and right padding values.
◆ left() [1/2]
int xtd::forms::padding::left |
( |
| ) |
const |
|
inline |
Gets the padding value for the left edge.
- Returns
- The padding, in pixels, for the left edge.
◆ left() [2/2]
void xtd::forms::padding::left |
( |
int |
left | ) |
|
|
inline |
Sets the padding value for the left edge.
- Parameters
-
left | The padding, in pixels, for the left edge. |
◆ right() [1/2]
int xtd::forms::padding::right |
( |
| ) |
const |
|
inline |
Gets the padding value for the right edge.
- Returns
- The padding, in pixels, for the right edge.
◆ right() [2/2]
void xtd::forms::padding::right |
( |
int |
right | ) |
|
|
inline |
Sets the padding value for the right edge.
- Parameters
-
right | The padding, in pixels, for the right edge. |
◆ subtract()
Subtracts one specified Padding value from another.
- Parameters
-
p1 | A padding. |
p2 | A padding. |
- Returns
- A padding that contains the result of the subtraction of one specified padding value from another.
◆ to_string()
|
inlineoverridevirtualnoexcept |
Returns a string that represents the current padding.
- Returns
- A string that represents the current padding.
Reimplemented from xtd::object.
◆ top() [1/2]
int xtd::forms::padding::top |
( |
| ) |
const |
|
inline |
Gets the padding value for the top edge.
- Returns
- The padding, in pixels, for the top edge.
◆ top() [2/2]
void xtd::forms::padding::top |
( |
int |
top | ) |
|
|
inline |
Sets the padding value for the top edge.
- Parameters
-
top | The padding, in pixels, for the top edge. |
◆ vertical()
int xtd::forms::padding::vertical |
( |
| ) |
const |
|
inline |
Gets the combined padding for the bottom and top edges.
- Parameters
-
p1 | A padding. |
p2 | A padding. |
- Returns
- Gets the sum, in pixels, of the top and bottom padding values.
◆ empty
const padding xtd::forms::padding::empty |
|
static |
Provides a Padding object with no padding.
The documentation for this class was generated from the following file: