Rocket::Core::ElementHandle Class Reference

#include <ElementHandle.h>

Inheritance diagram for Rocket::Core::ElementHandle:
Collaboration diagram for Rocket::Core::ElementHandle:

Public Member Functions

 ElementHandle (const String &tag)

Protected Member Functions

virtual void OnAttributeChange (const AttributeNameList &changed_attributes)
virtual void ProcessEvent (Event &event)

Protected Attributes

Vector2i drag_start
Vector2f move_original_position
Vector2f size_original_size
Elementmove_target
Elementsize_target
bool initialised

Detailed Description

A derivation of an element for use as a mouse handle. A handle is designed to be instanced and attached as a non- DOM element to a window-style element, and listened to for movement events which can be responsed to to move or resize the element as appropriate.

Author:
Peter Curry

Member Function Documentation

void Rocket::Core::ElementHandle::OnAttributeChange ( const AttributeNameList &  changed_attributes  )  [protected, virtual]

Called when attributes on the element are changed.

Parameters:
[in] changed_attributes The attributes changed on the element.

Reimplemented from Rocket::Core::Element.

void Rocket::Core::ElementHandle::ProcessEvent ( Event event  )  [protected, virtual]

Called for every event sent to this element or one of its descendants.

Parameters:
[in] event The event to process.

Reimplemented from Rocket::Core::Element.


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