GUIFramework
1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ImageButtonParser.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
ButtonParser.h
"
4
#include "
Components/Buttons/ImageButton.h
"
5
6
namespace
gui_framework
7
{
8
namespace
parsers
9
{
11
struct
GUI_FRAMEWORK_API
ImageButtonParser
:
public
ButtonParser
12
{
13
std::string
pathToImage
;
14
std::string
resourceModuleName
;
15
uint32_t
imageResource
;
16
ImageButton::drawingType
dType
;
17
ImageButton::imageType
iType
;
18
uint16_t
imageWidth
;
19
uint16_t
imageHeight
;
20
21
public
:
22
ImageButtonParser
();
23
24
void
parse(
const
json::utility::jsonObject& description)
override
;
25
26
~ImageButtonParser
() =
default
;
27
};
28
}
29
}
ButtonParser.h
GUI_FRAMEWORK_API
#define GUI_FRAMEWORK_API
Definition
GUIFrameworkConstants.h:103
ImageButton.h
gui_framework::ImageButton::drawingType
drawingType
Definition
ImageButton.h:15
gui_framework::utility::BaseLoadableHolder::imageType
imageType
Definition
BaseLoadableHolder.h:25
gui_framework
Definition
BaseComponent.cpp:21
gui_framework::parsers::ButtonParser
Parse Button specific properties.
Definition
ButtonParser.h:11
gui_framework::parsers::ImageButtonParser
Parse ImageButton specific properties.
Definition
ImageButtonParser.h:12
gui_framework::parsers::ImageButtonParser::iType
ImageButton::imageType iType
Definition
ImageButtonParser.h:17
gui_framework::parsers::ImageButtonParser::dType
ImageButton::drawingType dType
Definition
ImageButtonParser.h:16
gui_framework::parsers::ImageButtonParser::pathToImage
std::string pathToImage
Definition
ImageButtonParser.h:13
gui_framework::parsers::ImageButtonParser::imageHeight
uint16_t imageHeight
Definition
ImageButtonParser.h:19
gui_framework::parsers::ImageButtonParser::~ImageButtonParser
~ImageButtonParser()=default
gui_framework::parsers::ImageButtonParser::imageResource
uint32_t imageResource
Definition
ImageButtonParser.h:15
gui_framework::parsers::ImageButtonParser::resourceModuleName
std::string resourceModuleName
Definition
ImageButtonParser.h:14
gui_framework::parsers::ImageButtonParser::imageWidth
uint16_t imageWidth
Definition
ImageButtonParser.h:18
GUIFramework
src
Deserialization
Parsers
Buttons
ImageButtonParser.h
Generated by
1.12.0