Otclient  14/8/2020
UIManager Class Reference

#include <uimanager.h>

Public Member Functions

void init ()
 
void terminate ()
 
void render (Fw::DrawPane drawPane)
 
void resize (const Size &size)
 
void inputEvent (const InputEvent &event)
 
void updatePressedWidget (const UIWidgetPtr &newPressedWidget, const Point &clickedPos=Point(), bool fireClicks=true)
 
bool updateDraggingWidget (const UIWidgetPtr &draggingWidget, const Point &clickedPos=Point())
 
void updateHoveredWidget (bool now=false)
 
void clearStyles ()
 
bool importStyle (std::string file)
 
void importStyleFromOTML (const OTMLNodePtr &styleNode)
 
OTMLNodePtr getStyle (const std::string &styleName)
 
std::string getStyleClass (const std::string &styleName)
 
UIWidgetPtr loadUI (std::string file, const UIWidgetPtr &parent)
 
UIWidgetPtr displayUI (const std::string &file)
 
UIWidgetPtr createWidget (const std::string &styleName, const UIWidgetPtr &parent)
 
UIWidgetPtr createWidgetFromOTML (const OTMLNodePtr &widgetNode, const UIWidgetPtr &parent)
 
void setMouseReceiver (const UIWidgetPtr &widget)
 
void setKeyboardReceiver (const UIWidgetPtr &widget)
 
void setDebugBoxesDrawing (bool enabled)
 
void resetMouseReceiver ()
 
void resetKeyboardReceiver ()
 
UIWidgetPtr getMouseReceiver ()
 
UIWidgetPtr getKeyboardReceiver ()
 
UIWidgetPtr getDraggingWidget ()
 
UIWidgetPtr getHoveredWidget ()
 
UIWidgetPtr getPressedWidget ()
 
UIWidgetPtr getRootWidget ()
 
bool isMouseGrabbed ()
 
bool isKeyboardGrabbed ()
 
bool isDrawingDebugBoxes ()
 

Protected Member Functions

void onWidgetAppear (const UIWidgetPtr &widget)
 
void onWidgetDisappear (const UIWidgetPtr &widget)
 
void onWidgetDestroy (const UIWidgetPtr &widget)
 

Friends

class UIWidget
 

Detailed Description

Definition at line 32 of file uimanager.h.

Member Function Documentation

◆ clearStyles()

void UIManager::clearStyles ( )

Definition at line 312 of file uimanager.cpp.

Here is the caller graph for this function:

◆ createWidget()

UIWidgetPtr UIManager::createWidget ( const std::string &  styleName,
const UIWidgetPtr parent 
)

Definition at line 429 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createWidgetFromOTML()

UIWidgetPtr UIManager::createWidgetFromOTML ( const OTMLNodePtr widgetNode,
const UIWidgetPtr parent 
)

Definition at line 440 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayUI()

UIWidgetPtr UIManager::displayUI ( const std::string &  file)
inline

Definition at line 53 of file uimanager.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDraggingWidget()

UIWidgetPtr UIManager::getDraggingWidget ( )
inline

Definition at line 64 of file uimanager.h.

Here is the caller graph for this function:

◆ getHoveredWidget()

UIWidgetPtr UIManager::getHoveredWidget ( )
inline

Definition at line 65 of file uimanager.h.

◆ getKeyboardReceiver()

UIWidgetPtr UIManager::getKeyboardReceiver ( )
inline

Definition at line 63 of file uimanager.h.

Here is the caller graph for this function:

◆ getMouseReceiver()

UIWidgetPtr UIManager::getMouseReceiver ( )
inline

Definition at line 62 of file uimanager.h.

Here is the caller graph for this function:

◆ getPressedWidget()

UIWidgetPtr UIManager::getPressedWidget ( )
inline

Definition at line 66 of file uimanager.h.

Here is the caller graph for this function:

◆ getRootWidget()

UIWidgetPtr UIManager::getRootWidget ( )
inline

Definition at line 67 of file uimanager.h.

Here is the caller graph for this function:

◆ getStyle()

OTMLNodePtr UIManager::getStyle ( const std::string &  styleName)

Definition at line 377 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getStyleClass()

std::string UIManager::getStyleClass ( const std::string &  styleName)

Definition at line 394 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importStyle()

bool UIManager::importStyle ( std::string  file)

Definition at line 317 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ importStyleFromOTML()

void UIManager::importStyleFromOTML ( const OTMLNodePtr styleNode)

Definition at line 333 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void UIManager::init ( )

Definition at line 35 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inputEvent()

void UIManager::inputEvent ( const InputEvent event)

Definition at line 69 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isDrawingDebugBoxes()

bool UIManager::isDrawingDebugBoxes ( )
inline

Definition at line 71 of file uimanager.h.

Here is the caller graph for this function:

◆ isKeyboardGrabbed()

bool UIManager::isKeyboardGrabbed ( )
inline

Definition at line 69 of file uimanager.h.

Here is the caller graph for this function:

◆ isMouseGrabbed()

bool UIManager::isMouseGrabbed ( )
inline

Definition at line 68 of file uimanager.h.

Here is the caller graph for this function:

◆ loadUI()

UIWidgetPtr UIManager::loadUI ( std::string  file,
const UIWidgetPtr parent 
)

Definition at line 402 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onWidgetAppear()

void UIManager::onWidgetAppear ( const UIWidgetPtr widget)
protected

Definition at line 258 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onWidgetDestroy()

void UIManager::onWidgetDestroy ( const UIWidgetPtr widget)
protected

Definition at line 270 of file uimanager.cpp.

Here is the call graph for this function:

◆ onWidgetDisappear()

void UIManager::onWidgetDisappear ( const UIWidgetPtr widget)
protected

Definition at line 264 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ render()

void UIManager::render ( Fw::DrawPane  drawPane)

Definition at line 59 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetKeyboardReceiver()

void UIManager::resetKeyboardReceiver ( )
inline

Definition at line 61 of file uimanager.h.

Here is the caller graph for this function:

◆ resetMouseReceiver()

void UIManager::resetMouseReceiver ( )
inline

Definition at line 60 of file uimanager.h.

Here is the caller graph for this function:

◆ resize()

void UIManager::resize ( const Size size)

Definition at line 64 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDebugBoxesDrawing()

void UIManager::setDebugBoxesDrawing ( bool  enabled)
inline

Definition at line 59 of file uimanager.h.

Here is the caller graph for this function:

◆ setKeyboardReceiver()

void UIManager::setKeyboardReceiver ( const UIWidgetPtr widget)
inline

Definition at line 58 of file uimanager.h.

Here is the caller graph for this function:

◆ setMouseReceiver()

void UIManager::setMouseReceiver ( const UIWidgetPtr widget)
inline

Definition at line 57 of file uimanager.h.

Here is the caller graph for this function:

◆ terminate()

void UIManager::terminate ( )

Definition at line 44 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDraggingWidget()

bool UIManager::updateDraggingWidget ( const UIWidgetPtr draggingWidget,
const Point clickedPos = Point() 
)

Definition at line 186 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateHoveredWidget()

void UIManager::updateHoveredWidget ( bool  now = false)

Definition at line 219 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePressedWidget()

void UIManager::updatePressedWidget ( const UIWidgetPtr newPressedWidget,
const Point clickedPos = Point(),
bool  fireClicks = true 
)

Definition at line 170 of file uimanager.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ UIWidget

friend class UIWidget
friend

Definition at line 78 of file uimanager.h.


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