luna engine
software engine
Loading...
Searching...
No Matches
luna::item Struct Reference

#include <baseComponents.h>

Collaboration diagram for luna::item:

Classes

struct  rectangle
 

Public Member Functions

glm::vec2 getIconSize () const
 
bool operator< (const item &p_another) const
 
 item ()
 

Public Attributes

ref< renderer::textureicon
 
bool iconTransposed = false
 
glm::vec2 iconRegion
 
glm::vec4 iconModulate = { 1, 1, 1, 1 }
 
ref< renderer::texturetagIcon
 
std::string text
 
std::string language
 
bool selectable = true
 
bool selected = false
 
bool disabled = false
 
bool tooltipEnabled = true
 
std::string tooltip
 
glm::vec4 customFg
 
glm::vec4 customBg = { 0.0, 0.0, 0.0, 0.0 }
 
bool hover = 0
 
rectangle rectCache
 
rectangle minRectCache
 

Constructor & Destructor Documentation

◆ item()

luna::item::item ( )
inline

Member Function Documentation

◆ getIconSize()

glm::vec2 luna::item::getIconSize ( ) const

◆ operator<()

bool luna::item::operator< ( const item p_another) const
inline

Member Data Documentation

◆ customBg

glm::vec4 luna::item::customBg = { 0.0, 0.0, 0.0, 0.0 }

◆ customFg

glm::vec4 luna::item::customFg

◆ disabled

bool luna::item::disabled = false

◆ hover

bool luna::item::hover = 0

◆ icon

ref<renderer::texture> luna::item::icon

◆ iconModulate

glm::vec4 luna::item::iconModulate = { 1, 1, 1, 1 }

◆ iconRegion

glm::vec2 luna::item::iconRegion

◆ iconTransposed

bool luna::item::iconTransposed = false

◆ language

std::string luna::item::language

◆ minRectCache

rectangle luna::item::minRectCache

◆ rectCache

rectangle luna::item::rectCache

◆ selectable

bool luna::item::selectable = true

◆ selected

bool luna::item::selected = false

◆ tagIcon

ref<renderer::texture> luna::item::tagIcon

◆ text

std::string luna::item::text

◆ tooltip

std::string luna::item::tooltip

◆ tooltipEnabled

bool luna::item::tooltipEnabled = true

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