Kanzi Framework  3.9.0
Kanzi Engine API
kanzi::QuadDescription Class Reference

Quad description. Used to create renderable quad geometry. More...

#include <kanzi/core.ui/graphics2d/quad_description.hpp>

Public Member Functions

unsigned int clipBottom (float border)
 Clip from bottom side. More...
 
unsigned int clipLeft (float border)
 Clip from left side. More...
 
unsigned int clipRight (float border)
 Clip from right side. More...
 
unsigned int clipTop (float border)
 Clip from top side. More...
 
Vector2 getOffset () const
 Get quad offset. More...
 
Vector2 getSize () const
 Get quad size. More...
 
Vector2 getTextureOffset () const
 Get texture size. More...
 
Vector2 getTextureSize () const
 Get texture size. More...
 
 QuadDescription ()
 Empty constructor. More...
 
 QuadDescription (Vector2 offset, Vector2 size)
 Constructor. More...
 
 QuadDescription (Vector2 offset, Vector2 size, Vector2 texcoordOffset, Vector2 texcoordSize)
 Constructor with full info. More...
 

Static Public Attributes

static const unsigned int ClippingResultBottom
 Clipping mask - bottom part. More...
 
static const unsigned int ClippingResultCenter
 Clipping mask - center area. More...
 
static const unsigned int ClippingResultLeft
 Clipping mask - left part. More...
 
static const unsigned int ClippingResultOutside
 Layer clipping result - any outside area. More...
 
static const unsigned int ClippingResultRight
 Clipping mask - right part. More...
 
static const unsigned int ClippingResultSingleOutsideRectangle
 Single rectangular outside area, do not care which one. More...
 
static const unsigned int ClippingResultTop
 Clipping mask - top part. More...
 

Detailed Description

Quad description. Used to create renderable quad geometry.

Constructor & Destructor Documentation

◆ QuadDescription() [1/3]

kanzi::QuadDescription::QuadDescription ( )
inlineexplicit

Empty constructor.

◆ QuadDescription() [2/3]

kanzi::QuadDescription::QuadDescription ( Vector2  offset,
Vector2  size 
)
inlineexplicit

Constructor.

Parameters
offsetOffset.
sizeSize.

◆ QuadDescription() [3/3]

kanzi::QuadDescription::QuadDescription ( Vector2  offset,
Vector2  size,
Vector2  texcoordOffset,
Vector2  texcoordSize 
)
inlineexplicit

Constructor with full info.

Parameters
offsetOffset.
sizeSize.
texcoordOffsetTexcoord offset.
texcoordSizeTexcoord size.

Member Function Documentation

◆ clipBottom()

unsigned int kanzi::QuadDescription::clipBottom ( float  border)

Clip from bottom side.

Parameters
borderBorder to clip to.
Returns
Clip mask of areas remaining.

◆ clipLeft()

unsigned int kanzi::QuadDescription::clipLeft ( float  border)

Clip from left side.

Parameters
borderBorder to clip to.
Returns
Clip mask of areas remaining.

◆ clipRight()

unsigned int kanzi::QuadDescription::clipRight ( float  border)

Clip from right side.

Parameters
borderBorder to clip to.
Returns
Clip mask of areas remaining.

◆ clipTop()

unsigned int kanzi::QuadDescription::clipTop ( float  border)

Clip from top side.

Parameters
borderBorder to clip to.
Returns
Clip mask of areas remaining.

◆ getOffset()

Vector2 kanzi::QuadDescription::getOffset ( ) const
inline

Get quad offset.

Returns
Quad offset vector.

◆ getSize()

Vector2 kanzi::QuadDescription::getSize ( ) const
inline

Get quad size.

Returns
Quad size vector.

◆ getTextureOffset()

Vector2 kanzi::QuadDescription::getTextureOffset ( ) const
inline

Get texture size.

Returns
Texture offset vector.

◆ getTextureSize()

Vector2 kanzi::QuadDescription::getTextureSize ( ) const
inline

Get texture size.

Returns
Texture size vector.

Member Data Documentation

◆ ClippingResultCenter

const unsigned int kanzi::QuadDescription::ClippingResultCenter
static

Clipping mask - center area.

◆ ClippingResultBottom

const unsigned int kanzi::QuadDescription::ClippingResultBottom
static

Clipping mask - bottom part.

◆ ClippingResultLeft

const unsigned int kanzi::QuadDescription::ClippingResultLeft
static

Clipping mask - left part.

◆ ClippingResultRight

const unsigned int kanzi::QuadDescription::ClippingResultRight
static

Clipping mask - right part.

◆ ClippingResultTop

const unsigned int kanzi::QuadDescription::ClippingResultTop
static

Clipping mask - top part.

◆ ClippingResultSingleOutsideRectangle

const unsigned int kanzi::QuadDescription::ClippingResultSingleOutsideRectangle
static

Single rectangular outside area, do not care which one.

◆ ClippingResultOutside

const unsigned int kanzi::QuadDescription::ClippingResultOutside
static

Layer clipping result - any outside area.


The documentation for this class was generated from the following file: