1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
luanti/src/gui/guiItemImage.h

34 lines
682 B
C
Raw Normal View History

// Luanti
// SPDX-License-Identifier: LGPL-2.1-or-later
// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
#pragma once
#include <IGUIElement.h>
#include <IGUIEnvironment.h>
using namespace irr;
class Client;
class GUIItemImage : public gui::IGUIElement
{
public:
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
{
m_label = text;
}
private:
std::string m_item_name;
gui::IGUIFont *m_font;
Client *m_client;
core::stringw m_label;
};