Spinning Topp Logo BlackTopp Studios
inc
Public Member Functions | List of all members
Mezzanine::UI::BruteStrategy Class Reference

This strategy uses a brute force reverse search for the hovered quad. More...

#include <brutestrategy.h>

+ Inheritance diagram for Mezzanine::UI::BruteStrategy:
+ Collaboration diagram for Mezzanine::UI::BruteStrategy:

Public Member Functions

 BruteStrategy ()
 Class constructor.
 
virtual ~BruteStrategy ()
 Class destructor.
 
WidgetFindHoveredWidget (const Vector2 &MousePos)
 Finds the hovered quad for the parent screen. More...
 
- Public Member Functions inherited from Mezzanine::UI::MouseHoverStrategy
 MouseHoverStrategy ()
 Class constructor.
 
virtual ~MouseHoverStrategy ()
 Class destructor.
 
void _NotifyScreenDirty ()
 Notifies this that it's parent screen was altered. More...
 
void _SetScreen (Screen *Parent)
 Sets the parent screen. More...
 

Additional Inherited Members

- Protected Attributes inherited from Mezzanine::UI::MouseHoverStrategy
ScreenParentScreen
 A pointer to the screen this strategy is being used by. More...
 
bool ScreenDirty
 Stores whether or not the parent screen has been updated since the last time this strategys cache was updated. More...
 

Detailed Description

This strategy uses a brute force reverse search for the hovered quad.

Definition at line 55 of file brutestrategy.h.

Member Function Documentation

Widget * Mezzanine::UI::BruteStrategy::FindHoveredWidget ( const Vector2 MousePos)
virtual

Finds the hovered quad for the parent screen.

Parameters
MousePosThe current mouse position.
Returns
Returns a pointer to the hovered quad, or NULL if none.

Implements Mezzanine::UI::MouseHoverStrategy.

Definition at line 100 of file brutestrategy.cpp.


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