1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __I_GUI_IMAGE_H_INCLUDED__
6
#define __I_GUI_IMAGE_H_INCLUDED__
8
#include "IGUIElement.h"
19
//! GUI element displaying an image.
20
class IGUIImage : public IGUIElement
25
IGUIImage(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
26
: IGUIElement(EGUIET_IMAGE, environment, parent, id, rectangle) {}
28
//! Sets an image texture
29
virtual void setImage(video::ITexture* image) = 0;
31
//! Gets the image texture
32
virtual video::ITexture* getImage() const = 0;
34
//! Sets the color of the image
35
virtual void setColor(video::SColor color) = 0;
37
//! Sets if the image should scale to fit the element
38
virtual void setScaleImage(bool scale) = 0;
40
//! Sets if the image should use its alpha channel to draw itself
41
virtual void setUseAlphaChannel(bool use) = 0;
43
//! Gets the color of the image
44
virtual video::SColor getColor() const = 0;
46
//! Returns true if the image is scaled to fit, false if not
47
virtual bool isImageScaled() const = 0;
49
//! Returns true if the image is using the alpha channel, false if not
50
virtual bool isAlphaChannelUsed() const = 0;
54
} // end namespace gui
55
} // end namespace irr