The ITouchArea interface.
More...
#include <murl_input_i_touch_area.h>
The ITouchArea interface.
The ITouchArea object can be created by the ITouchableHandler object.
Inherited by Murl::Input::TouchArea.
◆ SetActiveFaces()
Set which faces of the touch area are active.
- Parameters
-
- Returns
- true if successful.
◆ GetActiveFaces()
Check which faces of the touch area are active.
- Returns
- One of the available IEnums::PolygonFaces enumeration values.
◆ SetOutCoord()
Set the button's output coordinate range.
This method sets the button's start and end output coordinates. In contrast to a button event's local intersection point, which always represents the actual intersection in object-space 3D coordinates, an event's output coordinate represents a 2D intersection on the button's clickable surface. This can be interpreted analogously to a renderable geometry, with 3D vertex coordinates and 2D texture coordinates.
- Parameters
-
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
- Returns
- true if successful.
◆ SetOutCoord1()
virtual Bool Murl::Input::ITouchArea::SetOutCoord1 |
( |
Real |
x1, |
|
|
Real |
y1 |
|
) |
| |
|
pure virtual |
Set the button's output coordinate start.
See SetOutCoord().
- Parameters
-
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
- Returns
- true if successful.
◆ SetOutCoord2()
virtual Bool Murl::Input::ITouchArea::SetOutCoord2 |
( |
Real |
x2, |
|
|
Real |
y2 |
|
) |
| |
|
pure virtual |
Set the button's output coordinate end.
See SetOutCoord().
- Parameters
-
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
- Returns
- true if successful.
◆ SetOutCoordX1()
virtual Bool Murl::Input::ITouchArea::SetOutCoordX1 |
( |
Real |
x1 | ) |
|
|
pure virtual |
Set the button's horizontal start output coordinate.
See SetOutCoord().
- Parameters
-
x1 | The start coordinate in X direction. |
- Returns
- true if successful.
◆ SetOutCoordY1()
virtual Bool Murl::Input::ITouchArea::SetOutCoordY1 |
( |
Real |
y1 | ) |
|
|
pure virtual |
Set the button's vertical start output coordinates.
See SetOutCoord().
- Parameters
-
y1 | The start coordinate in Y direction. |
- Returns
- true if successful.
◆ SetOutCoordX2()
virtual Bool Murl::Input::ITouchArea::SetOutCoordX2 |
( |
Real |
x2 | ) |
|
|
pure virtual |
Set the button's horizontal end output coordinate.
See SetOutCoord().
- Parameters
-
x2 | The end coordinate in X direction. |
- Returns
- true if successful.
◆ SetOutCoordY2()
virtual Bool Murl::Input::ITouchArea::SetOutCoordY2 |
( |
Real |
y2 | ) |
|
|
pure virtual |
Set the button's vertical end output coordinates.
See SetOutCoord().
- Parameters
-
y2 | The end coordinate in Y direction. |
- Returns
- true if successful.
◆ GetOutCoordX1()
virtual Real Murl::Input::ITouchArea::GetOutCoordX1 |
( |
| ) |
const |
|
pure virtual |
Get the button's horizontal start output coordinate.
See SetOutCoord().
- Returns
- The start coordinate in X direction.
◆ GetOutCoordY1()
virtual Real Murl::Input::ITouchArea::GetOutCoordY1 |
( |
| ) |
const |
|
pure virtual |
Get the button's vertical start output coordinate.
See SetOutCoord().
- Returns
- The start coordinate in Y direction.
◆ GetOutCoordX2()
virtual Real Murl::Input::ITouchArea::GetOutCoordX2 |
( |
| ) |
const |
|
pure virtual |
Get the button's horizontal end output coordinate.
See SetOutCoord().
- Returns
- The end coordinate in X direction.
◆ GetOutCoordY2()
virtual Real Murl::Input::ITouchArea::GetOutCoordY2 |
( |
| ) |
const |
|
pure virtual |
Get the button's vertical end output coordinate.
See SetOutCoord().
- Returns
- The end coordinate in Y direction.
◆ SetResponseTarget()
Set the response target object.
- Parameters
-
node | The response target object. |
◆ GetResponseTarget()
Get the response target object.
- Returns
- The response target object.
◆ SetResponseButton()
Set the response button.
- Parameters
-
button | The response button. |
◆ GetResponseButton()
Get the response button.
- Returns
- The response button.
◆ SetPassEventsEnabled()
virtual void Murl::Input::ITouchArea::SetPassEventsEnabled |
( |
Bool |
enable | ) |
|
|
pure virtual |
Set the pass events state.
- Parameters
-
enable | true for enable passing events. |
◆ IsPassEventsEnabled()
virtual Bool Murl::Input::ITouchArea::IsPassEventsEnabled |
( |
| ) |
const |
|
pure virtual |
Check the pass events state.
- Returns
- true if enabled.
The documentation for this interface was generated from the following file:
- murl_input_i_touch_area.h