26#ifndef _ULTIBO_GRAPHICSCONSOLE_H
27#define _ULTIBO_GRAPHICSCONSOLE_H
uint32_t STDCALL(* console_window_enumerate_cb)(CONSOLE_DEVICE *console, WINDOW_HANDLE handle, void *data)
Definition console.h:362
struct _CONSOLE_WINDOW CONSOLE_WINDOW
Definition console.h:228
struct _WINDOW_PROPERTIES WINDOW_PROPERTIES
Definition console.h:339
CURSOR_MODE
Definition console.h:136
struct _CONSOLE_DEVICE CONSOLE_DEVICE
Definition console.h:186
CURSOR_SHAPE
Definition console.h:148
CURSOR_STATE
Definition console.h:142
HANDLE WINDOW_HANDLE
Definition globaltypes.h:121
#define STDCALL
Definition globaltypes.h:45
_Bool BOOL
Built in Boolean type (1 byte) (Redeclared here for flexibility).
Definition globaltypes.h:55
HANDLE FONT_HANDLE
Definition globaltypes.h:122
BOOL STDCALL graphics_window_check_flag(WINDOW_HANDLE handle, uint32_t flag)
Check an existing console window to determine if a flag is set or not.
uint32_t STDCALL graphics_window_show(WINDOW_HANDLE handle)
Make an existing console window visible and show it on screen.
WINDOW_HANDLE STDCALL graphics_window_create_ex(CONSOLE_DEVICE *console, FONT_HANDLE font, uint32_t size, uint32_t state, uint32_t mode, uint32_t position)
Create a new Graphics window.
uint32_t STDCALL graphics_window_get_cols(WINDOW_HANDLE handle)
Get the current columns of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_get_height(WINDOW_HANDLE handle)
Get the absolute height of an existing console window.
uint32_t STDCALL graphics_window_set_forecolor(WINDOW_HANDLE handle, uint32_t color)
Set the current foreground color of an existing console window.
uint32_t STDCALL graphics_window_set_cursor_mode(WINDOW_HANDLE handle, CURSOR_MODE cursormode)
Set the current cursor mode of an existing console window.
uint32_t STDCALL graphics_window_get_min_y(WINDOW_HANDLE handle)
Get the current minimum Y of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_clear_ex(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color)
Clear part of the the current viewport of an existing console window.
uint32_t STDCALL graphics_window_set_cursor_state(WINDOW_HANDLE handle, CURSOR_STATE cursorstate)
Set the current cursor state of an existing console window.
GRAPHICS_WINDOW *STDCALL graphics_window_check(CONSOLE_DEVICE *console, GRAPHICS_WINDOW *window)
Check if a console window entry is valid.
uint32_t STDCALL graphics_window_clear(WINDOW_HANDLE handle)
Clear the current viewport of an existing console window.
uint32_t STDCALL graphics_window_draw_char_ex(WINDOW_HANDLE handle, FONT_HANDLE font, char ch, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Draw a character on an existing console window.
uint32_t STDCALL graphics_window_get_backcolor(WINDOW_HANDLE handle)
Get the current background color of an existing console window.
uint32_t STDCALL graphics_window_get_state(WINDOW_HANDLE handle)
Get the window state of an existing console window.
BOOL STDCALL graphics_window_get_cursor_blink(WINDOW_HANDLE handle)
Get the current cursor blink state of an existing console window.
uint32_t STDCALL graphics_window_get_mode(WINDOW_HANDLE handle)
Get the window mode of an existing console window.
WINDOW_HANDLE STDCALL graphics_window_create(CONSOLE_DEVICE *console, uint32_t position)
Create a new Graphics window.
uint32_t STDCALL graphics_window_enumerate(CONSOLE_DEVICE *console, graphics_window_enumerate_cb callback, void *data)
Enumerate existing console windows on the specified console device.
uint32_t STDCALL graphics_window_draw_text(WINDOW_HANDLE handle, const char *text, uint32_t x, uint32_t y)
Draw a text string on an existing console window.
uint32_t STDCALL graphics_window_draw_line(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Draw a line on an existing console window.
CONSOLE_RECT STDCALL graphics_window_get_rect(WINDOW_HANDLE handle)
Get the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window.
WINDOW_HANDLE STDCALL graphics_window_find(CONSOLE_DEVICE *console, uint32_t position)
Find an existing console window in the position specified.
CURSOR_STATE STDCALL graphics_window_get_cursor_state(WINDOW_HANDLE handle)
Get the current cursor state of an existing console window.
uint32_t STDCALL graphics_window_get_width(WINDOW_HANDLE handle)
Get the absolute width of an existing console window.
uint32_t STDCALL graphics_window_reset_rect(WINDOW_HANDLE handle)
Reset the window viewport for an existing console window to the maximum size.
uint32_t STDCALL graphics_window_get_properties(WINDOW_HANDLE handle, WINDOW_PROPERTIES *properties)
Get the properties for the specified console window.
uint32_t STDCALL graphics_window_draw_circle(WINDOW_HANDLE handle, uint32_t x, uint32_t y, uint32_t color, uint32_t width, uint32_t radius)
Draw a circle on an existing console window.
uint32_t STDCALL graphics_window_reset_viewport(WINDOW_HANDLE handle)
Reset the window viewport for an existing console window to the maximum size.
uint32_t STDCALL graphics_window_cursor_move(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Move the cursor on an existing console window.
CURSOR_SHAPE STDCALL graphics_window_get_cursor_shape(WINDOW_HANDLE handle)
Get the current cursor shape of an existing console window.
uint32_t STDCALL graphics_window_set_cursor_blink(WINDOW_HANDLE handle, BOOL cursorblink)
Set the current cursor blink state of an existing console window.
uint32_t STDCALL graphics_window_draw_image(WINDOW_HANDLE handle, uint32_t x, uint32_t y, void *image, uint32_t width, uint32_t height, uint32_t format)
Draw an image on an existing console window.
uint32_t STDCALL graphics_window_get_image(WINDOW_HANDLE handle, uint32_t x, uint32_t y, void *image, uint32_t width, uint32_t height, uint32_t format)
Get an image from an existing console window.
uint32_t STDCALL graphics_window_image_size(WINDOW_HANDLE handle, uint32_t width, uint32_t height, uint32_t format, uint32_t stride)
Calculate the size in bytes of an image that is Width by Height in the color format specified.
uint32_t STDCALL graphics_window_copy_image(WINDOW_HANDLE handle, CONSOLE_POINT *source, CONSOLE_POINT *dest, uint32_t width, uint32_t height)
Copy an image from one place to another in an existing console window.
WINDOW_HANDLE STDCALL graphics_window_next(CONSOLE_DEVICE *console, BOOL visible)
Get the next console window starting with the active window.
CURSOR_MODE STDCALL graphics_window_get_cursor_mode(WINDOW_HANDLE handle)
Get the current cursor mode of an existing console window.
WINDOW_HANDLE STDCALL graphics_window_previous(CONSOLE_DEVICE *console, BOOL visible)
Get the previous console window starting with the active window.
uint32_t STDCALL graphics_window_cursor_off(WINDOW_HANDLE handle)
Disable the cursor on an existing console window.
uint32_t STDCALL graphics_window_get_count(CONSOLE_DEVICE *console)
Get the current console window count.
uint32_t STDCALL graphics_window_cursor_line(WINDOW_HANDLE handle)
Change the cursor to a vertical line on an existing console window.
uint32_t STDCALL graphics_window_cursor_on(WINDOW_HANDLE handle)
Enable the cursor on an existing console window.
WINDOW_HANDLE STDCALL graphics_window_at(CONSOLE_DEVICE *console, uint32_t x, uint32_t y, BOOL visible)
Find the console window that X and Y coordinates are within.
uint32_t STDCALL graphics_window_get_position(WINDOW_HANDLE handle)
Get the position of an existing console window.
uint32_t STDCALL graphics_window_set_cursor_shape(WINDOW_HANDLE handle, CURSOR_SHAPE cursorshape)
Set the current cursor shape of an existing console window.
uint32_t STDCALL graphics_window_get_format(WINDOW_HANDLE handle)
Get the color format of an existing console window.
uint32_t STDCALL graphics_window_set_cursor_xy(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Set the current cursor X and Y positions of an existing console window.
uint32_t STDCALL graphics_window_get_rows(WINDOW_HANDLE handle)
Get the current rows of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_destroy(WINDOW_HANDLE handle)
Close and Destroy an existing console window.
uint32_t STDCALL graphics_window_get_forecolor(WINDOW_HANDLE handle)
Get the current foreground color of an existing console window.
uint32_t STDCALL graphics_window_get_max_y(WINDOW_HANDLE handle)
Get the current maximum Y of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_draw_text_ex(WINDOW_HANDLE handle, FONT_HANDLE font, const char *text, uint32_t x, uint32_t y, uint32_t forecolor, uint32_t backcolor)
Draw a text string on an existing console window.
uint32_t STDCALL graphics_window_get_cursor_xy(WINDOW_HANDLE handle, uint32_t *x, uint32_t *y)
Get the current cursor X and Y positions of an existing console window.
uint32_t STDCALL graphics_window_set_viewport(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2)
Set the X1,Y1,X2,Y2 of the window viewport for an existing console window.
console_window_enumerate_cb graphics_window_enumerate_cb
Definition graphicsconsole.h:41
uint32_t STDCALL graphics_window_draw_char(WINDOW_HANDLE handle, char ch, uint32_t x, uint32_t y)
Draw a character on an existing console window.
uint32_t STDCALL graphics_window_cursor_bar(WINDOW_HANDLE handle)
Change the cursor to a horizontal bar on an existing console window.
uint32_t STDCALL graphics_window_set_position(WINDOW_HANDLE handle, uint32_t position)
Set the position of an existing console window.
CONSOLE_WINDOW GRAPHICS_WINDOW
Definition graphicsconsole.h:44
uint32_t STDCALL graphics_window_draw_pixel(WINDOW_HANDLE handle, uint32_t x, uint32_t y, uint32_t color)
Draw a single pixel on an existing console window.
uint32_t STDCALL graphics_window_draw_box(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color, uint32_t width)
Draw a rectangular box outline on an existing console window.
uint32_t STDCALL graphics_window_deactivate(WINDOW_HANDLE handle)
Make an existing console window inactive.
uint32_t STDCALL graphics_window_get_viewport(WINDOW_HANDLE handle, uint32_t *x1, uint32_t *y1, uint32_t *x2, uint32_t *y2)
Get the X1,Y1,X2,Y2 of the window viewport for an existing console window.
FONT_HANDLE STDCALL graphics_window_get_font(WINDOW_HANDLE handle)
Get the default font of an existing console window.
uint32_t STDCALL graphics_window_set_font(WINDOW_HANDLE handle, FONT_HANDLE font)
Set the default font of an existing console window.
uint32_t STDCALL graphics_window_get_min_x(WINDOW_HANDLE handle)
Get the current minimum X of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_get_max_x(WINDOW_HANDLE handle)
Get the current maximum X of the window viewport for an existing console window.
uint32_t STDCALL graphics_window_cursor_blink(WINDOW_HANDLE handle, BOOL enabled)
Set the blink state of the cursor on an existing console window.
uint32_t STDCALL graphics_window_activate(WINDOW_HANDLE handle)
Make an existing console window the active window.
uint32_t STDCALL graphics_window_get_pixel(WINDOW_HANDLE handle, uint32_t x, uint32_t y)
Get a single pixel from an existing console window.
uint32_t STDCALL graphics_window_cursor_block(WINDOW_HANDLE handle)
Change the cursor to a solid block on an existing console window.
uint32_t STDCALL graphics_window_draw_block(WINDOW_HANDLE handle, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t color)
Draw a rectangular filled block on an existing console window.
uint32_t STDCALL graphics_window_move_image(WINDOW_HANDLE handle, CONSOLE_POINT *source, CONSOLE_POINT *dest, uint32_t width, uint32_t height, uint32_t fillcolor)
Move an image from one place to another in an existing console window.
uint32_t STDCALL graphics_window_update_flag(WINDOW_HANDLE handle, uint32_t flag, BOOL clear)
Set or clear a flag on an existing console window.
uint32_t STDCALL graphics_window_set_backcolor(WINDOW_HANDLE handle, uint32_t color)
Set the current background color of an existing console window.
uint32_t STDCALL graphics_window_hide(WINDOW_HANDLE handle)
Make an existing console window invisible and hide it on screen.
uint32_t STDCALL graphics_window_set_rect(WINDOW_HANDLE handle, CONSOLE_RECT *rect)
Set the rectangle X1,Y1,X2,Y2 of the window viewport for an existing console window.
WINDOW_HANDLE STDCALL graphics_window_get_active(CONSOLE_DEVICE *console)
Get the current console active window.