The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | List of all members
test_drop_target Class Reference

Specialized testing class so unit test can call protected member functions to simulate drop operation. More...

Inheritance diagram for test_drop_target:
Inheritance graph

Public Member Functions

 test_drop_target (gui::drop_group_manager_ptr group, const SDL_Rect &loc)
 
int handle_drop ()
 
- Public Member Functions inherited from gui::drop_target
 drop_target (const drop_group_manager_ptr group, const SDL_Rect &loc)
 Registers drop target and saves reference to location. More...
 
 ~drop_target ()
 
int get_id () const
 
bool is_this_id (const int id) const
 Checks if id matches id for this object. More...
 

Static Public Member Functions

static bool empty ()
 

Additional Inherited Members

- Protected Member Functions inherited from gui::drop_target
int handle_drop ()
 Called by widget object when droping happens. More...
 
- Static Protected Member Functions inherited from gui::drop_target
static bool empty ()
 Used to check if static storages are empty. More...
 

Detailed Description

Specialized testing class so unit test can call protected member functions to simulate drop operation.

Definition at line 32 of file test_drop_target.cpp.

Constructor & Destructor Documentation

test_drop_target::test_drop_target ( gui::drop_group_manager_ptr  group,
const SDL_Rect &  loc 
)
inline

Definition at line 34 of file test_drop_target.cpp.

Member Function Documentation

static bool test_drop_target::empty ( )
inlinestatic

Definition at line 40 of file test_drop_target.cpp.

References gui::drop_target::empty().

Referenced by BOOST_AUTO_TEST_CASE().

int test_drop_target::handle_drop ( )
inline

Definition at line 37 of file test_drop_target.cpp.

References gui::drop_target::handle_drop().


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