neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::drag_drop_target< Base > Class Template Reference

#include <drag_drop.hpp>

Inheritance diagram for neogfx::drag_drop_target< Base >:
neogfx::i_drag_drop_target

Public Member Functions

bool drag_drop_target_enabled () const final
 
void enable_drag_drop_target (bool aEnable=true) final
 
bool can_accept (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) const final
 
drop_operation accepted_as (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) const final
 
bool accept (i_drag_drop_object const &aObject, optional_point const &aDropPosition={}) final
 
bool is_widget () const final
 
i_widget const & as_widget () const final
 
i_widgetas_widget () final
 
- Public Member Functions inherited from neogfx::i_drag_drop_target
 declare_event (object_acceptable, i_drag_drop_object const &, optional_point const &, drop_operation &) declare_event(object_dropped
 
virtual ~i_drag_drop_target ()=default
 

Detailed Description

template<typename Base>
class neogfx::drag_drop_target< Base >

Definition at line 375 of file drag_drop.hpp.

Member Function Documentation

◆ accept()

template<typename Base >
bool neogfx::drag_drop_target< Base >::accept ( i_drag_drop_object const &  aObject,
optional_point const &  aDropPosition = {} 
)
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 418 of file drag_drop.hpp.

◆ accepted_as()

template<typename Base >
drop_operation neogfx::drag_drop_target< Base >::accepted_as ( i_drag_drop_object const &  aObject,
optional_point const &  aDropPosition = {} 
) const
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 412 of file drag_drop.hpp.

◆ as_widget() [1/2]

template<typename Base >
i_widget const & neogfx::drag_drop_target< Base >::as_widget ( ) const
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 432 of file drag_drop.hpp.

◆ as_widget() [2/2]

template<typename Base >
i_widget & neogfx::drag_drop_target< Base >::as_widget ( )
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 439 of file drag_drop.hpp.

◆ can_accept()

template<typename Base >
bool neogfx::drag_drop_target< Base >::can_accept ( i_drag_drop_object const &  aObject,
optional_point const &  aDropPosition = {} 
) const
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 408 of file drag_drop.hpp.

◆ drag_drop_target_enabled()

template<typename Base >
bool neogfx::drag_drop_target< Base >::drag_drop_target_enabled ( ) const
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 392 of file drag_drop.hpp.

◆ enable_drag_drop_target()

template<typename Base >
void neogfx::drag_drop_target< Base >::enable_drag_drop_target ( bool  aEnable = true)
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 396 of file drag_drop.hpp.

◆ is_widget()

template<typename Base >
bool neogfx::drag_drop_target< Base >::is_widget ( ) const
inlinefinalvirtual

Implements neogfx::i_drag_drop_target.

Definition at line 428 of file drag_drop.hpp.


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