Minetest  5.4.0
GUIItemImage Class Reference

#include <guiItemImage.h>

+ Inheritance diagram for GUIItemImage:
+ Collaboration diagram for GUIItemImage:

Public Member Functions

 GUIItemImage (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, const std::string &item_name, gui::IGUIFont *font, Client *client)
 
virtual void draw () override
 
virtual void setText (const wchar_t *text) override
 

Private Attributes

std::string m_item_name
 
gui::IGUIFont * m_font
 
Clientm_client
 
core::stringw m_label
 

Constructor & Destructor Documentation

◆ GUIItemImage()

GUIItemImage::GUIItemImage ( gui::IGUIEnvironment *  env,
gui::IGUIElement *  parent,
s32  id,
const core::rect< s32 > &  rectangle,
const std::string &  item_name,
gui::IGUIFont *  font,
Client client 
)

Member Function Documentation

◆ draw()

void GUIItemImage::draw ( )
overridevirtual

References ItemStack::deSerialize(), drawItemStack(), IGameDef::idef(), IT_ROT_NONE, m_client, m_font, m_item_name, and m_label.

+ Here is the call graph for this function:

◆ setText()

virtual void GUIItemImage::setText ( const wchar_t *  text)
inlineoverridevirtual

References m_label.

Member Data Documentation

◆ m_client

Client* GUIItemImage::m_client
private

Referenced by draw().

◆ m_font

gui::IGUIFont* GUIItemImage::m_font
private

Referenced by draw().

◆ m_item_name

std::string GUIItemImage::m_item_name
private

Referenced by draw().

◆ m_label

core::stringw GUIItemImage::m_label
private

Referenced by draw(), and setText().


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