XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
systray
systray.h
Go to the documentation of this file.
1
30
#ifndef __SYS_TRAY_H__
31
#define __SYS_TRAY_H__
32
33
#include <stdint.h>
34
#include <
widgets/base.h
>
35
#include <
widgets/icon.h
>
36
#include <
widgets/window.h
>
37
38
#define TRAY_BUTTON_TYPE_ONOFF 1
39
#define TRAY_BUTTON_TYPE_NORMAL 0
40
41
typedef
struct
_tray_but_
{
42
ChWidget
base
;
43
ChIcon
*
icon
;
44
char
*
title
;
45
uint8_t
frameCount
;
46
uint8_t
currentFrame
;
47
uint8_t
type
;
48
bool
onoff
;
49
}
TrayButton
;
50
51
extern
void
TrayButtonInitialize
();
52
/*
53
* TrayCreateButton -- create a tray button
54
* @param title -- title of the button
55
* @param x -- X location of the button
56
* @param y -- Y location of the button
57
* @param width -- Width of the button
58
* @param height -- Height of the button
59
*/
60
extern
TrayButton
*
TrayCreateButton
(
char
* title,
int
x,
int
y,
int
width,
int
height);
61
#endif
window.h
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
base.h
icon.h
_ChWidget_
Definition
window.h:114
_icon_
Definition
icon.h:52
_tray_but_
Definition
systray.h:41
_tray_but_::type
uint8_t type
Definition
systray.h:47
_tray_but_::icon
ChIcon * icon
Definition
systray.h:43
_tray_but_::base
ChWidget base
Definition
systray.h:42
_tray_but_::frameCount
uint8_t frameCount
Definition
systray.h:45
_tray_but_::currentFrame
uint8_t currentFrame
Definition
systray.h:46
_tray_but_::onoff
bool onoff
Definition
systray.h:48
_tray_but_::title
char * title
Definition
systray.h:44
TrayButtonInitialize
void TrayButtonInitialize()
Definition
traybutton.cpp:149
TrayButton
struct _tray_but_ TrayButton
TrayCreateButton
TrayButton * TrayCreateButton(char *title, int x, int y, int width, int height)
Definition
traybutton.cpp:129
Generated by
1.9.8