Luanti
5.11.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
10
using namespace
irr
;
11
12
class
Client
;
13
class
GUIItemImage
;
14
15
class
GUIButtonItemImage
:
public
GUIButton
16
{
17
public
:
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
29
private
:
30
Client
*
m_client
;
31
GUIItemImage
*
m_image
;
32
};
Client
Definition
client.h:105
GUIButtonItemImage
Definition
guiButtonItemImage.h:16
GUIButtonItemImage::m_image
GUIItemImage * m_image
Definition
guiButtonItemImage.h:31
GUIButtonItemImage::GUIButtonItemImage
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
GUIButtonItemImage::m_client
Client * m_client
Definition
guiButtonItemImage.h:30
GUIButtonItemImage::addButton
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
GUIButton
Definition
guiButton.h:20
GUIItemImage
Definition
guiItemImage.h:13
ISimpleTextureSource
Definition
texturesource.h:25
guiButton.h
client
Definition
activeobjectmgr.cpp:11
irr
Definition
clientmap.h:30
gui
guiButtonItemImage.h
Generated on Sun Dec 1 2024 10:42:55 for Luanti by
1.11.0