SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::Label::InitStruct Struct Reference

#include <SDOM_Label.hpp>

Inheritance diagram for SDOM::Label::InitStruct:
SDOM::IDisplayObject::InitStruct

Public Member Functions

 InitStruct ()
 

Public Attributes

std::string text = "Label"
 
std::string resourceName = "internal_font_8x8"
 
IFontObject::FontType fontType = IFontObject::FontType::Bitmap
 
int fontSize = 8
 
int fontWidth = 8
 
int fontHeight = 8
 
LabelAlign alignment = LabelAlign::TOP_LEFT
 
bool bold = false
 
bool italic = false
 
bool underline = false
 
bool strikethrough = false
 
bool border = false
 
bool background = false
 
bool outline = false
 
bool dropshadow = false
 
bool wordwrap = false
 
bool auto_resize = true
 
int maxWidth = 0
 
int maxHeight = 0
 
int borderThickness = 1
 
int outlineThickness = 1
 
int padding_horiz = 0
 
int padding_vert = 0
 
int dropshadowOffsetX = 1
 
int dropshadowOffsetY = 1
 
std::string name = TypeName
 
std::string type = TypeName
 
float x = 0.0f
 
float y = 0.0f
 
float width = 0.0f
 
float height = 0.0f
 
SDL_Color color = {255, 0, 255, 255}
 
SDL_Color foregroundColor = {255, 255, 255, 255}
 
SDL_Color backgroundColor = {255, 255, 255, 128}
 
SDL_Color borderColor = {0, 0, 0, 128}
 
SDL_Color outlineColor = {0, 0, 0, 255}
 
SDL_Color dropshadowColor = {0, 0, 0, 128}
 
AnchorPoint anchorTop = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorLeft = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorBottom = AnchorPoint::TOP_LEFT
 
AnchorPoint anchorRight = AnchorPoint::TOP_LEFT
 
int z_order = 0
 
int priority = 0
 
bool isClickable = true
 
bool isEnabled = true
 
bool isHidden = false
 
int tabPriority = 0
 
bool tabEnabled = false
 

Constructor & Destructor Documentation

◆ InitStruct()

SDOM::Label::InitStruct::InitStruct ( )
inline

Member Data Documentation

◆ alignment

LabelAlign SDOM::Label::InitStruct::alignment = LabelAlign::TOP_LEFT

◆ anchorBottom

AnchorPoint SDOM::IDisplayObject::InitStruct::anchorBottom = AnchorPoint::TOP_LEFT
inherited

◆ anchorLeft

AnchorPoint SDOM::IDisplayObject::InitStruct::anchorLeft = AnchorPoint::TOP_LEFT
inherited

◆ anchorRight

AnchorPoint SDOM::IDisplayObject::InitStruct::anchorRight = AnchorPoint::TOP_LEFT
inherited

◆ anchorTop

AnchorPoint SDOM::IDisplayObject::InitStruct::anchorTop = AnchorPoint::TOP_LEFT
inherited

◆ auto_resize

bool SDOM::Label::InitStruct::auto_resize = true

◆ background

bool SDOM::Label::InitStruct::background = false

◆ backgroundColor

SDL_Color SDOM::IDisplayObject::InitStruct::backgroundColor = {255, 255, 255, 128}
inherited

◆ bold

bool SDOM::Label::InitStruct::bold = false

◆ border

bool SDOM::Label::InitStruct::border = false

◆ borderColor

SDL_Color SDOM::IDisplayObject::InitStruct::borderColor = {0, 0, 0, 128}
inherited

◆ borderThickness

int SDOM::Label::InitStruct::borderThickness = 1

◆ color

SDL_Color SDOM::IDisplayObject::InitStruct::color = {255, 0, 255, 255}
inherited

◆ dropshadow

bool SDOM::Label::InitStruct::dropshadow = false

◆ dropshadowColor

SDL_Color SDOM::IDisplayObject::InitStruct::dropshadowColor = {0, 0, 0, 128}
inherited

◆ dropshadowOffsetX

int SDOM::Label::InitStruct::dropshadowOffsetX = 1

◆ dropshadowOffsetY

int SDOM::Label::InitStruct::dropshadowOffsetY = 1

◆ fontHeight

int SDOM::Label::InitStruct::fontHeight = 8

◆ fontSize

int SDOM::Label::InitStruct::fontSize = 8

◆ fontType

IFontObject::FontType SDOM::Label::InitStruct::fontType = IFontObject::FontType::Bitmap

◆ fontWidth

int SDOM::Label::InitStruct::fontWidth = 8

◆ foregroundColor

SDL_Color SDOM::IDisplayObject::InitStruct::foregroundColor = {255, 255, 255, 255}
inherited

◆ height

float SDOM::IDisplayObject::InitStruct::height = 0.0f
inherited

◆ isClickable

bool SDOM::IDisplayObject::InitStruct::isClickable = true
inherited

◆ isEnabled

bool SDOM::IDisplayObject::InitStruct::isEnabled = true
inherited

◆ isHidden

bool SDOM::IDisplayObject::InitStruct::isHidden = false
inherited

◆ italic

bool SDOM::Label::InitStruct::italic = false

◆ maxHeight

int SDOM::Label::InitStruct::maxHeight = 0

◆ maxWidth

int SDOM::Label::InitStruct::maxWidth = 0

◆ name

std::string SDOM::IDisplayObject::InitStruct::name = TypeName
inherited

◆ outline

bool SDOM::Label::InitStruct::outline = false

◆ outlineColor

SDL_Color SDOM::IDisplayObject::InitStruct::outlineColor = {0, 0, 0, 255}
inherited

◆ outlineThickness

int SDOM::Label::InitStruct::outlineThickness = 1

◆ padding_horiz

int SDOM::Label::InitStruct::padding_horiz = 0

◆ padding_vert

int SDOM::Label::InitStruct::padding_vert = 0

◆ priority

int SDOM::IDisplayObject::InitStruct::priority = 0
inherited

◆ resourceName

std::string SDOM::Label::InitStruct::resourceName = "internal_font_8x8"

◆ strikethrough

bool SDOM::Label::InitStruct::strikethrough = false

◆ tabEnabled

bool SDOM::IDisplayObject::InitStruct::tabEnabled = false
inherited

◆ tabPriority

int SDOM::IDisplayObject::InitStruct::tabPriority = 0
inherited

◆ text

std::string SDOM::Label::InitStruct::text = "Label"

◆ type

std::string SDOM::IDisplayObject::InitStruct::type = TypeName
inherited

◆ underline

bool SDOM::Label::InitStruct::underline = false

◆ width

float SDOM::IDisplayObject::InitStruct::width = 0.0f
inherited

◆ wordwrap

bool SDOM::Label::InitStruct::wordwrap = false

◆ x

float SDOM::IDisplayObject::InitStruct::x = 0.0f
inherited

◆ y

float SDOM::IDisplayObject::InitStruct::y = 0.0f
inherited

◆ z_order

int SDOM::IDisplayObject::InitStruct::z_order = 0
inherited

The documentation for this struct was generated from the following file: