Open CASCADE Technology  7.3.0
Public Member Functions | Data Fields

Font_Rect Struct Reference

Auxiliary POD structure - 2D rectangle definition. More...

#include <Font_Rect.hxx>

Public Member Functions

NCollection_Vec2< float > TopLeft () const
 Top-left corner as vec2. More...
 
NCollection_Vec2< float > & TopLeft (NCollection_Vec2< float > &theVec) const
 Top-left corner as vec2. More...
 
NCollection_Vec2< float > & TopRight (NCollection_Vec2< float > &theVec) const
 Top-right corner as vec2. More...
 
NCollection_Vec2< float > & BottomLeft (NCollection_Vec2< float > &theVec) const
 Bottom-left corner as vec2. More...
 
NCollection_Vec2< float > & BottomRight (NCollection_Vec2< float > &theVec) const
 Bottom-right corner as vec2. More...
 
float Width () const
 Rectangle width. More...
 
float Height () const
 Rectangle height. More...
 

Data Fields

float Left
 left position More...
 
float Right
 right position More...
 
float Top
 top position More...
 
float Bottom
 bottom position More...
 

Detailed Description

Auxiliary POD structure - 2D rectangle definition.

Member Function Documentation

◆ BottomLeft()

NCollection_Vec2<float>& Font_Rect::BottomLeft ( NCollection_Vec2< float > &  theVec) const
inline

Bottom-left corner as vec2.

◆ BottomRight()

NCollection_Vec2<float>& Font_Rect::BottomRight ( NCollection_Vec2< float > &  theVec) const
inline

Bottom-right corner as vec2.

◆ Height()

float Font_Rect::Height ( ) const
inline

Rectangle height.

◆ TopLeft() [1/2]

NCollection_Vec2<float> Font_Rect::TopLeft ( ) const
inline

Top-left corner as vec2.

◆ TopLeft() [2/2]

NCollection_Vec2<float>& Font_Rect::TopLeft ( NCollection_Vec2< float > &  theVec) const
inline

Top-left corner as vec2.

◆ TopRight()

NCollection_Vec2<float>& Font_Rect::TopRight ( NCollection_Vec2< float > &  theVec) const
inline

Top-right corner as vec2.

◆ Width()

float Font_Rect::Width ( ) const
inline

Rectangle width.

Field Documentation

◆ Bottom

float Font_Rect::Bottom

bottom position

◆ Left

float Font_Rect::Left

left position

◆ Right

float Font_Rect::Right

right position

◆ Top

float Font_Rect::Top

top position


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