TriEngine  v0.0.16
General-purpose engine in C#/OpenGL
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
TriDevs.TriEngine.UI.LinkLabel Class Reference

A label that, when clicked, will open a URL. More...

Inheritance diagram for TriDevs.TriEngine.UI.LinkLabel:
[legend]
Collaboration diagram for TriDevs.TriEngine.UI.LinkLabel:
[legend]

Protected Member Functions

override void OnClicked ()
 
- Protected Member Functions inherited from TriDevs.TriEngine.UI.Label
virtual void UpdateTextObject ()
 
- Protected Member Functions inherited from TriDevs.TriEngine.UI.Control
virtual void Draw (Point< int > position)
 

Properties

virtual string Url [get, set]
 Gets or sets the URL that will open when this label is clicked. More...
 
- Properties inherited from TriDevs.TriEngine.UI.Label
override string Text [get, set]
 
override Point< int > Position [get, set]
 
virtual QFontAlignment Alignment [get, set]
 Gets or sets the QFontAlignment of this label's text. More...
 
- Properties inherited from TriDevs.TriEngine.UI.Control
virtual bool Enabled [get, set]
 
virtual bool Visible [get, set]
 
virtual Color Color [get, set]
 
virtual Point< int > Position [get, set]
 
virtual Point< int > Size [get, set]
 
virtual Rectangle Rectangle [get, set]
 
virtual string Text [get, set]
 
- Properties inherited from TriDevs.TriEngine.UI.IControl
bool Enabled [get, set]
 Gets or sets a value indicating whether this control can be interacted with. More...
 
bool Visible [get, set]
 Gets or sets a value indicating whether this control should be drawn to the screen. More...
 
Color Color [get, set]
 The color of this control. More...
 
Point< int > Position [get, set]
 The position of this control, in pixel coordinates. More...
 
Point< int > Size [get, set]
 Gets or sets the size of this control, in pixels. More...
 
Rectangle Rectangle [get, set]
 Gets the rectangular area on the screen that this control is occupying. More...
 
string Text [get, set]
 Gets or sets the text associated with this control. More...
 

Additional Inherited Members

- Public Member Functions inherited from TriDevs.TriEngine.UI.Label
virtual void SetFont (Font font)
 Sets the font that this label uses. More...
 
override void Update ()
 Updates the object. More...
 
override void Draw ()
 Draw the object to screen. More...
 
- Events inherited from TriDevs.TriEngine.UI.Control
ControlClickedEventHandler Clicked
 Raised when this control is clicked on by the user. More...
 

Detailed Description

A label that, when clicked, will open a URL.

Member Function Documentation

override void TriDevs.TriEngine.UI.LinkLabel.OnClicked ( )
protectedvirtual

Reimplemented from TriDevs.TriEngine.UI.Control.

39  {
40  if (!string.IsNullOrEmpty(Url))
41  {
42  try
43  {
44  System.Diagnostics.Process.Start(Url);
45  }
46  catch (Win32Exception)
47  {
48 
49  }
50 
51  }
52 
53  base.OnClicked();
54  }

Here is the call graph for this function:

Property Documentation

virtual string TriDevs.TriEngine.UI.LinkLabel.Url
getset

Gets or sets the URL that will open when this label is clicked.


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