Pyrogenesis
13997
|
#include "precompiled.h"
#include "lib/sysdep/sysdep.h"
#include "lib/sysdep/cursor.h"
#include "lib/external_libraries/libsdl.h"
Go to the source code of this file.
Namespaces | |
gfx | |
Functions | |
Status | sys_clipboard_set (const wchar_t *text) |
wchar_t * | sys_clipboard_get () |
Status | sys_clipboard_free (wchar_t *copy) |
LIB_API Status | gfx::GetVideoMode (int *xres, int *yres, int *bpp, int *freq) |
(useful for choosing a new video mode) More... | |
Status | sys_cursor_create (int w, int h, void *bgra_img, int hx, int hy, sys_cursor *cursor) |
Create a cursor from the given color image. More... | |
Status | sys_cursor_create_empty (sys_cursor *cursor) |
Create a transparent cursor (used to hide the system cursor). More... | |
Status | sys_cursor_set (sys_cursor cursor) |
override the current system cursor. More... | |
Status | sys_cursor_free (sys_cursor cursor) |
destroy the indicated cursor and frees its resources. More... | |
Status | sys_cursor_reset () |
reset any cached cursor data. More... | |
Definition at line 40 of file android.cpp.
wchar_t* sys_clipboard_get | ( | ) |
Definition at line 35 of file android.cpp.
Definition at line 30 of file android.cpp.
Status sys_cursor_create | ( | int | w, |
int | h, | ||
void * | bgra_img, | ||
int | hx, | ||
int | hy, | ||
sys_cursor * | cursor | ||
) |
Create a cursor from the given color image.
w,h | Image dimensions [pixels]. the maximum value is implementation-defined; 32x32 is typical and safe. |
bgra_img | cursor image (BGRA format, bottom-up). It is copied and can be freed after this call returns. |
hx,hy | 'hotspot', i.e. offset from the upper-left corner to the position where mouse clicks are registered. |
cursor | Is 0 if the return code indicates failure, otherwise a valid cursor that must be sys_cursor_free-ed when no longer needed. |
Definition at line 72 of file android.cpp.
Status sys_cursor_create_empty | ( | sys_cursor * | cursor | ) |
Create a transparent cursor (used to hide the system cursor).
cursor | is 0 if the return code indicates failure, otherwise a valid cursor that must be sys_cursor_free-ed when no longer needed. |
Definition at line 85 of file android.cpp.
Status sys_cursor_free | ( | sys_cursor | cursor | ) |
destroy the indicated cursor and frees its resources.
cursor | if currently in use, the default cursor is restored first. |
Definition at line 105 of file android.cpp.
Status sys_cursor_reset | ( | ) |
reset any cached cursor data.
on some systems, this is needed when resetting the SDL video subsystem.
Definition at line 116 of file android.cpp.
Status sys_cursor_set | ( | sys_cursor | cursor | ) |
override the current system cursor.
cursor | can be 0 to restore the default. |
Definition at line 93 of file android.cpp.