Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Gui.ClickedOpenLink Class Reference

Open URL in system browser if widget is clicked. More...

Inheritance diagram for Dragengine.Gui.ClickedOpenLink:
Dragengine.Gui.ClickedActionListener Dragengine.Gui.Events.DefaultMouseListener Dragengine.Gui.Events.MouseListener

Public Member Functions

String getUrl ()
 URL to open.
ClickedOpenLink new (String url)
 Create clicked listener.
void onAction ()
 Open URL in system browser.
void setUrl (String url)
 Set URL to open.
Public Member Functions inherited from Dragengine.Gui.ClickedActionListener
int getButton ()
 Mouse button to track.
int getClickedCount ()
 Count of multi-clicks detected so far.
Point getClickedPosition ()
 Last clicked event position.
int getMultiClickCount ()
 Count of multi clicks before fire action.
float getMultiClickTimeout ()
 Maximum time in seconds between clicks to count as multi-click.
Point getPosition ()
 Mouse position at button press time or null if not tracked.
int getRange ()
 Range in pixels the mouse is allowed to move to fire the action.
ClickedActionListener new ()
 Create mouse listener tracking left mouse button and range of 5 pixels.
ClickedActionListener new (int trackButton, int range)
 Create mouse listener.
void onButtonPress (MouseEvent event)
 Mouse button pressed.
void onButtonRelease (MouseEvent event)
 Mouse button release.
void onMouseMove (MouseEvent event)
 Mouse moved.
void resetMultiClickDetection ()
 Reset multi click detection.
void setMultiClickCount (int count)
 Set count of multi clicks before fire action.
void setMultiClickTimeout (float time)
 Set maximum time in seconds between clicks to count as multi-click.
Public Member Functions inherited from Dragengine.Gui.Events.DefaultMouseListener
void onMouseEnter (MouseEvent event)
 Mouse has entered widget.
void onMouseLeave (MouseEvent event)
 Mouse has left widget.
void onMouseWheel (MouseEvent event)
 Mouse wheel moved.

Public Attributes

String pUrl
Public Attributes inherited from Dragengine.Gui.ClickedActionListener
int pButton
int pMultiClickCount
float pMultiClickTimeout
Point pPosition
ResetMultiClickTimer pResetMultiClickTimer

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Gui.ClickedActionListener
void setPosition (Point position)
 Set mouse position at button press time or null if not tracked.

Detailed Description

Open URL in system browser if widget is clicked.

Version
1.23

Member Function Documentation

◆ getUrl()

String Dragengine.Gui.ClickedOpenLink.getUrl ( )

URL to open.

References getUrl(), and pUrl.

Referenced by getUrl().

◆ new()

ClickedOpenLink Dragengine.Gui.ClickedOpenLink.new ( String url)

Create clicked listener.

Parameters
urlURL to open.

References new(), and setUrl().

Referenced by new(), and setUrl().

◆ onAction()

void Dragengine.Gui.ClickedOpenLink.onAction ( )

Open URL in system browser.

Reimplemented from Dragengine.Gui.ClickedActionListener.

References onAction(), and pUrl.

Referenced by onAction().

◆ setUrl()

void Dragengine.Gui.ClickedOpenLink.setUrl ( String url)

Set URL to open.

Parameters
urlURL to open.

References new(), and setUrl().

Referenced by new(), and setUrl().

Member Data Documentation

◆ pUrl

String Dragengine.Gui.ClickedOpenLink.pUrl

Referenced by getUrl(), and onAction().


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