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

#include <DDSource.h>

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

Public Member Functions

 DDSource (const std::string &p_identifier, const std::string &p_tooltip, T p_data)
 
virtual void Execute () override
 
bool IsDragged () const
 

Public Attributes

std::string identifier
 
std::string tooltip
 
data
 
OvTools::Eventing::Event DragStartEvent
 
OvTools::Eventing::Event DragStopEvent
 
bool hasTooltip = true
 
- Public Attributes inherited from OvUI::Plugins::IPlugin
void * userData = nullptr
 

Detailed Description

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

Represents a drag and drop source

Constructor & Destructor Documentation

◆ DDSource()

template<typename T>
OvUI::Plugins::DDSource< T >::DDSource ( const std::string &  p_identifier,
const std::string &  p_tooltip,
p_data 
)
inline

Create the drag and drop source

Parameters
p_identifier
p_tooltip
p_data

Member Function Documentation

◆ Execute()

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

Execute the behaviour of the drag and drop source

Implements OvUI::Plugins::IPlugin.

◆ IsDragged()

template<typename T>
bool OvUI::Plugins::DDSource< T >::IsDragged ( ) const
inline

Returns true if the drag and drop source is dragged

Member Data Documentation

◆ data

template<typename T>
T OvUI::Plugins::DDSource< T >::data

◆ DragStartEvent

template<typename T>
OvTools::Eventing::Event OvUI::Plugins::DDSource< T >::DragStartEvent

◆ DragStopEvent

template<typename T>
OvTools::Eventing::Event OvUI::Plugins::DDSource< T >::DragStopEvent

◆ hasTooltip

template<typename T>
bool OvUI::Plugins::DDSource< T >::hasTooltip = true

◆ identifier

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

◆ tooltip

template<typename T>
std::string OvUI::Plugins::DDSource< T >::tooltip

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