Kanzi 4.0.0-beta2
kanzi::DebugVisualization::RectangleSettings Class Reference

Rectangle settings. More...

#include <kanzi/core.ui/node/debug_visualization.hpp>

Public Member Functions

bool matches (float width, float height, float textureHeight, float textureOffset)
 Indicates whether the current state matches given settings.
 
 RectangleSettings (float width, float height, float textureHeight, float textureOffset)
 Constructor.
 

Protected Attributes

float m_height
 Height.
 
float m_textureHeight
 Texture height.
 
float m_textureOffset
 Texture offset.
 
float m_width
 Width.
 

Detailed Description

Rectangle settings.

Constructor & Destructor Documentation

◆ RectangleSettings()

kanzi::DebugVisualization::RectangleSettings::RectangleSettings ( float width,
float height,
float textureHeight,
float textureOffset )
inlineexplicit

Constructor.

Parameters
widthRectangle width.
heightRectangle height.
textureHeightTexture height.
textureOffsetTexture offset.

Member Function Documentation

◆ matches()

bool kanzi::DebugVisualization::RectangleSettings::matches ( float width,
float height,
float textureHeight,
float textureOffset )
inline

Indicates whether the current state matches given settings.

Parameters
widthRectangle width.
heightRectangle height.
textureHeightTexture height.
textureOffsetTexture offset.
Returns
If matches true, false otherwise.

Member Data Documentation

◆ m_width

float kanzi::DebugVisualization::RectangleSettings::m_width
protected

Width.

◆ m_height

float kanzi::DebugVisualization::RectangleSettings::m_height
protected

Height.

◆ m_textureHeight

float kanzi::DebugVisualization::RectangleSettings::m_textureHeight
protected

Texture height.

◆ m_textureOffset

float kanzi::DebugVisualization::RectangleSettings::m_textureOffset
protected

Texture offset.


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