Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
button_info Struct Reference

#include <touchcontrols.h>

+ Collaboration diagram for button_info:

Public Types

enum  { NOT_TOGGLEABLE , FIRST_TEXTURE , SECOND_TEXTURE }
 

Public Member Functions

void emitAction (bool action, video::IVideoDriver *driver, IEventReceiver *receiver, ISimpleTextureSource *tsrc)
 

Public Attributes

float repeat_counter
 
EKEY_CODE keycode
 
std::vector< size_t > pointer_ids
 
std::shared_ptr< IGUIImage > gui_button = nullptr
 
enum button_info:: { ... }  toggleable = NOT_TOGGLEABLE
 
std::string toggle_textures [2]
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NOT_TOGGLEABLE 
FIRST_TEXTURE 
SECOND_TEXTURE 

Member Function Documentation

◆ emitAction()

void button_info::emitAction ( bool action,
video::IVideoDriver * driver,
IEventReceiver * receiver,
ISimpleTextureSource * tsrc )

References FIRST_TEXTURE, gui_button, keycode, load_button_texture(), SECOND_TEXTURE, toggle_textures, and toggleable.

+ Here is the call graph for this function:

Member Data Documentation

◆ gui_button

std::shared_ptr<IGUIImage> button_info::gui_button = nullptr

◆ keycode

EKEY_CODE button_info::keycode

◆ pointer_ids

std::vector<size_t> button_info::pointer_ids

◆ repeat_counter

float button_info::repeat_counter

◆ toggle_textures

std::string button_info::toggle_textures[2]

◆ []

enum { ... } button_info::toggleable

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