Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions | Public Attributes

MouseZoneEvent Class Reference

Mouse enter / leave physic object event, see Screen::RegisterMouseZoneEvent to register a MouseZone event. More...

#include <header.hpp>

Inheritance diagram for MouseZoneEvent:
EventHandlerBase

List of all members.

Public Member Functions

PhysicObject GetZone ()
 Get the zone (a Physic object) used to detect mouse entering / exiting.
nil SetZone (PhysicObject zone)
 Set the zone (a Physic object) used to detect mouse entering / exiting.
bool IsInside ()
 Return true if the mouse is currently inside the zone, else overwise.

Public Attributes

float zone
 Access the zone (a Physic object) used to detect mouse entering / exiting.

Detailed Description

Mouse enter / leave physic object event, see Screen::RegisterMouseZoneEvent to register a MouseZone event.


Member Function Documentation

PhysicObject MouseZoneEvent::GetZone ( )

Get the zone (a Physic object) used to detect mouse entering / exiting.

bool MouseZoneEvent::IsInside ( )

Return true if the mouse is currently inside the zone, else overwise.

nil MouseZoneEvent::SetZone ( PhysicObject  zone)

Set the zone (a Physic object) used to detect mouse entering / exiting.


Member Data Documentation

Access the zone (a Physic object) used to detect mouse entering / exiting.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables