Gorgon Game Engine
Template.h File Reference

This file contains UI component template system. More...

Include dependency graph for Template.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ComponentTemplate
 Defines an object according to the Box Model. More...
 
class  ContainerTemplate
 Container class that defines an area according to the Box Model. More...
 
class  GraphicsTemplate
 Defines a visual component. More...
 
class  IgnoredTemplate
 This component type will be ignored by ComponentStack, effectively erasing Always when necessary. More...
 
class  PlaceholderTemplate
 Defines a placeholder according to the Box Model. More...
 
class  Template
 This class stores visual information about a widget template. More...
 
class  TextholderTemplate
 Textholder is designed to hold text data. More...
 
class  VisualProvider
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Graphics
 Contains generic 2D graphics related data structures and functions.
 
 Gorgon::UI
 This namespace contains User interface related functionality.
 

Enumerations

enum  Anchor {
  None, TopLeft, TopCenter, TopRight,
  MiddleLeft, MiddleCenter, MiddleRight, BottomLeft,
  BottomCenter, BottomRight, FirstBaselineLeft, FirstBaselineRight,
  LastBaselineLeft, LastBaselineRight
}
 Anchor position. More...
 
enum  ComponentCondition {
  Always, Never, None, Disabled,
  Readonly, Focused, Hover, Down,
  State2, State3, State4, Opened,
  Closed, Reversed, Odd, Even,
  First, Middle, Last, Alone,
  Active, HScroll, VScroll, HVScroll,
  Ch1V0, Ch1V05, Ch1V1, Ch2V0,
  Ch2V05, Ch2V1, Ch3V0, Ch3V05,
  Ch3V1, Ch4V0, Ch4V05, Ch4V1,
  Default, Cancel, DataEffectStart, TextIsSet,
  TitleIsSet, LabelIsSet, ValueText1IsSet, ValueText2IsSet,
  ValueText3IsSet, ValueText4IsSet, State1TextIsSet, State2TextIsSet,
  State3TextIsSet, State4TextIsSet, Icon1IsSet, Icon2IsSet,
  StateIcon1IsSet, StateIcon2IsSet, StateIcon3IsSet, StateIcon4IsSet,
  Max
}
 Controls the condition when the components are visible. More...
 
enum  ComponentType {
  Placeholder, Textholder, Graphics, Container,
  Ignored
}
 Types of components, see respective classes for details. More...
 

Functions

bool IsBottom (Anchor a)
 Returns if the given anchor is at bottom. More...
 
bool IsCenter (Anchor a)
 Returns if an anchor is centered horizontally. More...
 
bool IsLeft (Anchor a)
 Returns if an anchor is on the left. More...
 
bool IsMiddle (Anchor a)
 Returns if the given anchor is at middle vertically. More...
 
bool IsMouseRelated (ComponentCondition condition)
 Returns if the given condition is related to mouse events. More...
 
bool IsRight (Anchor a)
 Returns if an anchor is on the right. More...
 
bool IsTop (Anchor a)
 Returns if the given anchor is at top. More...
 
ComponentTemplate::ValueSource operator| (ComponentTemplate::ValueSource l, ComponentTemplate::ValueSource r)
 

Detailed Description

This file contains UI component template system.