Minetest
5.9.0-dev
Loading...
Searching...
No Matches
guiBackgroundImage.h
Go to the documentation of this file.
1
/*
2
Part of Minetest
3
Copyright (C) 2013 RealBadAngel, Maciej Kasatkin <mk@realbadangel.pl>
4
5
Permission to use, copy, modify, and distribute this software for any
6
purpose with or without fee is hereby granted, provided that the above
7
copyright notice and this permission notice appear in all copies.
8
9
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
*/
17
18
#pragma once
19
20
#include "
irrlichttypes_extrabloated.h
"
21
#include "
util/string.h
"
22
23
class
ISimpleTextureSource
;
24
25
26
class
GUIBackgroundImage
:
public
gui::IGUIElement
27
{
28
public
:
29
GUIBackgroundImage
(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32
id
,
30
const
core::rect<s32> &rectangle,
const
std::string &name,
31
const
core::rect<s32> &middle,
ISimpleTextureSource
*tsrc,
bool
autoclip,
32
v2s32
autoclip_offset);
33
34
virtual
void
draw
()
override
;
35
36
private
:
37
std::string
m_name
;
38
core::rect<s32>
m_middle
;
39
ISimpleTextureSource
*
m_tsrc
;
40
bool
m_autoclip
;
41
v2s32
m_autoclip_offset
;
42
};
GUIBackgroundImage
Definition:
guiBackgroundImage.h:27
GUIBackgroundImage::m_autoclip_offset
v2s32 m_autoclip_offset
Definition:
guiBackgroundImage.h:41
GUIBackgroundImage::m_name
std::string m_name
Definition:
guiBackgroundImage.h:37
GUIBackgroundImage::m_middle
core::rect< s32 > m_middle
Definition:
guiBackgroundImage.h:38
GUIBackgroundImage::m_autoclip
bool m_autoclip
Definition:
guiBackgroundImage.h:40
GUIBackgroundImage::m_tsrc
ISimpleTextureSource * m_tsrc
Definition:
guiBackgroundImage.h:39
GUIBackgroundImage::draw
virtual void draw() override
Definition:
guiBackgroundImage.cpp:33
ISimpleTextureSource
Definition:
texturesource.h:34
v2s32
core::vector2d< s32 > v2s32
Definition:
irr_v2d.h:28
irrlichttypes_extrabloated.h
string.h
gui
guiBackgroundImage.h
Generated on Sat May 4 2024 17:14:11 for Minetest by
1.9.6