Gorgon Game Engine
Component Class Reference

This class is an instance of a component. More...

Public Member Functions

 Component (const ComponentTemplate &temp)
 
const ComponentTemplateGetTemplate () const
 Returns the template, component should have a template at all times. More...
 

Public Attributes

bool anchorotherside
 
bool anchtoparent
 
Geometry::Size innersize
 
Geometry::Point location
 
int parent
 
Geometry::Rectangle range
 
bool reversed
 
Geometry::Size size
 

Detailed Description

This class is an instance of a component.

It simply links the component to its template, stores calculated location, size, instances of graphics and possibly the text that will be rendered. Components are internal objects that are managed by ComponentStack.

Constructor & Destructor Documentation

◆ Component()

Component ( const ComponentTemplate temp)

Member Function Documentation

◆ GetTemplate()

const ComponentTemplate& GetTemplate ( ) const

Returns the template, component should have a template at all times.

Member Data Documentation

◆ anchorotherside

bool anchorotherside

◆ anchtoparent

bool anchtoparent

◆ innersize

Geometry::Size innersize

◆ location

Geometry::Point location

◆ parent

int parent

◆ range

◆ reversed

bool reversed

◆ size


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