bx_sdl_gui_c Class Reference

Inheritance diagram for bx_sdl_gui_c:

Inheritance graph
[legend]
Collaboration diagram for bx_sdl_gui_c:

Collaboration graph
[legend]

Detailed Description

GUI implementation using SDL.

Definition at line 105 of file sdl.cpp.


Public Member Functions

 bx_sdl_gui_c (CConfigurator *cfg)
virtual void specific_init (unsigned x_tilesize, unsigned y_tilesize)
virtual void text_update (u8 *old_text, u8 *new_text, unsigned long cursor_x, unsigned long cursor_y, bx_vga_tminfo_t tm_info, unsigned rows)
virtual void graphics_tile_update (u8 *snapshot, unsigned x, unsigned y)
virtual void handle_events (void)
virtual void flush (void)
 Flush any changes to sdl_screen to the actual window.
virtual void clear_screen (void)
 Clear sdl_screen display, and flush it.
virtual bool palette_change (unsigned index, unsigned red, unsigned green, unsigned blue)
 Set palette-entry index to the desired value.
virtual void dimension_update (unsigned x, unsigned y, unsigned fheight=0, unsigned fwidth=0, unsigned bpp=8)
virtual void mouse_enabled_changed_specific (bool val)
virtual void exit (void)
virtual bx_svga_tileinfo_tgraphics_tile_info (bx_svga_tileinfo_t *info)
virtual u8graphics_tile_get (unsigned x, unsigned y, unsigned *w, unsigned *h)
virtual void graphics_tile_update_in_place (unsigned x, unsigned y, unsigned w, unsigned h)

Private Attributes

CConfiguratormyCfg

Constructor & Destructor Documentation

bx_sdl_gui_c::bx_sdl_gui_c ( CConfigurator cfg  ) 

Definition at line 166 of file sdl.cpp.

References bx_keymap.


Member Function Documentation

void bx_sdl_gui_c::specific_init ( unsigned  x_tilesize,
unsigned  y_tilesize 
) [virtual]

void bx_sdl_gui_c::text_update ( u8 old_text,
u8 new_text,
unsigned long  cursor_x,
unsigned long  cursor_y,
bx_vga_tminfo_t  tm_info,
unsigned  rows 
) [virtual]

void bx_sdl_gui_c::graphics_tile_update ( u8 snapshot,
unsigned  x,
unsigned  y 
) [virtual]

Implements bx_gui_c.

Definition at line 490 of file sdl.cpp.

References BX_PANIC, palette, res_y, sdl_screen, tileheight, tilewidth, and vga_bpp.

void bx_sdl_gui_c::handle_events ( void   )  [virtual]

void bx_sdl_gui_c::flush ( void   )  [virtual]

Flush any changes to sdl_screen to the actual window.

Implements bx_gui_c.

Definition at line 1168 of file sdl.cpp.

References res_x, res_y, and sdl_screen.

void bx_sdl_gui_c::clear_screen ( void   )  [virtual]

Clear sdl_screen display, and flush it.

Implements bx_gui_c.

Definition at line 1176 of file sdl.cpp.

References res_x, res_y, and sdl_screen.

bool bx_sdl_gui_c::palette_change ( unsigned  index,
unsigned  red,
unsigned  green,
unsigned  blue 
) [virtual]

Set palette-entry index to the desired value.

The palette is used in text-mode and in 8bpp VGA mode.

Implements bx_gui_c.

Definition at line 1210 of file sdl.cpp.

References palette, and sdl_screen.

void bx_sdl_gui_c::dimension_update ( unsigned  x,
unsigned  y,
unsigned  fheight = 0,
unsigned  fwidth = 0,
unsigned  bpp = 8 
) [virtual]

Implements bx_gui_c.

Definition at line 1225 of file sdl.cpp.

References FAILURE_1, FAILURE_3, fontheight, fontwidth, half_res_x, half_res_y, res_x, res_y, sdl_screen, text_cols, text_rows, and vga_bpp.

Referenced by specific_init().

void bx_sdl_gui_c::mouse_enabled_changed_specific ( bool  val  )  [virtual]

Implements bx_gui_c.

Definition at line 1268 of file sdl.cpp.

References sdl_grab.

void bx_sdl_gui_c::exit ( void   )  [virtual]

Implements bx_gui_c.

Definition at line 1284 of file sdl.cpp.

References sdl_screen.

bx_svga_tileinfo_t * bx_sdl_gui_c::graphics_tile_info ( bx_svga_tileinfo_t info  )  [virtual]

u8 * bx_sdl_gui_c::graphics_tile_get ( unsigned  x,
unsigned  y,
unsigned *  w,
unsigned *  h 
) [virtual]

Reimplemented from bx_gui_c.

Definition at line 562 of file sdl.cpp.

References res_x, res_y, sdl_screen, tileheight, and tilewidth.

void bx_sdl_gui_c::graphics_tile_update_in_place ( unsigned  x,
unsigned  y,
unsigned  w,
unsigned  h 
) [virtual]

Reimplemented from bx_gui_c.

Definition at line 582 of file sdl.cpp.


Field Documentation

Definition at line 137 of file sdl.cpp.

Referenced by handle_events(), and specific_init().


The documentation for this class was generated from the following file:

SourceForge.net Logo
Project space on SourceForge.net