Lysa UI  0.0
Lysa UI —UI components for the Lysa Engine
StyleClassicResource Class Reference

Detailed Description

UI resources for the classic style.

+ Inheritance diagram for StyleClassicResource:

Public Types

enum  Style { FLAT, RAISED, LOWERED }
 

Public Member Functions

 StyleClassicResource (const std::string &resource)
 Custom color value. More...
 
- Public Member Functions inherited from UIResource
 UIResource (const std::string &res)
 Constructor. More...
 
virtual ~UIResource () = default
 
const std::string & getResource () const
 Returns the resource description string. More...
 

Public Attributes

Style style {RAISED}
 
float width {0}
 Current style appearance. More...
 
float height {0}
 Requested width. More...
 
bool customColor {false}
 Requested height. More...
 
float4 color {0.0f}
 Whether a custom color is used. More...
 

Member Enumeration Documentation

enum Style

Style appearance options.

Enum ValuesDocumentation
FLAT 
RAISED 

Flat appearance.

LOWERED 

3D raised appearance

3D lowered appearance

Constructor & Destructor Documentation

StyleClassicResource ( const std::string &  resource)
explicit

Custom color value.

Constructor.

Parameters
resourceResource description string.

Member Data Documentation

float4 color {0.0f}

Whether a custom color is used.

bool customColor {false}

Requested height.

float height {0}

Requested width.

Style style {RAISED}
float width {0}

Current style appearance.