1
// Copyright (C) 2002-2011 Nikolaus Gebhardt / Gaz Davidson
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __C_GUI_TEXTURE_CACHE_BROWSER_H_INCLUDED__
6
#define __C_GUI_TEXTURE_CACHE_BROWSER_H_INCLUDED__
8
#include "IGUIWindow.h"
10
#include "IGUIImage.h"
11
#include "EGUIEditTypes.h"
18
//! Texture cache browser
20
const u32 TEXTURE_BROWSER_TEXTURE_SELECTED = 0x5E1EC7ED; // custom event number for texture selected
22
class CGUITextureCacheBrowser : public IGUIWindow
27
CGUITextureCacheBrowser(IGUIEnvironment* environment, s32 id=-1, IGUIElement *parent=0);
30
~CGUITextureCacheBrowser();
33
virtual bool OnEvent(const SEvent &event);
38
//! update absolute position
39
virtual void updateAbsolutePosition();
41
//! this shoudln't be serialized, but this is included as it's an example
42
virtual const c8* getTypeName() const { return "textureCacheBrowser"; }
44
//! Returns pointer to the close button
45
virtual IGUIButton* getCloseButton() const { return CloseButton; }
47
//! Returns pointer to the minimize button
48
virtual IGUIButton* getMinimizeButton() const { return 0;}
50
//! Returns pointer to the maximize button
51
virtual IGUIButton* getMaximizeButton() const { return 0;}
54
virtual bool isDraggable() const;
57
virtual void setDraggable(bool draggable);
60
virtual core::rect<s32> getClientRect() const;
61
virtual void setDrawBackground(bool draw) { }
62
virtual bool getDrawBackground() const { return true; }
63
virtual void setDrawTitlebar(bool draw) { }
64
virtual bool getDrawTitlebar() const { return true; }
67
void setSelected(s32 index=-1);
71
void updateImageList();
73
core::array<IGUIImage*> Images;
74
core::position2d<s32> DragStart;
76
IGUIButton* CloseButton;
84
} // end namespace gui
85
} // end namespace irr