mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
doxyfile
This commit is contained in:
@@ -26,8 +26,9 @@
|
||||
#define UICHECKBOXSKIN_H
|
||||
|
||||
#include <prerequisites.h>
|
||||
#include <ui/uielementskin.h>
|
||||
|
||||
class UICheckBoxSkin
|
||||
class UICheckBoxSkin : public UIElementSkin
|
||||
{
|
||||
};
|
||||
|
||||
|
@@ -39,8 +39,11 @@ public:
|
||||
m_elementType(elementType) { }
|
||||
virtual ~UIElementSkin() { }
|
||||
|
||||
/// Load the skin from a YAML node
|
||||
virtual void load(const YAML::Node& node);
|
||||
/// Apply the skin to an element
|
||||
virtual void apply(UIElement *element);
|
||||
/// Draw the skinned element
|
||||
virtual void draw(UIElement *element);
|
||||
|
||||
const std::string& getName() const { return m_name; }
|
||||
|
@@ -29,25 +29,27 @@
|
||||
#include <ui/uiconstants.h>
|
||||
#include <ui/uicontainer.h>
|
||||
|
||||
namespace UILoader
|
||||
class UILoader
|
||||
{
|
||||
/// Detect element type and create it
|
||||
UIElementPtr createElementFromId(const std::string& id);
|
||||
|
||||
public:
|
||||
/// Loads an UIElement and it's children from a YAML file
|
||||
UIElementPtr loadFile(const std::string& file, const UIContainerPtr& parent = UIContainer::getRootContainer());
|
||||
static UIElementPtr loadFile(const std::string& file, const UIContainerPtr& parent = UIContainer::getRootContainer());
|
||||
|
||||
private:
|
||||
/// Detect element type and create it
|
||||
static UIElementPtr createElementFromId(const std::string& id);
|
||||
|
||||
/// Populate container children from a YAML node
|
||||
void populateContainer(const UIContainerPtr& parent, const YAML::Node& node);
|
||||
static void populateContainer(const UIContainerPtr& parent, const YAML::Node& node);
|
||||
|
||||
/// Load element and its children from a YAML node
|
||||
void loadElements(const UIElementPtr& parent, const YAML::Node& node);
|
||||
static void loadElements(const UIElementPtr& parent, const YAML::Node& node);
|
||||
|
||||
/// Load element proprieties from a YAML node
|
||||
void loadElement(const UIElementPtr& element, const YAML::Node& node);
|
||||
static void loadElement(const UIElementPtr& element, const YAML::Node& node);
|
||||
|
||||
/// Load anchor from a YAML node
|
||||
void loadElementAnchor(const UIElementPtr& element, EAnchorType type, const YAML::Node& node);
|
||||
static void loadElementAnchor(const UIElementPtr& element, EAnchorType type, const YAML::Node& node);
|
||||
};
|
||||
|
||||
#endif // UILOADER_H
|
||||
|
Reference in New Issue
Block a user