Use QuadDescription to create renderable quad geometry.
More...
#include <kanzi/core.ui/graphics2d/quad_description.hpp>
Use QuadDescription to create renderable quad geometry.
kanzi::QuadDescription::QuadDescription |
( |
| ) |
|
|
explicitdefault |
kanzi::QuadDescription::QuadDescription |
( |
Vector2 |
offset, |
|
|
Vector2 |
size |
|
) |
| |
|
inlineexplicit |
Constructor with full info.
- Parameters
-
offset | Offset. |
size | Size. |
texcoordOffset | Texcoord offset. |
texcoordSize | Texcoord size. |
unsigned int kanzi::QuadDescription::clipBottom |
( |
float |
border | ) |
|
Clips from the bottom side.
- Parameters
-
border | The border to which to clip. |
- Returns
- Clip mask of remaining areas.
unsigned int kanzi::QuadDescription::clipLeft |
( |
float |
border | ) |
|
Clips from the left side.
- Parameters
-
border | The border to which to clip. |
- Returns
- Clip mask of remaining areas.
unsigned int kanzi::QuadDescription::clipRight |
( |
float |
border | ) |
|
Clips from the right side.
- Parameters
-
border | The border to which to clip. |
- Returns
- Clip mask of remaining areas.
unsigned int kanzi::QuadDescription::clipTop |
( |
float |
border | ) |
|
Clips from the top side.
- Parameters
-
border | The border to which to clip. |
- Returns
- Clip mask of remaining areas.
Vector2 kanzi::QuadDescription::getOffset |
( |
| ) |
const |
|
inline |
Gets the quad offset.
- Returns
- Quad offset vector.
Vector2 kanzi::QuadDescription::getSize |
( |
| ) |
const |
|
inline |
Gets the size of the quad.
- Returns
- Quad size vector.
Vector2 kanzi::QuadDescription::getTextureOffset |
( |
| ) |
const |
|
inline |
Gets the offset of the texture.
- Returns
- Texture offset vector.
Vector2 kanzi::QuadDescription::getTextureSize |
( |
| ) |
const |
|
inline |
Gets the size of the texture.
- Returns
- Texture size vector.
bool kanzi::QuadDescription::operator== |
( |
const QuadDescription & |
other | ) |
const |
|
inline |
Checks whether two quads are equal.
- Parameters
-
- Returns
- If the quads are equal, true, otherwise false.
bool kanzi::QuadDescription::operator!= |
( |
const QuadDescription & |
other | ) |
const |
|
inline |
Checks whether two quads are not equal.
- Parameters
-
- Returns
- If the quads are not equal, true, otherwise false.
const unsigned int kanzi::QuadDescription::ClippingResultCenter |
|
static |
Clipping mask - center area.
const unsigned int kanzi::QuadDescription::ClippingResultBottom |
|
static |
Clipping mask - bottom part.
const unsigned int kanzi::QuadDescription::ClippingResultLeft |
|
static |
Clipping mask - left part.
const unsigned int kanzi::QuadDescription::ClippingResultRight |
|
static |
Clipping mask - right part.
const unsigned int kanzi::QuadDescription::ClippingResultTop |
|
static |
Clipping mask - top part.
const unsigned int kanzi::QuadDescription::ClippingResultSingleOutsideRectangle |
|
static |
Single rectangular outside area, do not care which one.
const unsigned int kanzi::QuadDescription::ClippingResultOutside |
|
static |
Layer clipping result - any outside area.
The documentation for this class was generated from the following file: