arsa  2.7
IGUIInOutFader.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_GUI_IN_OUT_FADER_H_INCLUDED__
6 #define __I_GUI_IN_OUT_FADER_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 #include "SColor.h"
10 
11 namespace irr
12 {
13 namespace gui
14 {
15 
17 
27  class IGUIInOutFader : public IGUIElement
28  {
29  public:
30 
32  IGUIInOutFader(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
33  : IGUIElement(EGUIET_IN_OUT_FADER, environment, parent, id, rectangle) {}
34 
36  virtual video::SColor getColor() const = 0;
37 
39 
40  virtual void setColor(video::SColor color) = 0;
41  virtual void setColor(video::SColor source, video::SColor dest) = 0;
42 
44 
49  virtual void fadeIn(u32 time) = 0;
50 
52 
56  virtual void fadeOut(u32 time) = 0;
57 
59  virtual bool isReady() const = 0;
60  };
61 
62 
63 } // end namespace gui
64 } // end namespace irr
65 
66 #endif
67 
GLuint id
Element for fading out or in.
virtual bool isReady() const =0
Returns if the fade in or out process is done.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
GUI Environment. Used as factory and manager of all other GUI elements.
virtual void setColor(video::SColor color)=0
Sets the color to fade out to or to fade in from.
IGUIInOutFader(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
GLsizei GLsizei GLchar * source
Class representing a 32 bit ARGB color.
Definition: SColor.h:316
Base class of all GUI elements.
Definition: IGUIElement.h:23
virtual void fadeIn(u32 time)=0
Starts the fade in process.
virtual void fadeOut(u32 time)=0
Starts the fade out process.
GLuint color
A in/out fader (IGUIInOutFader)
virtual video::SColor getColor() const =0
Gets the color to fade out to or to fade in from.