Button tray component.
More...
Go to the source code of this file.
Detailed Description
Button tray component.
- Author:
- Joe Wingbermuehle
- Date:
- 2004-2006
Definition in file traybutton.h.
Function Documentation
| struct TrayComponentType* CreateTrayButton |
( |
const char * |
iconName, |
|
|
const char * |
label, |
|
|
const char * |
action, |
|
|
const char * |
popup, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| [read] |
Create a tray button component.
- Parameters:
-
| iconName | The name of the icon to use for the button. |
| label | The label to use for the button. |
| action | The action to take when the button is clicked. |
| popup | Text to display in a popup window. |
| width | The width to use for the button (0 for default). |
| height | The height to use for the button (0 for default). |
- Returns:
- A new tray button component.
| void DestroyTrayButtons |
( |
| ) |
|
| void InitializeTrayButtons |
( |
| ) |
|
| void ShutdownTrayButtons |
( |
| ) |
|
| void SignalTrayButton |
( |
const struct TimeType * |
now, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Signal a tray button.
- Parameters:
-
| now | The current time. |
| x | The x-coordinate of the mouse (root relative). |
| y | The y-coordinate of the mouse (root relative). |
| void StartupTrayButtons |
( |
| ) |
|
| void ValidateTrayButtons |
( |
| ) |
|
Validate the tray buttons and print a warning if something is wrong.
This is called after parsing the configuration file(s) to determine if a root menu is defined for each each tray button that specifies a root menu.