Public Member Functions | Static Public Member Functions

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
[legend]
Collaboration diagram for test_drop_target:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 test_drop_target (gui::drop_group_manager_ptr group, const SDL_Rect &loc)
int handle_drop ()
 Called by widget object when droping happens.

Static Public Member Functions

static bool empty ()
 Used to check if static storages are empty.

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 (  )  [inline, static]

Used to check if static storages are empty.

Only for testing.

Reimplemented from gui::drop_target.

Definition at line 40 of file test_drop_target.cpp.

References gui::drop_target::empty().

Referenced by BOOST_AUTO_TEST_CASE().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_drop_target::handle_drop (  )  [inline]

Called by widget object when droping happens.

Droping over multiple widget objects in same group is undefined.

Returns:
: id which widget was hit when droping

Reimplemented from gui::drop_target.

Definition at line 37 of file test_drop_target.cpp.

References gui::drop_target::handle_drop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:16:38 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs