Structure for optional floating point sizes.
更多...
#include <SlateStructs.h>
|
|
| FOptionalSize () |
| | Creates an unspecified size.
|
| |
| | FOptionalSize (const float SpecifiedSize) |
| | Creates a size with the specified value. 更多...
|
| |
| float | Get () const |
| | Gets the value of the size. 更多...
|
| |
| bool | IsSet () const |
| | Checks whether the size is set. 更多...
|
| |
|
bool | operator== (const FOptionalSize &Other) const |
| | Compare one optional size to another for equality
|
| |
Structure for optional floating point sizes.
◆ FOptionalSize()
| FOptionalSize::FOptionalSize |
( |
const float |
SpecifiedSize | ) |
|
|
inline |
Creates a size with the specified value.
- 参数
-
| SpecifiedSize | The size to set. |
◆ Get()
| float FOptionalSize::Get |
( |
| ) |
const |
|
inline |
Gets the value of the size.
Before calling this method, check with IsSet() whether the size is actually specified. Unspecified sizes a value of -1.0f will be returned.
- 参见
- IsSet
◆ IsSet()
| bool FOptionalSize::IsSet |
( |
| ) |
const |
|
inline |
Checks whether the size is set.
- 返回
- true if the size is set, false if it is unspecified.
- 参见
- Get
该结构体的文档由以下文件生成: