![]() |
Ultibo API
C/C++ API for Ultibo Core
|
Go to the source code of this file.
Data Structures | |
| struct | _FRAMEBUFFER_PALETTE |
| struct | _FRAMEBUFFER_PROPERTIES |
| struct | _FRAMEBUFFER_DEVICE |
Macros | |
| #define | FRAMEBUFFER_NAME_PREFIX "Framebuffer" |
| Name prefix for Framebuffer Devices. | |
| #define | FRAMEBUFFER_TYPE_NONE 0 |
| #define | FRAMEBUFFER_TYPE_HARDWARE 1 |
| #define | FRAMEBUFFER_TYPE_VIRTUAL 2 |
| #define | FRAMEBUFFER_TYPE_MAX 2 |
| #define | FRAMEBUFFER_STATE_DISABLED 0 |
| #define | FRAMEBUFFER_STATE_ENABLED 1 |
| #define | FRAMEBUFFER_STATE_MAX 1 |
| #define | FRAMEBUFFER_CURSOR_DISABLED 0 |
| #define | FRAMEBUFFER_CURSOR_ENABLED 1 |
| #define | FRAMEBUFFER_FLAG_NONE 0x00000000 |
| #define | FRAMEBUFFER_FLAG_DMA 0x00000001 |
| If set the framebuffer supports DMA for read/write operations. | |
| #define | FRAMEBUFFER_FLAG_MARK 0x00000002 |
| If set the framebuffer requires mark after write operations. | |
| #define | FRAMEBUFFER_FLAG_COMMIT 0x00000004 |
| If set the framebuffer requires commit after write operations. | |
| #define | FRAMEBUFFER_FLAG_BLANK 0x00000008 |
| If set the framebuffer supports blanking the screen. | |
| #define | FRAMEBUFFER_FLAG_CACHED 0x00000010 |
| If set framebuffer is in cached memory and cache cleaning should be used. | |
| #define | FRAMEBUFFER_FLAG_SWAP 0x00000020 |
| If set framebuffer requires byte order of colors to be reversed (BGR <-> RGB). | |
| #define | FRAMEBUFFER_FLAG_BACKLIGHT 0x00000040 |
| If set the framebuffer supports setting the backlight brightness. | |
| #define | FRAMEBUFFER_FLAG_VIRTUAL 0x00000080 |
| If set the framebuffer supports virtual width and height. | |
| #define | FRAMEBUFFER_FLAG_OFFSETX 0x00000100 |
| If set the framebuffer supports virtual offset X (Horizontal Pan/Flip etc). | |
| #define | FRAMEBUFFER_FLAG_OFFSETY 0x00000200 |
| If set the framebuffer supports virtual offset Y (Vertical Pan/Flip etc). | |
| #define | FRAMEBUFFER_FLAG_SYNC 0x00000400 |
| If set the framebuffer supports waiting for vertical sync. | |
| #define | FRAMEBUFFER_FLAG_CURSOR 0x00000800 |
| If set the framebuffer supports a hardware mouse cursor. | |
| #define | FRAMEBUFFER_TRANSFER_NONE 0x00000000 |
| #define | FRAMEBUFFER_TRANSFER_DMA 0x00000001 |
| Use DMA for transfer operations (Note: Buffers must be DMA compatible). | |
Typedefs | |
| typedef struct _FRAMEBUFFER_PALETTE | FRAMEBUFFER_PALETTE |
| typedef struct _FRAMEBUFFER_PROPERTIES | FRAMEBUFFER_PROPERTIES |
| typedef struct _FRAMEBUFFER_DEVICE | FRAMEBUFFER_DEVICE |
| typedef uint32_t STDCALL(* | framebuffer_enumerate_cb) (FRAMEBUFFER_DEVICE *framebuffer, void *data) |
| typedef uint32_t STDCALL(* | framebuffer_notification_cb) (DEVICE *device, void *data, uint32_t notification) |
| typedef uint32_t STDCALL(* | framebuffer_device_allocate_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| typedef uint32_t STDCALL(* | framebuffer_device_release_proc) (FRAMEBUFFER_DEVICE *framebuffer) |
| typedef uint32_t STDCALL(* | framebuffer_device_blank_proc) (FRAMEBUFFER_DEVICE *framebuffer, BOOL blank) |
| typedef uint32_t STDCALL(* | framebuffer_device_read_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_write_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_mark_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_commit_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t address, uint32_t size, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_get_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_put_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_copy_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t width, uint32_t height, uint32_t flags) |
| typedef uint32_t STDCALL(* | framebuffer_device_fill_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t color, uint32_t flags) |
| typedef void *STDCALL(* | framebuffer_device_get_line_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t y) |
| typedef void *STDCALL(* | framebuffer_device_get_point_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y) |
| typedef uint32_t STDCALL(* | framebuffer_device_wait_sync_proc) (FRAMEBUFFER_DEVICE *framebuffer) |
| typedef uint32_t STDCALL(* | framebuffer_device_get_offset_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t *x, uint32_t *y) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_offset_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_offset_ex_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan, BOOL _switch) |
| typedef uint32_t STDCALL(* | framebuffer_device_get_palette_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_palette_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_backlight_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t brightness) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_cursor_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t width, uint32_t height, uint32_t hotspotx, uint32_t hotspoty, void *image, uint32_t len) |
| typedef uint32_t STDCALL(* | framebuffer_device_update_cursor_proc) (FRAMEBUFFER_DEVICE *framebuffer, BOOL enabled, int32_t x, int32_t y, BOOL relative) |
| typedef uint32_t STDCALL(* | framebuffer_device_get_properties_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| typedef uint32_t STDCALL(* | framebuffer_device_set_properties_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
Functions | |
| uint32_t STDCALL | framebuffer_device_allocate (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| Allocate and enable a framebuffer device using supplied properties or defaults. | |
| uint32_t STDCALL | framebuffer_device_release (FRAMEBUFFER_DEVICE *framebuffer) |
| Disable and release a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_blank (FRAMEBUFFER_DEVICE *framebuffer, BOOL blank) |
| Blank (Turn off) the display of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_read (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| Read one or more pixels from framebuffer device memory to a supplied buffer. | |
| uint32_t STDCALL | framebuffer_device_write (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| Write one or more pixels to framebuffer device memory from a supplied buffer. | |
| uint32_t STDCALL | framebuffer_device_mark (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t flags) |
| Mark a region written to the framebuffer and signal the device to take any necessary actions. | |
| uint32_t STDCALL | framebuffer_device_commit (FRAMEBUFFER_DEVICE *framebuffer, size_t address, uint32_t size, uint32_t flags) |
| Commit a region written to the framebuffer and signal the device to take any necessary actions. | |
| uint32_t STDCALL | framebuffer_device_get_rect (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| Get a rectangular area of pixels from framebuffer memory to a supplied buffer. | |
| uint32_t STDCALL | framebuffer_device_put_rect (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| Put a rectangular area of pixels from a supplied buffer to framebuffer memory. | |
| uint32_t STDCALL | framebuffer_device_copy_rect (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t width, uint32_t height, uint32_t flags) |
| Copy a rectangular area of pixels within framebuffer memory. | |
| uint32_t STDCALL | framebuffer_device_fill_rect (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t color, uint32_t flags) |
| Fill a rectangular area of pixels within framebuffer memory. | |
| void *STDCALL | framebuffer_device_get_line (FRAMEBUFFER_DEVICE *framebuffer, uint32_t y) |
| Get the address of the start of a row in framebuffer memory. | |
| void *STDCALL | framebuffer_device_get_point (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y) |
| Get the address of the specified row and column in framebuffer memory. | |
| uint32_t STDCALL | framebuffer_device_wait_sync (FRAMEBUFFER_DEVICE *framebuffer) |
| Wait for the next vertical sync signal from the display hardware. | |
| uint32_t STDCALL | framebuffer_device_get_offset (FRAMEBUFFER_DEVICE *framebuffer, uint32_t *x, uint32_t *y) |
| Get the virtual offset X and Y from a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_offset (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan) |
| Set the virtual offset X and Y of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_offset_ex (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan, BOOL _switch) |
| Set the virtual offset X and Y of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_get_palette (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| Get the 8 bit color palette from a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_palette (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| Set the 8 bit color palette of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_backlight (FRAMEBUFFER_DEVICE *framebuffer, uint32_t brightness) |
| Set the brightness of the backlight of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_cursor (FRAMEBUFFER_DEVICE *framebuffer, uint32_t width, uint32_t height, uint32_t hotspotx, uint32_t hotspoty, void *image, uint32_t len) |
| Set the mouse cursor image and properties of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_update_cursor (FRAMEBUFFER_DEVICE *framebuffer, BOOL enabled, int32_t x, int32_t y, BOOL relative) |
| Update the position and state for the mouse cursor of a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_get_properties (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| Get the current properties from a framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_properties (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| Set the current properties for a framebuffer device. | |
| BOOL STDCALL | framebuffer_device_check_flag (FRAMEBUFFER_DEVICE *framebuffer, uint32_t flag) |
| Check if a framebuffer device supports a flag value. | |
| uint32_t STDCALL | framebuffer_device_get_format (FRAMEBUFFER_DEVICE *framebuffer) |
| Get the color format of a framebuffer device. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_create (void) |
| Create a new Framebuffer entry. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_create_ex (uint32_t size) |
| Create a new Framebuffer entry. | |
| uint32_t STDCALL | framebuffer_device_destroy (FRAMEBUFFER_DEVICE *framebuffer) |
| Destroy an existing Framebuffer entry. | |
| uint32_t STDCALL | framebuffer_device_register (FRAMEBUFFER_DEVICE *framebuffer) |
| Register a new Framebuffer in the Framebuffer table. | |
| uint32_t STDCALL | framebuffer_device_deregister (FRAMEBUFFER_DEVICE *framebuffer) |
| Deregister a Framebuffer from the Framebuffer table. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_find (uint32_t framebufferid) |
| Find a framebuffer device by ID in the framebuffer table. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_find_by_name (const char *name) |
| Find a framebuffer device by name in the framebuffer table. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_find_by_description (const char *description) |
| Find a framebuffer device by description in the framebuffer table. | |
| uint32_t STDCALL | framebuffer_device_enumerate (framebuffer_enumerate_cb callback, void *data) |
| Enumerate all framebuffer devices in the framebuffer table. | |
| uint32_t STDCALL | framebuffer_device_notification (FRAMEBUFFER_DEVICE *framebuffer, framebuffer_notification_cb callback, void *data, uint32_t notification, uint32_t flags) |
| Register a notification for framebuffer device changes. | |
| uint32_t STDCALL | framebuffer_device_get_count (void) |
| Get the current framebuffer device count. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_get_default (void) |
| Get the current default framebuffer device. | |
| uint32_t STDCALL | framebuffer_device_set_default (FRAMEBUFFER_DEVICE *framebuffer) |
| Set the current default framebuffer device. | |
| FRAMEBUFFER_DEVICE *STDCALL | framebuffer_device_check (FRAMEBUFFER_DEVICE *framebuffer) |
| Check if the supplied Framebuffer device is in the Framebuffer table. | |
| uint32_t STDCALL | framebuffer_device_swap (uint32_t value) |
| No longer required (See ColorDefaultToFormat and ColorFormatToDefault). | |
| uint32_t STDCALL | framebuffer_type_to_string (uint32_t framebuffertype, char *string, uint32_t len) |
| Convert a Framebuffer type value to a string. | |
| uint32_t STDCALL | framebuffer_state_to_string (uint32_t framebufferstate, char *string, uint32_t len) |
| Convert a Framebuffer state value to a string. | |
| void STDCALL | framebuffer_device_hide_cursor (FRAMEBUFFER_DEVICE *framebuffer) |
| Restore the framebuffer area under the cursor from the cursor buffer. | |
| void STDCALL | framebuffer_device_show_cursor (FRAMEBUFFER_DEVICE *framebuffer) |
| Save the framebuffer area under the cursor to the cursor buffer and merge the cursor input with it to create the cursor output. Put the output to the framebuffer. | |
| uint32_t STDCALL | framebuffer_cursor_to_string (uint32_t state, char *string, uint32_t len) |
| uint32_t STDCALL | framebuffer_depth_to_string (uint32_t depth, char *string, uint32_t len) |
| uint32_t STDCALL | framebuffer_order_to_string (uint32_t order, char *string, uint32_t len) |
| uint32_t STDCALL | framebuffer_mode_to_string (uint32_t mode, char *string, uint32_t len) |
| uint32_t STDCALL | framebuffer_rotation_to_string (uint32_t rotation, char *string, uint32_t len) |
| #define FRAMEBUFFER_NAME_PREFIX "Framebuffer" |
Name prefix for Framebuffer Devices.
Framebuffer specific constants
| #define FRAMEBUFFER_TYPE_NONE 0 |
Framebuffer Device Types
| #define FRAMEBUFFER_TYPE_HARDWARE 1 |
| #define FRAMEBUFFER_TYPE_VIRTUAL 2 |
| #define FRAMEBUFFER_TYPE_MAX 2 |
| #define FRAMEBUFFER_STATE_DISABLED 0 |
Framebuffer Device States
| #define FRAMEBUFFER_STATE_ENABLED 1 |
| #define FRAMEBUFFER_STATE_MAX 1 |
| #define FRAMEBUFFER_CURSOR_DISABLED 0 |
Framebuffer Cursor States
| #define FRAMEBUFFER_CURSOR_ENABLED 1 |
| #define FRAMEBUFFER_FLAG_NONE 0x00000000 |
Framebuffer Device Flags
| #define FRAMEBUFFER_FLAG_DMA 0x00000001 |
If set the framebuffer supports DMA for read/write operations.
| #define FRAMEBUFFER_FLAG_MARK 0x00000002 |
If set the framebuffer requires mark after write operations.
| #define FRAMEBUFFER_FLAG_COMMIT 0x00000004 |
If set the framebuffer requires commit after write operations.
| #define FRAMEBUFFER_FLAG_BLANK 0x00000008 |
If set the framebuffer supports blanking the screen.
| #define FRAMEBUFFER_FLAG_CACHED 0x00000010 |
If set framebuffer is in cached memory and cache cleaning should be used.
| #define FRAMEBUFFER_FLAG_SWAP 0x00000020 |
If set framebuffer requires byte order of colors to be reversed (BGR <-> RGB).
| #define FRAMEBUFFER_FLAG_BACKLIGHT 0x00000040 |
If set the framebuffer supports setting the backlight brightness.
| #define FRAMEBUFFER_FLAG_VIRTUAL 0x00000080 |
If set the framebuffer supports virtual width and height.
| #define FRAMEBUFFER_FLAG_OFFSETX 0x00000100 |
If set the framebuffer supports virtual offset X (Horizontal Pan/Flip etc).
| #define FRAMEBUFFER_FLAG_OFFSETY 0x00000200 |
If set the framebuffer supports virtual offset Y (Vertical Pan/Flip etc).
| #define FRAMEBUFFER_FLAG_SYNC 0x00000400 |
If set the framebuffer supports waiting for vertical sync.
| #define FRAMEBUFFER_FLAG_CURSOR 0x00000800 |
If set the framebuffer supports a hardware mouse cursor.
| #define FRAMEBUFFER_TRANSFER_NONE 0x00000000 |
Framebuffer Transfer Flags
| #define FRAMEBUFFER_TRANSFER_DMA 0x00000001 |
Use DMA for transfer operations (Note: Buffers must be DMA compatible).
| typedef struct _FRAMEBUFFER_PALETTE FRAMEBUFFER_PALETTE |
Framebuffer specific types
| typedef struct _FRAMEBUFFER_PROPERTIES FRAMEBUFFER_PROPERTIES |
| typedef struct _FRAMEBUFFER_DEVICE FRAMEBUFFER_DEVICE |
| typedef uint32_t STDCALL(* framebuffer_enumerate_cb) (FRAMEBUFFER_DEVICE *framebuffer, void *data) |
Framebuffer Enumeration Callback
| typedef uint32_t STDCALL(* framebuffer_notification_cb) (DEVICE *device, void *data, uint32_t notification) |
Framebuffer Notification Callback
| typedef uint32_t STDCALL(* framebuffer_device_allocate_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
Framebuffer Device Methods
| typedef uint32_t STDCALL(* framebuffer_device_release_proc) (FRAMEBUFFER_DEVICE *framebuffer) |
| typedef uint32_t STDCALL(* framebuffer_device_blank_proc) (FRAMEBUFFER_DEVICE *framebuffer, BOOL blank) |
| typedef uint32_t STDCALL(* framebuffer_device_read_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_write_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t len, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_mark_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_commit_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t address, uint32_t size, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_get_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_put_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, void *buffer, uint32_t width, uint32_t height, uint32_t skip, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_copy_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x1, uint32_t y1, uint32_t x2, uint32_t y2, uint32_t width, uint32_t height, uint32_t flags) |
| typedef uint32_t STDCALL(* framebuffer_device_fill_rect_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t color, uint32_t flags) |
| typedef void *STDCALL(* framebuffer_device_get_line_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t y) |
| typedef void *STDCALL(* framebuffer_device_get_point_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y) |
| typedef uint32_t STDCALL(* framebuffer_device_wait_sync_proc) (FRAMEBUFFER_DEVICE *framebuffer) |
| typedef uint32_t STDCALL(* framebuffer_device_get_offset_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t *x, uint32_t *y) |
| typedef uint32_t STDCALL(* framebuffer_device_set_offset_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan) |
| typedef uint32_t STDCALL(* framebuffer_device_set_offset_ex_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t x, uint32_t y, BOOL pan, BOOL _switch) |
| typedef uint32_t STDCALL(* framebuffer_device_get_palette_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| typedef uint32_t STDCALL(* framebuffer_device_set_palette_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PALETTE *palette) |
| typedef uint32_t STDCALL(* framebuffer_device_set_backlight_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t brightness) |
| typedef uint32_t STDCALL(* framebuffer_device_set_cursor_proc) (FRAMEBUFFER_DEVICE *framebuffer, uint32_t width, uint32_t height, uint32_t hotspotx, uint32_t hotspoty, void *image, uint32_t len) |
| typedef uint32_t STDCALL(* framebuffer_device_update_cursor_proc) (FRAMEBUFFER_DEVICE *framebuffer, BOOL enabled, int32_t x, int32_t y, BOOL relative) |
| typedef uint32_t STDCALL(* framebuffer_device_get_properties_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| typedef uint32_t STDCALL(* framebuffer_device_set_properties_proc) (FRAMEBUFFER_DEVICE *framebuffer, FRAMEBUFFER_PROPERTIES *properties) |
| uint32_t STDCALL framebuffer_device_allocate | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| FRAMEBUFFER_PROPERTIES * | properties ) |
Allocate and enable a framebuffer device using supplied properties or defaults.
Framebuffer Functions
| Framebuffer | The framebuffer device to allocate |
| Properties | The framebuffer properties (Width/Height/Depth etc) to use for allocation (Optional) |
| uint32_t STDCALL framebuffer_device_release | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Disable and release a framebuffer device.
| Framebuffer | The framebuffer device to release |
| uint32_t STDCALL framebuffer_device_blank | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| BOOL | blank ) |
Blank (Turn off) the display of a framebuffer device.
| Framebuffer | The framebuffer device to blank |
| Blank | Turn off the display if True / Turn on the display if False |
| uint32_t STDCALL framebuffer_device_read | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| void * | buffer, | ||
| uint32_t | len, | ||
| uint32_t | flags ) |
Read one or more pixels from framebuffer device memory to a supplied buffer.
| Framebuffer | The framebuffer device to read from |
| X | The column to start reading from |
| Y | The row to start reading from |
| Buffer | Pointer to a buffer to receive the read pixels |
| Len | The number of pixels to read starting at X,Y |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_write | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| void * | buffer, | ||
| uint32_t | len, | ||
| uint32_t | flags ) |
Write one or more pixels to framebuffer device memory from a supplied buffer.
| Framebuffer | The framebuffer device to write to |
| X | The column to start writing from |
| Y | The row to start writing from |
| Buffer | Pointer to a buffer containing the pixels to write |
| Len | The number of pixels to write starting at X,Y |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_mark | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | flags ) |
Mark a region written to the framebuffer and signal the device to take any necessary actions.
| Framebuffer | The framebuffer device to mark |
| X | The starting column of the mark |
| Y | The starting row of the mark |
| Width | The number of columns to mark |
| Height | The number of rows to mark |
| Flags | The flags used for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_commit | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| size_t | address, | ||
| uint32_t | size, | ||
| uint32_t | flags ) |
Commit a region written to the framebuffer and signal the device to take any necessary actions.
| Framebuffer | The framebuffer device to commit |
| Address | The starting address of the commit |
| Size | The size in bytes of the commit |
| Flags | The flags used for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_get_rect | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| void * | buffer, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | skip, | ||
| uint32_t | flags ) |
Get a rectangular area of pixels from framebuffer memory to a supplied buffer.
| Framebuffer | The framebuffer device to get from |
| X | The starting column of the get |
| Y | The starting row of the get |
| Buffer | Pointer to a block of memory large enough to hold the pixels in a contiguous block of rows |
| Width | The number of columns to get |
| Height | The number of rows to get |
| Skip | The number of pixels to skip in the buffer after each row (Optional) |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_put_rect | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| void * | buffer, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | skip, | ||
| uint32_t | flags ) |
Put a rectangular area of pixels from a supplied buffer to framebuffer memory.
| Framebuffer | The framebuffer device to put to |
| X | The starting column of the put |
| Y | The starting row of the put |
| Buffer | Pointer to a block of memory containing the pixels in a contiguous block of rows |
| Width | The number of columns to put |
| Height | The number of rows to put |
| Skip | The number of pixels to skip in the buffer after each row (Optional) |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_copy_rect | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x1, | ||
| uint32_t | y1, | ||
| uint32_t | x2, | ||
| uint32_t | y2, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | flags ) |
Copy a rectangular area of pixels within framebuffer memory.
| Framebuffer | The framebuffer device to copy on |
| X1 | The starting column to copy from |
| Y1 | The starting row to copy from |
| X2 | The starting column to copy to |
| Y2 | The starting row to copy to |
| Width | The number of columns to copy |
| Height | The number of rows to copy |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| uint32_t STDCALL framebuffer_device_fill_rect | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | color, | ||
| uint32_t | flags ) |
Fill a rectangular area of pixels within framebuffer memory.
| Framebuffer | The framebuffer device to fill on |
| X | The starting column of the fill |
| Y | The starting row of the fill |
| Width | The number of columns to fill |
| Height | The number of rows to fill |
| Color | The color to use for the fill |
| Flags | The flags for the transfer (eg FRAMEBUFFER_TRANSFER_DMA) |
| void *STDCALL framebuffer_device_get_line | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | y ) |
Get the address of the start of a row in framebuffer memory.
| Framebuffer | The framebuffer device to get the start address from |
| Y | The row to get the start address of |
| void *STDCALL framebuffer_device_get_point | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y ) |
Get the address of the specified row and column in framebuffer memory.
| Framebuffer | The framebuffer device to get the address from |
| X | The column to get the start address of |
| Y | The row to get the start address of |
| uint32_t STDCALL framebuffer_device_wait_sync | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Wait for the next vertical sync signal from the display hardware.
| Framebuffer | The framebuffer device to wait for |
| uint32_t STDCALL framebuffer_device_get_offset | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t * | x, | ||
| uint32_t * | y ) |
Get the virtual offset X and Y from a framebuffer device.
| Framebuffer | The framebuffer device to get the offset from |
| X | The X (Column) offset value in pixels returned from the device if successful |
| Y | The Y (Row) offset value in pixels returned from the device if successful |
| uint32_t STDCALL framebuffer_device_set_offset | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| BOOL | pan ) |
Set the virtual offset X and Y of a framebuffer device.
| Framebuffer | The framebuffer device to set the offset for |
| X | The X (Column) offset value in pixels to set |
| Y | The Y (Row) offset value in pixels to set |
| Pan | If True then pan the display without updating the Offset X and/or Y |
| uint32_t STDCALL framebuffer_device_set_offset_ex | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | x, | ||
| uint32_t | y, | ||
| BOOL | pan, | ||
| BOOL | _switch ) |
Set the virtual offset X and Y of a framebuffer device.
| Framebuffer | The framebuffer device to set the offset for |
| X | The X (Column) offset value in pixels to set |
| Y | The Y (Row) offset value in pixels to set |
| Pan | If True then pan the display without updating the Offset X and/or Y |
| Switch | If False then update the Offset X and/or Y without moving the display |
| uint32_t STDCALL framebuffer_device_get_palette | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| FRAMEBUFFER_PALETTE * | palette ) |
Get the 8 bit color palette from a framebuffer device.
| Framebuffer | The framebuffer device to get the palette from |
| Palette | Pointer to a TFramebufferPalette structure for the palette data |
| uint32_t STDCALL framebuffer_device_set_palette | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| FRAMEBUFFER_PALETTE * | palette ) |
Set the 8 bit color palette of a framebuffer device.
| Framebuffer | The framebuffer device to set the palette for |
| Palette | Pointer to a TFramebufferPalette structure for the palette data |
| uint32_t STDCALL framebuffer_device_set_backlight | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | brightness ) |
Set the brightness of the backlight of a framebuffer device.
| Framebuffer | The framebuffer device to set the backlight |
| Brightness | The brightness value to set (Normally 0 to 100) |
| uint32_t STDCALL framebuffer_device_set_cursor | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | width, | ||
| uint32_t | height, | ||
| uint32_t | hotspotx, | ||
| uint32_t | hotspoty, | ||
| void * | image, | ||
| uint32_t | len ) |
Set the mouse cursor image and properties of a framebuffer device.
| Framebuffer | The framebuffer device to set the cursor |
| Width | The width of the cursor image in pixels |
| Height | The height of the cursor image in pixels |
| HotspotX | The X hotspot of the cursor image, where the cursor X location will be (Normally 0) |
| HotspotY | The Y hotspot of the cursor image, where the cursor Y location will be (Normally 0) |
| Image | A buffer containing the cursor image pixels in COLOR_FORMAT_DEFAULT format |
| Len | The length of the image buffer in bytes |
| uint32_t STDCALL framebuffer_device_update_cursor | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| BOOL | enabled, | ||
| int32_t | x, | ||
| int32_t | y, | ||
| BOOL | relative ) |
Update the position and state for the mouse cursor of a framebuffer device.
| Framebuffer | The framebuffer device to update the cursor |
| Enabled | If true then show the cursor else hide it |
| X | The cursor X location in pixels |
| Y | The cursor Y location in pixels |
| Relative | If true then X and Y are considered relative to the current position |
| uint32_t STDCALL framebuffer_device_get_properties | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| FRAMEBUFFER_PROPERTIES * | properties ) |
Get the current properties from a framebuffer device.
| Framebuffer | The framebuffer device to get properties from |
| Properties | Pointer to a TFramebufferProperties structure to return |
| uint32_t STDCALL framebuffer_device_set_properties | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| FRAMEBUFFER_PROPERTIES * | properties ) |
Set the current properties for a framebuffer device.
| Framebuffer | The framebuffer device to set properties for |
| Properties | Pointer to a TFramebufferProperties structure containing the properties |
| BOOL STDCALL framebuffer_device_check_flag | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| uint32_t | flag ) |
Check if a framebuffer device supports a flag value.
| Framebuffer | The framebuffer device to check |
| Flag | The framebuffer flag to check (eg FRAMEBUFFER_FLAG_BACKLIGHT) |
| uint32_t STDCALL framebuffer_device_get_format | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Get the color format of a framebuffer device.
| Framebuffer | The framebuffer device to get from |
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_create | ( | void | ) |
Create a new Framebuffer entry.
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_create_ex | ( | uint32_t | size | ) |
Create a new Framebuffer entry.
| Size | Size in bytes to allocate for new Framebuffer (Including the Framebuffer entry) |
| uint32_t STDCALL framebuffer_device_destroy | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Destroy an existing Framebuffer entry.
| Framebuffer | The framebuffer device to destroy |
| uint32_t STDCALL framebuffer_device_register | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Register a new Framebuffer in the Framebuffer table.
| Framebuffer | The framebuffer device to register |
| uint32_t STDCALL framebuffer_device_deregister | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Deregister a Framebuffer from the Framebuffer table.
| Framebuffer | The framebuffer device to deregister |
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_find | ( | uint32_t | framebufferid | ) |
Find a framebuffer device by ID in the framebuffer table.
| FramebufferId | The ID number of the framebuffer to find |
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_find_by_name | ( | const char * | name | ) |
Find a framebuffer device by name in the framebuffer table.
| Name | The name of the framebuffer to find (eg Framebuffer0) |
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_find_by_description | ( | const char * | description | ) |
Find a framebuffer device by description in the framebuffer table.
| Description | The description of the framebuffer to find (eg BCM2836 Framebuffer) |
| uint32_t STDCALL framebuffer_device_enumerate | ( | framebuffer_enumerate_cb | callback, |
| void * | data ) |
Enumerate all framebuffer devices in the framebuffer table.
| Callback | The callback function to call for each framebuffer in the table |
| Data | A private data pointer to pass to callback for each framebuffer in the table |
| uint32_t STDCALL framebuffer_device_notification | ( | FRAMEBUFFER_DEVICE * | framebuffer, |
| framebuffer_notification_cb | callback, | ||
| void * | data, | ||
| uint32_t | notification, | ||
| uint32_t | flags ) |
Register a notification for framebuffer device changes.
| Framebuffer | The framebuffer device to notify changes for (Optional, pass nil for all framebuffer devices) |
| Callback | The function to call when a notification event occurs |
| Data | A private data pointer to pass to callback when a notification event occurs |
| Notification | The events to register for notification of (eg DEVICE_NOTIFICATION_REGISTER) |
| Flags | The flags to control the notification (eg NOTIFIER_FLAG_WORKER) |
| uint32_t STDCALL framebuffer_device_get_count | ( | void | ) |
Get the current framebuffer device count.
Framebuffer Helper Functions
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_get_default | ( | void | ) |
Get the current default framebuffer device.
| uint32_t STDCALL framebuffer_device_set_default | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Set the current default framebuffer device.
| FRAMEBUFFER_DEVICE *STDCALL framebuffer_device_check | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Check if the supplied Framebuffer device is in the Framebuffer table.
| uint32_t STDCALL framebuffer_device_swap | ( | uint32_t | value | ) |
No longer required (See ColorDefaultToFormat and ColorFormatToDefault).
| uint32_t STDCALL framebuffer_type_to_string | ( | uint32_t | framebuffertype, |
| char * | string, | ||
| uint32_t | len ) |
Convert a Framebuffer type value to a string.
| uint32_t STDCALL framebuffer_state_to_string | ( | uint32_t | framebufferstate, |
| char * | string, | ||
| uint32_t | len ) |
Convert a Framebuffer state value to a string.
| void STDCALL framebuffer_device_hide_cursor | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Restore the framebuffer area under the cursor from the cursor buffer.
| void STDCALL framebuffer_device_show_cursor | ( | FRAMEBUFFER_DEVICE * | framebuffer | ) |
Save the framebuffer area under the cursor to the cursor buffer and merge the cursor input with it to create the cursor output. Put the output to the framebuffer.
| uint32_t STDCALL framebuffer_cursor_to_string | ( | uint32_t | state, |
| char * | string, | ||
| uint32_t | len ) |
| uint32_t STDCALL framebuffer_depth_to_string | ( | uint32_t | depth, |
| char * | string, | ||
| uint32_t | len ) |
| uint32_t STDCALL framebuffer_order_to_string | ( | uint32_t | order, |
| char * | string, | ||
| uint32_t | len ) |
| uint32_t STDCALL framebuffer_mode_to_string | ( | uint32_t | mode, |
| char * | string, | ||
| uint32_t | len ) |
| uint32_t STDCALL framebuffer_rotation_to_string | ( | uint32_t | rotation, |
| char * | string, | ||
| uint32_t | len ) |