Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUIInOutFader.hpp
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 duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_GUI_IN_OUT_FADER_HPP_INCLUDED
6#define DCPP_I_GUI_IN_OUT_FADER_HPP_INCLUDED
7
8#include <duckcpp/core/engine/IGUIElement.hpp>
9#include <duckcpp/core/engine/SColor.hpp>
10
11namespace dcpp
12{
13namespace gui
14{
15
17
28 {
29 public:
30
33 : IGUIElement(EGUIET_IN_OUT_FADER, environment, parent, id, rectangle) {}
34
36 virtual dcpp::video::SColor getColor() const = 0;
37
39
40 virtual void setColor(dcpp::video::SColor color) = 0;
41 virtual void setColor(dcpp::video::SColor source, dcpp::video::SColor dest) = 0;
42
44
49 virtual void fadeIn(dcpp::uint32_kt time) = 0;
50
52
56 virtual void fadeOut(dcpp::uint32_kt time) = 0;
57
59 virtual bool isReady() const = 0;
60 };
61
62
63} // end namespace gui
64} // end namespace dcpp
65
66#endif
Base class of all GUI elements.
Definition IGUIElement.hpp:24
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Element for fading out or in.
Definition IGUIInOutFader.hpp:28
virtual void fadeOut(dcpp::uint32_kt time)=0
Starts the fade out process.
IGUIInOutFader(IGUIEnvironment *environment, IGUIElement *parent, dcpp::int32_kt id, dcpp::nub::recti rectangle)
constructor
Definition IGUIInOutFader.hpp:32
virtual void setColor(dcpp::video::SColor color)=0
Sets the color to fade out to or to fade in from.
virtual void fadeIn(dcpp::uint32_kt time)=0
Starts the fade in process.
virtual bool isReady() const =0
Returns if the fade in or out process is done.
virtual dcpp::video::SColor getColor() const =0
Gets the color to fade out to or to fade in from.
Rectangle template.
Definition rect.hpp:27
Class representing a 32 bit ARGB color.
Definition SColor.hpp:317
@ EGUIET_IN_OUT_FADER
A in/out fader (IGUIInOutFader)
Definition EGUIElementTypes.hpp:44
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72

Duckcpp    @cppfx.xyz