Overload  1.1
Game engine with editor
Public Member Functions | Public Attributes | List of all members
OvUI::Plugins::DDTarget< T > Class Template Reference

#include <DDTarget.h>

Inheritance diagram for OvUI::Plugins::DDTarget< T >:
OvUI::Plugins::IPlugin

Public Member Functions

 DDTarget (const std::string &p_identifier)
 
virtual void Execute () override
 
bool IsHovered () const
 

Public Attributes

std::string identifier
 
OvTools::Eventing::Event< T > DataReceivedEvent
 
OvTools::Eventing::Event HoverStartEvent
 
OvTools::Eventing::Event HoverEndEvent
 
bool showYellowRect = true
 
- Public Attributes inherited from OvUI::Plugins::IPlugin
void * userData = nullptr
 

Detailed Description

template<typename T>
class OvUI::Plugins::DDTarget< T >

Represents a drag and drop target

Constructor & Destructor Documentation

◆ DDTarget()

template<typename T >
OvUI::Plugins::DDTarget< T >::DDTarget ( const std::string &  p_identifier)
inline

Create the drag and drop target

Parameters
p_identifier

Member Function Documentation

◆ Execute()

template<typename T >
virtual void OvUI::Plugins::DDTarget< T >::Execute ( )
inlineoverridevirtual

Execute the drag and drop target behaviour

Parameters
p_identifier

Implements OvUI::Plugins::IPlugin.

◆ IsHovered()

template<typename T >
bool OvUI::Plugins::DDTarget< T >::IsHovered ( ) const
inline

Returns true if the drag and drop target is hovered by a drag and drop source

Member Data Documentation

◆ DataReceivedEvent

template<typename T >
OvTools::Eventing::Event<T> OvUI::Plugins::DDTarget< T >::DataReceivedEvent

◆ HoverEndEvent

template<typename T >
OvTools::Eventing::Event OvUI::Plugins::DDTarget< T >::HoverEndEvent

◆ HoverStartEvent

template<typename T >
OvTools::Eventing::Event OvUI::Plugins::DDTarget< T >::HoverStartEvent

◆ identifier

template<typename T >
std::string OvUI::Plugins::DDTarget< T >::identifier

◆ showYellowRect

template<typename T >
bool OvUI::Plugins::DDTarget< T >::showYellowRect = true

The documentation for this class was generated from the following file: