Open CASCADE Technology  7.1.0.beta
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

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

Bottom-left corner as vec2.

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

Bottom-right corner as vec2.

float Font_Rect::Height ( ) const
inline

Rectangle height.

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

Top-left corner as vec2.

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

Top-left corner as vec2.

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

Top-right corner as vec2.

float Font_Rect::Width ( ) const
inline

Rectangle width.

Field Documentation

float Font_Rect::Bottom

bottom position

float Font_Rect::Left

left position

float Font_Rect::Right

right position

float Font_Rect::Top

top position


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