|
|
LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
n2l::cGuiInteractive Class ReferenceA rectangular area which may react to input.
More...
#include <cGuiInteractive.h>
Inheritance diagram for n2l::cGuiInteractive:
[legend]Collaboration diagram for n2l::cGuiInteractive:
[legend]List of all members.Public Member Functions
Protected Member Functions
Detailed Description
A rectangular area which may react to input.
Definition at line 40 of file cGuiInteractive.h.
Constructor & Destructor Documentation
| n2l::cGuiInteractive::cGuiInteractive |
( |
|
) |
|
|
| n2l::cGuiInteractive::cGuiInteractive |
( |
const cDynVar & |
iDef |
) |
|
|
| n2l::cGuiInteractive::~cGuiInteractive |
( |
|
) |
[virtual] |
|
Member Function Documentation
| void n2l::cGuiInteractive::addExtraClickedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraFocusData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraKeyData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraOutData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraOverData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraPressedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::addExtraReleasedData |
( |
tActionData & |
oData |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::cloneInto |
( |
const cAutoPtr< cGuiInteractive > & |
i_ioElement |
) |
const [protected, virtual] |
|
| const tBool n2l::cGuiInteractive::collides |
( |
const tGuiPos & |
iPos |
) |
const [protected, virtual] |
|
|
|
Return if the provided point is inside this widget.
Definition at line 278 of file cGuiInteractive.cpp.
References n2l::cGuiElement::mPos, n2l::cGuiElement::mSize, n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().
Referenced by n2l::cGuiSlider::mouseClickAt(), mouseClickAt(), mouseMove(), n2l::cGuiTextDisplay::systemEvent(), n2l::cGuiSButtonSelectBox::systemEvent(), and n2l::cGuiButtonSelectBox::systemEvent(). |
| void n2l::cGuiInteractive::focus |
( |
const tBool |
iFocus |
) |
[virtual] |
|
| const tBool n2l::cGuiInteractive::focus |
( |
|
) |
const [virtual] |
|
| const tBool n2l::cGuiInteractive::isDown |
( |
|
) |
const [inline, protected] |
|
| const tBool n2l::cGuiInteractive::isOver |
( |
|
) |
const [inline, protected] |
|
| void n2l::cGuiInteractive::keystroke |
( |
const cKeyEvent & |
iEvent |
) |
[protected, virtual] |
|
| void n2l::cGuiInteractive::load |
( |
const cDynVar & |
iDef |
) |
[virtual] |
|
|
|
Load this elements properties from the provided definition.
Reimplemented from n2l::cGuiElement.
Reimplemented in n2l::cGuiButton, n2l::cGuiButtonSelectBox, n2l::cGuiSButton, n2l::cGuiSButtonSelectBox, n2l::cGuiSlider, n2l::cGuiTextDisplay, and n2l::cGuiTextInput.
Definition at line 54 of file cGuiInteractive.cpp.
References n2l::cGuiElement::load().
Referenced by cGuiInteractive(), n2l::cGuiTextInput::load(), n2l::cGuiTextDisplay::load(), n2l::cGuiSlider::load(), n2l::cGuiSButtonSelectBox::load(), n2l::cGuiSButton::load(), n2l::cGuiButtonSelectBox::load(), and n2l::cGuiButton::load(). |
| void n2l::cGuiInteractive::mouseClickAt |
( |
const cMouseButtonEvent & |
iClick |
) |
[protected, virtual] |
|
|
|
Handle a mouse click event.
Reimplemented in n2l::cGuiSlider.
Definition at line 134 of file cGuiInteractive.cpp.
References addExtraClickedData(), addExtraPressedData(), addExtraReleasedData(), n2l::cDynVar::Array, n2l::cGuiElement::broadcastAction(), n2l::cMouseButtonEvent::button(), collides(), n2l::GuiActionType_Clicked, n2l::GuiActionType_Pressed, n2l::GuiActionType_Released, n2l::cDynVar::insert(), n2l::MouseButton_Unknown, n2l::cMouseButtonEvent::pos(), n2l::cMouseButtonEvent::pressed(), n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().
Referenced by n2l::cGuiSlider::mouseClickAt(), and systemEvent(). |
| void n2l::cGuiInteractive::mouseClickOutside |
( |
const cMouseButtonEvent & |
iClick |
) |
[protected, virtual] |
|
|
|
Handle a mouse click which is explicitly outside the scope of this element.
Normally this looks for button releases etc. to release a button, drag bar or slider, etc.
Definition at line 185 of file cGuiInteractive.cpp.
References addExtraReleasedData(), n2l::cDynVar::Array, n2l::cGuiElement::broadcastAction(), n2l::cMouseButtonEvent::button(), n2l::GuiActionType_Released, n2l::cDynVar::insert(), n2l::MouseButton_Unknown, n2l::cMouseButtonEvent::pos(), n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().
Referenced by systemEventOutside(). |
| void n2l::cGuiInteractive::mouseMove |
( |
const tGuiPos & |
iPos |
) |
[protected, virtual] |
|
|
|
Handle mouse motion.
Reimplemented in n2l::cGuiSlider.
Definition at line 200 of file cGuiInteractive.cpp.
References addExtraOutData(), addExtraOverData(), n2l::cDynVar::Array, n2l::cGuiElement::broadcastAction(), collides(), n2l::GuiActionType_Out, n2l::GuiActionType_Over, n2l::cDynVar::insert(), n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().
Referenced by n2l::cGuiSlider::mouseMove(), and systemEvent(). |
| void n2l::cGuiInteractive::mouseMoveOutside |
( |
const tGuiPos & |
iPos |
) |
[protected, virtual] |
|
|
|
Handle mouse motion which is explicitly not within the scope of this element.
Normally this is event is just used to register an 'out' event, etc.
Definition at line 244 of file cGuiInteractive.cpp.
References addExtraOutData(), n2l::cDynVar::Array, n2l::cGuiElement::broadcastAction(), n2l::GuiActionType_Out, n2l::cDynVar::insert(), n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().
Referenced by systemEventOutside(). |
|
|
Tell the element that a system event has occured.
Reimplemented from n2l::cGuiElement.
Reimplemented in n2l::cGuiButtonSelectBox, n2l::cGuiSButtonSelectBox, n2l::cGuiSlider, and n2l::cGuiTextDisplay.
Definition at line 60 of file cGuiInteractive.cpp.
References n2l::EventType_Key, n2l::EventType_MouseButton, n2l::EventType_MouseMotion, keystroke(), mouseClickAt(), mouseMove(), and n2l::cGuiElement::pos().
Referenced by n2l::cGuiTextDisplay::systemEvent(), n2l::cGuiSButtonSelectBox::systemEvent(), and n2l::cGuiButtonSelectBox::systemEvent(). |
The documentation for this class was generated from the following files:
|