Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
guiButtonItemImage.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "guiButton.h"
8#include "IGUIButton.h"
9
10using namespace irr;
11
12class Client;
13class GUIItemImage;
14
16{
17public:
19 GUIButtonItemImage(gui::IGUIEnvironment *environment, gui::IGUIElement *parent,
20 s32 id, core::rect<s32> rectangle, ISimpleTextureSource *tsrc,
21 const std::string &item, Client *client, bool noclip = false);
22
24 static GUIButtonItemImage *addButton(gui::IGUIEnvironment *environment,
25 const core::rect<s32> &rectangle, ISimpleTextureSource *tsrc,
26 IGUIElement *parent, s32 id, const wchar_t *text,
27 const std::string &item, Client *client);
28
29private:
32};
Definition client.h:105
Definition guiButtonItemImage.h:16
GUIItemImage * m_image
Definition guiButtonItemImage.h:31
GUIButtonItemImage(gui::IGUIEnvironment *environment, gui::IGUIElement *parent, s32 id, core::rect< s32 > rectangle, ISimpleTextureSource *tsrc, const std::string &item, Client *client, bool noclip=false)
constructor
Definition guiButtonItemImage.cpp:16
Client * m_client
Definition guiButtonItemImage.h:30
static GUIButtonItemImage * addButton(gui::IGUIEnvironment *environment, const core::rect< s32 > &rectangle, ISimpleTextureSource *tsrc, IGUIElement *parent, s32 id, const wchar_t *text, const std::string &item, Client *client)
Do not drop returned handle.
Definition guiButtonItemImage.cpp:30
Definition guiButton.h:20
Definition guiItemImage.h:13
Definition texturesource.h:25
Definition activeobjectmgr.cpp:11
Definition clientmap.h:30