Version 2.0.0-0

gui Reference

File
core/xeos/include/xeos/gui.h
Date
Wednesday, June 25, 2014
Includes
  • <system/macros.h>
  • <stdint.h>
  • <stdarg.h>
  • <stdbool.h>
  • <system/types/size_t.h>

Tasks

XEOS_GUI_BitmapFontGetBitmapFont Top

XEOS_GUI_BitmapFontRef XEOS_GUI_BitmapFontGetBitmapFont( const char *name, uint32_t size, uint32_t traits );

XEOS_GUI_BitmapFontGetGlyphAtIndex Top

XEOS_GUI_BitmapFontGlyphRef XEOS_GUI_BitmapFontGetGlyphAtIndex( XEOS_GUI_BitmapFontRef font, uint32_t index );

XEOS_GUI_BitmapFontGetGlyphCount Top

size_t XEOS_GUI_BitmapFontGetGlyphCount( XEOS_GUI_BitmapFontRef font );

XEOS_GUI_BitmapFontGetGlyphHeight Top

uint32_t XEOS_GUI_BitmapFontGetGlyphHeight( XEOS_GUI_BitmapFontRef font );

XEOS_GUI_BitmapFontGetMonospaceSystemBitmapFont Top

XEOS_GUI_BitmapFontRef XEOS_GUI_BitmapFontGetMonospaceSystemBitmapFont( void );

XEOS_GUI_BitmapFontGetName Top

const char * XEOS_GUI_BitmapFontGetName( XEOS_GUI_BitmapFontRef font );

XEOS_GUI_BitmapFontGetSize Top

uint32_t XEOS_GUI_BitmapFontGetSize( XEOS_GUI_BitmapFontRef font );

XEOS_GUI_BitmapFontGetSystemBitmapFont Top

XEOS_GUI_BitmapFontRef XEOS_GUI_BitmapFontGetSystemBitmapFont( void );

XEOS_GUI_BitmapFontGetSystemBitmapFontSize Top

uint32_t XEOS_GUI_BitmapFontGetSystemBitmapFontSize( void );

XEOS_GUI_BitmapFontGetTraits Top

uint32_t XEOS_GUI_BitmapFontGetTraits( XEOS_GUI_BitmapFontRef font );

XEOS_GUI_BitmapFontGlyphGetData Top

void * XEOS_GUI_BitmapFontGlyphGetData( XEOS_GUI_BitmapFontGlyphRef glyph );

XEOS_GUI_BitmapFontGlyphGetWidth Top

uint32_t XEOS_GUI_BitmapFontGlyphGetWidth( XEOS_GUI_BitmapFontGlyphRef glyph );

XEOS_GUI_ClearScreen Top

void XEOS_GUI_ClearScreen( void );

XEOS_GUI_GetCursorPosition Top

XEOS_GUI_Point XEOS_GUI_GetCursorPosition( void );

XEOS_GUI_GetPredefinedColor Top

XEOS_GUI_Color XEOS_GUI_GetPredefinedColor( XEOS_GUI_PredefinedColor colorStyle );

XEOS_GUI_MakePoint Top

XEOS_GUI_Point XEOS_GUI_MakePoint( uint32_t x, uint32_t y );

XEOS_GUI_MakeRect Top

XEOS_GUI_Rect XEOS_GUI_MakeRect( uint32_t x, uint32_t y, uint32_t width, uint32_t height );

XEOS_GUI_MakeSize Top

XEOS_GUI_Size XEOS_GUI_MakeSize( uint32_t width, uint32_t height );

XEOS_GUI_Prompt Top

int XEOS_GUI_Prompt( const char *s );

XEOS_GUI_SetCursorPosition Top

void XEOS_GUI_SetCursorPosition( XEOS_GUI_Point point );

XEOS_GUI_SetPredefinedColor Top

void XEOS_GUI_SetPredefinedColor( XEOS_GUI_PredefinedColor colorStyle, XEOS_GUI_Color color );

XEOS_Video_Print Top

int XEOS_Video_Print( const char *s );

XEOS_Video_Printf Top

int XEOS_Video_Printf( const char *format, ... ) FORMAT_ATTRIBUTE( printf, 1, 2 );

XEOS_Video_Promptf Top

int XEOS_Video_Promptf( const char *format, ... ) FORMAT_ATTRIBUTE( printf, 1, 2 );

XEOS_Video_Putc Top

void XEOS_Video_Putc( char c, bool updateCursor );

XEOS_Video_Scroll Top

void XEOS_Video_Scroll( uint32_t lines );

XEOS_Video_VPrintf Top

int XEOS_Video_VPrintf( const char *format, va_list arg );

Types

XEOS_GUI_BitmapFontGlyphRef Top

typedef struct __XEOS_GUI_BitmapFontGlyph * XEOS_GUI_BitmapFontGlyphRef;

XEOS_GUI_BitmapFontRef Top

typedef struct __XEOS_GUI_BitmapFont * XEOS_GUI_BitmapFontRef;

XEOS_GUI_BitmapFontTraits Top

typedef enum { XEOS_GUI_BitmapFontTraitsNormal = 0x00, XEOS_GUI_BitmapFontTraitsMonospace = 0x01 } XEOS_GUI_BitmapFontTraits;

XEOS_GUI_Color Top

typedef struct { uint8_t red; uint8_t green; uint8_t blue; } XEOS_GUI_Color;

XEOS_GUI_Point Top

typedef struct { uint32_t x; uint32_t y; } XEOS_GUI_Point;

XEOS_GUI_PredefinedColor Top

typedef enum { XEOS_GUI_PredefinedColorBlack = 0x00, XEOS_GUI_PredefinedColorWhite = 0x01, XEOS_GUI_PredefinedColorGray = 0x02, XEOS_GUI_PredefinedColorLightGray = 0x03, XEOS_GUI_PredefinedColorRed = 0x04, XEOS_GUI_PredefinedColorGreen = 0x05, XEOS_GUI_PredefinedColorBlue = 0x06, XEOS_GUI_PredefinedColorMagenta = 0x07, XEOS_GUI_PredefinedColorCyan = 0x08, XEOS_GUI_PredefinedColorYellow = 0x09, XEOS_GUI_PredefinedColorScreenBackground = 0x0A, XEOS_GUI_PredefinedColorWindowBackground = 0x0B } XEOS_GUI_PredefinedColor;

XEOS_GUI_Rect Top

typedef struct { XEOS_GUI_Point origin; XEOS_GUI_Size size; } XEOS_GUI_Rect;

XEOS_GUI_Size Top

typedef struct { uint32_t width; uint32_t height; } XEOS_GUI_Size;

Macros

__XEOS_GUI_H__ Top

#define __XEOS_GUI_H__