Simple GUI Library
Sgl::Scene Class Reference
Inheritance diagram for Sgl::Scene:
Collaboration diagram for Sgl::Scene:

Public Member Functions

 Scene (int32_t width, int32_t height)
 
void update ()
 
void render (const Sml::Rectangle< int32_t > &targetRegion)
 
void proccessEvent (Sml::Event *event)
 
virtual Sml::EventDispatchChain * buildEventDispatchChain (Sml::EventDispatchChain *chain) override
 
GuiEventDispatchergetEventDispatcher ()
 
Sml::Rectangle< int32_t > getLayoutRegion () const
 
int32_t getWidth () const
 
void setWidth (int32_t width)
 
int32_t getHeight () const
 
void setHeight (int32_t height)
 
ParentgetRoot ()
 
void setRoot (Parent *root)
 
ComponentgetFocusOwner ()
 
void requestFocus (Component *component)
 
ComponentgetDragOwner ()
 
void requestDrag (Component *component)
 
void finishDrag ()
 
void registerContextMenu (ContextMenu *contextMenu)
 
void detachContextMenu (ContextMenu *contextMenu)
 

Detailed Description

Definition at line 19 of file scene.h.

Constructor & Destructor Documentation

◆ Scene()

Sgl::Scene::Scene ( int32_t  width,
int32_t  height 
)

Definition at line 15 of file scene.cpp.

Member Function Documentation

◆ buildEventDispatchChain()

Sml::EventDispatchChain * Sgl::Scene::buildEventDispatchChain ( Sml::EventDispatchChain *  chain)
overridevirtual

Definition at line 84 of file scene.cpp.

◆ detachContextMenu()

void Sgl::Scene::detachContextMenu ( ContextMenu contextMenu)

Definition at line 167 of file scene.cpp.

◆ finishDrag()

void Sgl::Scene::finishDrag ( )

Definition at line 148 of file scene.cpp.

◆ getDragOwner()

Component * Sgl::Scene::getDragOwner ( )

Definition at line 132 of file scene.cpp.

◆ getEventDispatcher()

GuiEventDispatcher * Sgl::Scene::getEventDispatcher ( )

Definition at line 92 of file scene.cpp.

◆ getFocusOwner()

Component * Sgl::Scene::getFocusOwner ( )

Definition at line 105 of file scene.cpp.

◆ getHeight()

int32_t Sgl::Scene::getHeight ( ) const

Definition at line 99 of file scene.cpp.

◆ getLayoutRegion()

Sml::Rectangle< int32_t > Sgl::Scene::getLayoutRegion ( ) const

Definition at line 94 of file scene.cpp.

◆ getRoot()

Parent * Sgl::Scene::getRoot ( )

Definition at line 102 of file scene.cpp.

◆ getWidth()

int32_t Sgl::Scene::getWidth ( ) const

Definition at line 96 of file scene.cpp.

◆ proccessEvent()

void Sgl::Scene::proccessEvent ( Sml::Event *  event)

Definition at line 70 of file scene.cpp.

◆ registerContextMenu()

void Sgl::Scene::registerContextMenu ( ContextMenu contextMenu)

Definition at line 161 of file scene.cpp.

◆ render()

void Sgl::Scene::render ( const Sml::Rectangle< int32_t > &  targetRegion)

Definition at line 57 of file scene.cpp.

◆ requestDrag()

void Sgl::Scene::requestDrag ( Component component)

Definition at line 134 of file scene.cpp.

◆ requestFocus()

void Sgl::Scene::requestFocus ( Component component)

Definition at line 107 of file scene.cpp.

◆ setHeight()

void Sgl::Scene::setHeight ( int32_t  height)

Definition at line 100 of file scene.cpp.

◆ setRoot()

void Sgl::Scene::setRoot ( Parent root)

Definition at line 103 of file scene.cpp.

◆ setWidth()

void Sgl::Scene::setWidth ( int32_t  width)

Definition at line 97 of file scene.cpp.

◆ update()

void Sgl::Scene::update ( )

Definition at line 17 of file scene.cpp.


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