MyGUI_ControllerEdgeHide.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_CONTROLLER_EDGE_HIDE_H_
#define MYGUI_CONTROLLER_EDGE_HIDE_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_WidgetDefines.h"
#include "MyGUI_ControllerItem.h"
#include "MyGUI_Types.h"
namespace MyGUI
{
class MYGUI_EXPORT ControllerEdgeHide : public ControllerItem
{
MYGUI_RTTI_DERIVED(ControllerEdgeHide)
public:
void setTime(float _value);
void setRemainPixels(int _value);
void setShadowSize(int _value);
bool addTime(Widget* _widget, float _time) override;
void prepareItem(Widget* _widget) override;
void setProperty(std::string_view _key, std::string_view _value) override;
private:
void recalculateTime(Widget* _widget);
float mTime{1.0};
int mRemainPixels{0};
int mShadowSize{0};
float mElapsedTime{0};
// for checking if widget was moved
MyGUI::IntCoord mLastCoord;
};
} // namespace MyGUI
#endif // MYGUI_CONTROLLER_EDGE_HIDE_H_
MyGUI_ControllerItem.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_Types.h
MyGUI_WidgetDefines.h
MyGUI::ControllerEdgeHide
Definition MyGUI_ControllerEdgeHide.h:25
MyGUI::ControllerEdgeHide::setRemainPixels
void setRemainPixels(int _value)
Definition MyGUI_ControllerEdgeHide.cpp:168
MyGUI::ControllerEdgeHide::setShadowSize
void setShadowSize(int _value)
Definition MyGUI_ControllerEdgeHide.cpp:173
MyGUI::ControllerEdgeHide::setTime
void setTime(float _value)
Definition MyGUI_ControllerEdgeHide.cpp:163
MyGUI::ControllerEdgeHide::addTime
bool addTime(Widget *_widget, float _time) override
Definition MyGUI_ControllerEdgeHide.cpp:29
MyGUI::ControllerEdgeHide::prepareItem
void prepareItem(Widget *_widget) override
Definition MyGUI_ControllerEdgeHide.cpp:22
MyGUI::ControllerEdgeHide::setProperty
void setProperty(std::string_view _key, std::string_view _value) override
Definition MyGUI_ControllerEdgeHide.cpp:117
MyGUI::ControllerItem
Definition MyGUI_ControllerItem.h:26
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:40
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36