Loading...
Searching...
No Matches
IGUIImage.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_IMAGE_H_INCLUDED__
#define __I_GUI_IMAGE_H_INCLUDED__
#include "IGUIElement.h"
namespace irr
{
namespace video
{
class ITexture;
}
namespace gui
{
class IGUIImage : public IGUIElement
{
public:
IGUIImage(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_IMAGE, environment, parent, id, rectangle) {}
virtual void setImage(video::ITexture* image) = 0;
virtual video::ITexture* getImage() const = 0;
virtual void setColor(video::SColor color) = 0;
virtual void setScaleImage(bool scale) = 0;
virtual void setUseAlphaChannel(bool use) = 0;
virtual video::SColor getColor() const = 0;
virtual bool isImageScaled() const = 0;
virtual bool isAlphaChannelUsed() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
IGUIElement.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUIImage::IGUIImage
IGUIImage(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIImage.h:25
irr::gui::IGUIImage::setImage
virtual void setImage(video::ITexture *image)=0
Sets an image texture.
irr::gui::IGUIImage::getColor
virtual video::SColor getColor() const =0
Gets the color of the image.
irr::gui::IGUIImage::isAlphaChannelUsed
virtual bool isAlphaChannelUsed() const =0
Returns true if the image is using the alpha channel, false if not.
irr::gui::IGUIImage::setScaleImage
virtual void setScaleImage(bool scale)=0
Sets if the image should scale to fit the element.
irr::gui::IGUIImage::setUseAlphaChannel
virtual void setUseAlphaChannel(bool use)=0
Sets if the image should use its alpha channel to draw itself.
irr::gui::IGUIImage::getImage
virtual video::ITexture * getImage() const =0
Gets the image texture.
irr::gui::IGUIImage::setColor
virtual void setColor(video::SColor color)=0
Sets the color of the image.
irr::gui::IGUIImage::isImageScaled
virtual bool isImageScaled() const =0
Returns true if the image is scaled to fit, false if not.
irr::video::ITexture
Interface of a Video Driver dependent Texture.
Definition ITexture.h:99
irr::video::SColor
Class representing a 32 bit ARGB color.
Definition SColor.h:202
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUIET_IMAGE
@ EGUIET_IMAGE
An image (IGUIImage).
Definition EGUIElementTypes.h:47
irr::video
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0