KolibriOS kernel
button.inc File Reference

Classes

struct  SYS_BUTTON
 

Functions

void sys_getbutton (arg_t eax)
 system function 17 - Get the identifier of the pressed button More...
 
void syscall_button (arg_t eax, arg_t ebx, arg_t ecx, arg_t edx, arg_t esi)
 system function 8 - define/delete the button More...
 

Variables

label sys_button_activate_handler
 ------------------------------------------------------------— More...
 
label sys_button_deactivate_handler
 
label sys_button_perform_handler
 ------------------------------------------------------------— More...
 

Function Documentation

◆ sys_getbutton()

void sys_getbutton ( arg_t  eax)

system function 17 - Get the identifier of the pressed button


Parameters
eax17 - number function
Returns
eax = 1 - buffer empty, eax = high 24 bits contain button identifier, al = 0 - the button was pressed with left mouse button, al = bit corresponding to used mouse button otherwise
Source
gui/button.inc:30

◆ syscall_button()

void syscall_button ( arg_t  eax,
arg_t  ebx,
arg_t  ecx,
arg_t  edx,
arg_t  esi 
)

system function 8 - define/delete the button


Parameters
eax= 8 - number function
ebx= [offset_x]*65536 + [width]
ecx= [offset_y]*65536 + [height]
edx= 0xXYnnnnnn, where: nnnnnn = identifier of the button 31 bit - delete button 30 bit - don't draw button 29 bit - don't draw button frame when pressed
esi= 0x00RRGGBB - button color
Returns
function does not return value
Source
gui/button.inc:60

Variable Documentation

◆ sys_button_activate_handler

label sys_button_activate_handler

------------------------------------------------------------—

Source
gui/button.inc:289

◆ sys_button_deactivate_handler

label sys_button_deactivate_handler

◆ sys_button_perform_handler

label sys_button_perform_handler

------------------------------------------------------------—

Source
gui/button.inc:370