aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiBackgroundImage.h
blob: 31fbfd09c06758c9558fe1494f382920cbb48936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
Part of Minetest
Copyright (C) 2013 RealBadAngel, Maciej Kasatkin <mk@realbadangel.pl>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#pragma once

#include "irrlichttypes_extrabloated.h"
#include "util/string.h"
#include "client/tile.h" // ITextureSource

class GUIBackgroundImage : public gui::IGUIElement
{
public:
	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);

	virtual void draw() override;

private:
	std::string m_name;
	core::rect<s32> m_middle;
	ISimpleTextureSource *m_tsrc;
	bool m_autoclip;
};
an title='2013-07-27 23:21:48 +0400'>2013-07-27 * Add set_breath and get_breath to lua API.RealBadAngel2013-07-20 * Change ContentFeatures array to a vectorKahrl2013-07-14 * LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objectskwolekr2013-07-06 * Mapgen V7: Huge rewrite, also tweaks to cavegen et al.kwolekr2013-07-06 * Decoration: Add schematic rotation supportkwolekr2013-07-01 * LuaVoxelManip: Fix minor bug with set_lighting, remove coordinate params for ...kwolekr2013-06-29 * Apply various fixes to several thingskwolekr2013-06-27 * LuaVoxelManip: Separate VoxelManip data get/set from emerging/blitting data b...kwolekr2013-06-27 * Add Lua on_mapgen_init callback, and minetest.set_mapgen_params APIkwolekr2013-06-27 * Add Lua PerlinNoiseMap:get#dMap_flat APIkwolekr2013-06-27 * Add minetest.get_mapgen_object to APIkwolekr2013-06-27 * Add LuaVoxelManipkwolekr2013-06-27 * Decoration: Add support for zero probability, fix breakage from last commitkwolekr2013-06-22 * A handful of minor fixes to various thingskwolekr2013-06-22 * Decoration: Add Schematic decoration typekwolekr2013-06-22 * Make minetest.debug accept multiple parameters; convert them to stringKahrl2013-06-21 * Add drowningPilzAdam2013-06-19 * Decoration: Change divlen to sidelenkwolekr2013-06-17 * Add initial Decoration support, many misc. improvements & modificationskwolekr2013-06-17 * Lazy sunday typo fixing. s/unban_player_of_ip/unban_player_or_ip/gKahrl2013-06-16 * Corrected segfault when registering new biomes.sweetbomber2013-06-03 * Fix missing find_path and line_of_sightsapier2013-06-01 * Fix some nullptr exceptions when handling invalid node inventoriesMetaDucky2013-06-01 * Fix minetest.get_inventory(loc) always returning nil for "node" type locMetaDucky2013-06-01 * Fixed wrongly named invref:get_location() table members for nodes.MetaDucky2013-05-26 * Add ObjectRef.hud_set_hotbar_itemcount and add TOCLIENT_HUD_SET_PARAMKahrl2013-05-26 * Fix itemstack:add item not working correctsapier2013-05-25 * Move scriptapi to separate folder (by sapier)sapier2013-05-25