Irrlicht 3D Engine: IGUIImage.h Source File

| Irrlicht 3D Engine |

IGUIImage.h
Go to the documentation of this file.

    00001 // Copyright (C) 2002-2012 Nikolaus Gebhardt
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __I_GUI_IMAGE_H_INCLUDED__
    00006 #define __I_GUI_IMAGE_H_INCLUDED__
    00007
    00008 #include "IGUIElement.h"
    00009
    00010 namespace irr
    00011 {
    00012 namespace video
    00013 {
    00014     class ITexture;
    00015 }
    00016 namespace gui
    00017 {
    00018
    00020     class IGUIImage : public IGUIElement
    00021     {
    00022     public:
    00023
    00025         IGUIImage(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
    00026             : IGUIElement(EGUIET_IMAGE, environment, parent, id, rectangle) {}
    00027
    00029         virtual void setImage(video::ITexture* image) = 0;
    00030
    00032         virtual video::ITexture* getImage() const = 0;
    00033
    00035         virtual void setColor(video::SColor color) = 0;
    00036
    00038         virtual void setScaleImage(bool scale) = 0;
    00039
    00041         virtual void setUseAlphaChannel(bool use) = 0;
    00042
    00044         virtual video::SColor getColor() const = 0;
    00045
    00047         virtual bool isImageScaled() const = 0;
    00048
    00050         virtual bool isAlphaChannelUsed() const = 0;
    00051     };
    00052
    00053
    00054 } // end namespace gui
    00055 } // end namespace irr
    00056
    00057 #endif
    00058