neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::drag_drop Class Reference

#include <drag_drop.hpp>

Inheritance diagram for neogfx::drag_drop:
neogfx::i_drag_drop neolib::services::i_service

Public Member Functions

 define_declared_event (SourceRegistered, source_registered, i_drag_drop_source &) define_declared_event(SourceUnregistered
 
i_drag_drop_sourcedefine_declared_event (TargetRegistered, target_registered, i_drag_drop_target &) define_declared_event(TargetUnregistered
 
 drag_drop ()
 
void register_source (i_drag_drop_source &aSource) override
 
void unregister_source (i_drag_drop_source &aSource) override
 
void register_target (i_drag_drop_target &aTarget) override
 
void unregister_target (i_drag_drop_target &aTarget) override
 
bool is_target_for (i_drag_drop_object const &aObject) const final
 
bool is_target_at (i_drag_drop_object const &aObject, point const &aPosition) const final
 
i_drag_drop_targettarget_for (i_drag_drop_object const &aObject) const final
 
i_drag_drop_targettarget_at (i_drag_drop_object const &aObject, point const &aPosition) const final
 
- Public Member Functions inherited from neogfx::i_drag_drop
 declare_event (source_registered, i_drag_drop_source &) declare_event(source_unregistered
 
i_drag_drop_sourcedeclare_event (target_registered, i_drag_drop_target &) declare_event(target_unregistered
 
virtual ~i_drag_drop ()=default
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Public Attributes

 source_unregistered
 
i_drag_drop_source target_unregistered
 

Protected Member Functions

void register_source (std::shared_ptr< i_drag_drop_source > const &aSource)
 
i_drag_drop_targetfind_target (i_drag_drop_object const &aObject) const
 
i_drag_drop_targetfind_target (i_drag_drop_object const &aObject, point const &aPosition) const
 

Additional Inherited Members

- Static Public Member Functions inherited from neogfx::i_drag_drop
static uuid const & iid ()
 

Detailed Description

Definition at line 447 of file drag_drop.hpp.

Constructor & Destructor Documentation

◆ drag_drop()

neogfx::drag_drop::drag_drop ( )

Member Function Documentation

◆ define_declared_event() [1/2]

neogfx::drag_drop::define_declared_event ( SourceRegistered  ,
source_registered  ,
i_drag_drop_source  
)

◆ define_declared_event() [2/2]

i_drag_drop_source & neogfx::drag_drop::define_declared_event ( TargetRegistered  ,
target_registered  ,
i_drag_drop_target  
)

◆ find_target() [1/2]

i_drag_drop_target * neogfx::drag_drop::find_target ( i_drag_drop_object const &  aObject) const
protected

◆ find_target() [2/2]

i_drag_drop_target * neogfx::drag_drop::find_target ( i_drag_drop_object const &  aObject,
point const &  aPosition 
) const
protected

◆ is_target_at()

bool neogfx::drag_drop::is_target_at ( i_drag_drop_object const &  aObject,
point const &  aPosition 
) const
finalvirtual

Implements neogfx::i_drag_drop.

◆ is_target_for()

bool neogfx::drag_drop::is_target_for ( i_drag_drop_object const &  aObject) const
finalvirtual

Implements neogfx::i_drag_drop.

◆ register_source() [1/2]

void neogfx::drag_drop::register_source ( i_drag_drop_source aSource)
overridevirtual

Implements neogfx::i_drag_drop.

◆ register_source() [2/2]

void neogfx::drag_drop::register_source ( std::shared_ptr< i_drag_drop_source > const &  aSource)
protected

◆ register_target()

void neogfx::drag_drop::register_target ( i_drag_drop_target aTarget)
overridevirtual

Implements neogfx::i_drag_drop.

◆ target_at()

i_drag_drop_target & neogfx::drag_drop::target_at ( i_drag_drop_object const &  aObject,
point const &  aPosition 
) const
finalvirtual

Implements neogfx::i_drag_drop.

◆ target_for()

i_drag_drop_target & neogfx::drag_drop::target_for ( i_drag_drop_object const &  aObject) const
finalvirtual

Implements neogfx::i_drag_drop.

◆ unregister_source()

void neogfx::drag_drop::unregister_source ( i_drag_drop_source aSource)
overridevirtual

Implements neogfx::i_drag_drop.

◆ unregister_target()

void neogfx::drag_drop::unregister_target ( i_drag_drop_target aTarget)
overridevirtual

Implements neogfx::i_drag_drop.

Member Data Documentation

◆ source_unregistered

neogfx::drag_drop::source_unregistered

Definition at line 451 of file drag_drop.hpp.

◆ target_unregistered

i_drag_drop_source neogfx::drag_drop::target_unregistered

Definition at line 453 of file drag_drop.hpp.


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