Cafu Engine
GuiEditor::ChildFrameT Class Reference
Inheritance diagram for GuiEditor::ChildFrameT:

Public Member Functions

 ChildFrameT (ParentFrameT *Parent, const wxString &FileName, GuiDocumentT *GuiDocument)
 Constructor to create a child frame for GUI editing. More...
 
GuiDocumentTGetGuiDoc ()
 
ToolManagerTGetToolManager ()
 
float SnapToGrid (float Value) const
 Snaps a single position coordinate to the current grid. More...
 
Vector2fT SnapToGrid (const Vector2fT &Position) const
 Snaps a position in GUI space to the grid. More...
 
bool SubmitCommand (CommandT *Command)
 [...] All(!) commands for modifying the document must be submitted via this method. More...
 
bool Save (bool AskForFileName=false)
 

Constructor & Destructor Documentation

ChildFrameT::ChildFrameT ( ParentFrameT Parent,
const wxString &  FileName,
GuiDocumentT GuiDocument 
)

Constructor to create a child frame for GUI editing.

Parameters
ParentThe parent frame of this child frame.
FileNameFilename for this frame.
GuiDocumentThis frames gui document. The frame becomes the owner of the document, i.e. it is responsible for destructing it. (GuiDocument is created externally so that this constructor doesn't fail on doc creation failure.)

Member Function Documentation

float ChildFrameT::SnapToGrid ( float  Value) const

Snaps a single position coordinate to the current grid.

Vector2fT ChildFrameT::SnapToGrid ( const Vector2fT Position) const

Snaps a position in GUI space to the grid.

bool ChildFrameT::SubmitCommand ( CommandT Command)

[...] All(!) commands for modifying the document must be submitted via this method.


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