GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
gui_framework::deserializers::ButtonDeserializer Class Reference

Deserialize Button from JSON. More...

#include <ButtonDeserializer.h>

Inheritance diagram for gui_framework::deserializers::ButtonDeserializer:
gui_framework::interfaces::IDeserializer

Public Member Functions

 ButtonDeserializer ()=default
 
BaseComponentdeserialize (const std::string &componentName, const json::utility::jsonObject &description, BaseComposite *parent) const override
 Created component pointer already handled by its parent.
 
 ~ButtonDeserializer ()=default
 
- Public Member Functions inherited from gui_framework::interfaces::IDeserializer
 IDeserializer ()=default
 
virtual ~IDeserializer ()=default
 

Detailed Description

Deserialize Button from JSON.

Definition at line 10 of file ButtonDeserializer.h.

Constructor & Destructor Documentation

◆ ButtonDeserializer()

gui_framework::deserializers::ButtonDeserializer::ButtonDeserializer ( )
default

◆ ~ButtonDeserializer()

gui_framework::deserializers::ButtonDeserializer::~ButtonDeserializer ( )
default

Member Function Documentation

◆ deserialize()

BaseComponent * gui_framework::deserializers::ButtonDeserializer::deserialize ( const std::string & componentName,
const json::utility::jsonObject & description,
BaseComposite * parent ) const
overridevirtual

Created component pointer already handled by its parent.

Parameters
componentNameField name from JSON
descriptionField data from JSON
parentParent composite or nullptr if has no parent
Returns

Implements gui_framework::interfaces::IDeserializer.

Definition at line 14 of file ButtonDeserializer.cpp.


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