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