A two-dimensional size.
More...
|
float | height |
| The vertical dimension.
|
|
float | width |
| The horizontal dimension.
|
|
A two-dimensional size.
- Since
- Haiku R1
◆ BSize() [1/3]
Initializes a BSize object with both dimensions set to B_SIZE_UNSET
.
- See also
- BSize::Set()
- Since
- Haiku R1
◆ BSize() [2/3]
BSize::BSize |
( |
const BSize & |
other | ) |
|
|
inline |
Initializes a BSize object from another BSize.
- Parameters
-
other | The BSize object to copy from. |
- Since
- Haiku R1
◆ BSize() [3/3]
BSize::BSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inline |
Initializes a BSize object with the specified width and height values.
- Parameters
-
width | The width value to set. |
height | The height value to set. |
- Since
- Haiku R1
◆ Height()
float BSize::Height |
( |
| ) |
const |
|
inline |
◆ IntegerHeight()
int32 BSize::IntegerHeight |
( |
| ) |
const |
|
inline |
Returns the height value of a BSize object as an int32.
- Returns
- BSize::height, cast to an int32.
- Warning
- This may lose precision!
- Since
- Haiku R1
References height.
◆ IntegerWidth()
int32 BSize::IntegerWidth |
( |
| ) |
const |
|
inline |
Returns the width value of a BSize object as an int32.
- Returns
- BSize::width, cast to an int32.
- Warning
- This may lose precision!
- Since
- Haiku R1
References width.
◆ IsHeightSet()
bool BSize::IsHeightSet |
( |
| ) |
const |
|
inline |
◆ IsWidthSet()
bool BSize::IsWidthSet |
( |
| ) |
const |
|
inline |
Checks if the BSize::width is not B_SIZE_UNSET
.
- Returns
true
if the width is set, false
otherwise.
- Since
- Haiku R1
References B_SIZE_UNSET, and width.
◆ operator!=()
bool BSize::operator!= |
( |
const BSize & |
other | ) |
const |
|
inline |
Returns whether or not the width and height values of the BSize objects differ.
- Returns
true
if the width or height values differ, false
otherwise.
- Since
- Haiku R1
◆ operator=()
Initializes a BSize object from another BSize by overloading the = operator.
- Parameters
-
other | The BSize object to copy from. |
- Since
- Haiku R1
References height, and width.
◆ operator==()
bool BSize::operator== |
( |
const BSize & |
other | ) |
const |
|
inline |
Returns whether or not the width and height values of the BSize objects are equal.
- Returns
true
if the width and height values are equal, false
otherwise.
- Since
- Haiku R1
References height, and width.
◆ Set()
void BSize::Set |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inline |
Sets the width and height values of a BSize object.
- Parameters
-
width | The width value to set. |
height | The height value to set. |
- Since
- Haiku R1
References height, and width.
◆ SetHeight()
void BSize::SetHeight |
( |
float |
height | ) |
|
|
inline |
Sets the height value of a BSize object.
- Parameters
-
height | The height value to set. |
- Since
- Haiku R1
References height.
◆ SetWidth()
void BSize::SetWidth |
( |
float |
width | ) |
|
|
inline |
Sets the width value of a BSize object.
- Parameters
-
width | The width value to set. |
- Since
- Haiku R1
References width.
◆ Width()
float BSize::Width |
( |
| ) |
const |
|
inline |
◆ height
◆ width