spectra
1.0.0
그래픽 사용자 인터페이스가있는 64 비트 운영 체제 커널.


TODO
다음은 제어판이있는 500 x 500 GUI 창을 만들고 사용자 이벤트를 처리하는 방법을 보여주는 데모입니다.
#include "stdio.h"
#include "unistd.h"
#include "stdlib.h"
#include "string.h"
#include "gui/gui.h"
#include "gui/label.h"
#include "window/window.h"
#include "messages.h"
#include "assets/color.h"
int main ( int argc , char * * argv )
{
uint32_t width = 500 ;
uint32_t height = 500 ;
int32_t x = 150 ;
int32_t y = 100 ;
int id = 1 ;
const char * title = "demo" ;
demo_win = create_gui_window ( 0 , width , height , x , y , 0 , id , title , 0 , 0 );
if (! demo_win )
{
printf ( "create window fail!n" );
return 0 ;
}
create_window_control_panel ( demo_win , 2 );
struct message * msg = ( struct message * ) malloc ( sizeof ( struct message ));
char ch ;
while ( 1 )
{
window_get_message ( shell_win , msg );
switch ( msg -> event )
{
case MESSAGE_KEY_PRESS :
ch = ( char ) msg -> key ;
// handle keyboard
default :
window_consume ( shell_win , msg );
break ;
}
if ( demo_win -> state == WINDOW_CLOSE ) break ;
}
// ...
return 0 ;
}[em] 파일 시스템
[/] ext2 read/stat/close/seek
[it] 프로세스/멀티 태스킹
[board] PS2 키보드
[.] 마우스 드라이버
[ue] 메시지 대기열 핸들 이벤트
[inter] 그래픽 사용자 인터페이스
[file] TGA 이미지 파일 지원
[er] 엘프 로더
프로그램