5 #ifndef __I_GUI_IMAGE_H_INCLUDED__ 6 #define __I_GUI_IMAGE_H_INCLUDED__ GLenum GLenum GLenum GLenum GLenum scale
virtual void setColor(video::SColor color)=0
Sets the color of the image.
virtual void setDrawBackground(bool draw)=0
Sets whether to draw a background color (EGDC_3D_DARK_SHADOW) when no texture is set.
virtual bool isImageScaled() const =0
Returns true if the image is scaled to fit, false if not.
virtual core::rect< s32 > getSourceRect() const =0
Returns the customized source rectangle of the image to be used.
virtual void setScaleImage(bool scale)=0
Sets if the image should scale to fit the element.
Everything in the Irrlicht Engine can be found in this namespace.
virtual video::ITexture * getImage() const =0
Gets the image texture.
virtual void setImage(video::ITexture *image)=0
Sets an image texture.
virtual bool isAlphaChannelUsed() const =0
Returns true if the image is using the alpha channel, false if not.
GUI Environment. Used as factory and manager of all other GUI elements.
signed int s32
32 bit signed variable.
virtual void setSourceRect(const core::rect< s32 > &sourceRect)=0
Sets the source rectangle of the image. By default the full image is used.
virtual void draw()
Draws the element and its children.
virtual bool isDrawBackgroundEnabled() const =0
Checks if a background is drawn when no texture is set.
virtual void setUseAlphaChannel(bool use)=0
Sets if the image should use its alpha channel to draw itself.
Class representing a 32 bit ARGB color.
Base class of all GUI elements.
virtual core::rect< f32 > getDrawBounds() const =0
Get drawing-area restrictions.
Interface of a Video Driver dependent Texture.
virtual void setDrawBounds(const core::rect< f32 > &drawBoundUVs=core::rect< f32 >(0.f, 0.f, 1.f, 1.f))=0
Restrict drawing-area.
GUI element displaying an image.
IGUIImage(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual video::SColor getColor() const =0
Gets the color of the image.