40 #ifndef _uibrutestrategy_cpp
41 #define _uibrutestrategy_cpp
43 #include "UI/brutestrategy.h"
44 #include "UI/screen.h"
45 #include "UI/widget.h"
86 if( Wid->
IsInside(this->MousePos) ) {
89 this->Result =
static_cast<Widget*
>( Wid );
93 return ( Result != NULL );
bool Boole
Generally acts a single bit, true or false.
virtual Boole GetMousePassthrough() const
Gets whether or not Mouse Passthrough is enabled.
MouseHoverCheck(const Vector2 &Pos)
Class constructor.
Widget * FindHoveredWidget(const Vector2 &MousePos)
Finds the hovered quad for the parent screen.
Boole _ReverseProcessAllChildren(Callback *CB)
Processes all children of this screen in reverse zorder.
~MouseHoverCheck()
Class destructor.
virtual Boole IsInside(const Vector2 &Point) const
Checks to see if a point in 2D space is inside this quad.
This is used to represent a point on a 2 dimentional area, such as a screen.
Boole operator()(Widget *Wid)
Interface needed for processing child widgets of screens and widgets.
Widget * Result
A pointer to the result if one was found, or NULL if it wasn't.
UInt32 GetNumVisibleRenderLayers() const
Gets the number of RenderLayers that are visible in this renderable.
The bulk of the engine components go in this namspace.
Screen * ParentScreen
A pointer to the screen this strategy is being used by.
Vector2 MousePos
The current mouse position to be checked for hover.
Simple functor for finding which renderable the mouse is hovered over.