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