XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
XELnch
pwbutton.h
Go to the documentation of this file.
1
32
#ifndef __POWER_BUTTON_H__
33
#define __POWER_BUTTON_H__
34
35
#include <
chitralekha.h
>
36
#include <
widgets/base.h
>
37
#include <
widgets/window.h
>
38
#include <
widgets/icon.h
>
39
40
enum
_power_button_type_
{
41
POWER_BUTTON_TYPE_SHUTDOWN
,
42
POWER_BUTTON_TYPE_LOCK
,
43
POWER_BUTTON_TYPE_RESTART
,
44
POWER_BUTTON_TYPE_SLEEP
,
45
};
46
47
typedef
struct
_pw_button_
{
48
ChWidget
base
;
49
uint8_t
type
;
50
ChIcon
*
icon
;
51
}
power_button
;
52
53
58
extern
power_button
*
create_power_button
(
uint8_t
pw_type,
int
x,
int
y);
59
60
#endif
window.h
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
base.h
chitralekha.h
icon.h
power_button
struct _pw_button_ power_button
_power_button_type_
_power_button_type_
Definition
pwbutton.h:40
POWER_BUTTON_TYPE_LOCK
@ POWER_BUTTON_TYPE_LOCK
Definition
pwbutton.h:42
POWER_BUTTON_TYPE_RESTART
@ POWER_BUTTON_TYPE_RESTART
Definition
pwbutton.h:43
POWER_BUTTON_TYPE_SLEEP
@ POWER_BUTTON_TYPE_SLEEP
Definition
pwbutton.h:44
POWER_BUTTON_TYPE_SHUTDOWN
@ POWER_BUTTON_TYPE_SHUTDOWN
Definition
pwbutton.h:41
create_power_button
power_button * create_power_button(uint8_t pw_type, int x, int y)
create_power_button – create a new power button
Definition
pwbutton.cpp:110
_ChWidget_
Definition
window.h:115
_icon_
Definition
icon.h:52
_pw_button_
Definition
pwbutton.h:47
_pw_button_::icon
ChIcon * icon
Definition
pwbutton.h:50
_pw_button_::type
uint8_t type
Definition
pwbutton.h:49
_pw_button_::base
ChWidget base
Definition
pwbutton.h:48
Generated by
1.9.8