GrafX2 2.9.3227
The ultimate 256-color painting program
osdep.h File Reference

OS Dependend code. More...

+ This graph shows which files directly or indirectly include this file:

Functions

dword GFX2_GetTicks (void)
 Return a number of milliseconds. More...
 
void GFX2_OpenURL (const char *url, unsigned int len)
 Open an URL in the system default browser. More...
 
qword GFX2_DiskFreeSpace (const char *path)
 Disk free space. More...
 
unsigned long Memory_free (void)
 
char * GFX2_GetTextClipboard (word **unicode)
 Get clipboard text content. More...
 

Detailed Description

OS Dependend code.

Function Documentation

◆ GFX2_GetTicks()

◆ GFX2_OpenURL()

void GFX2_OpenURL ( const char *  url,
unsigned int  len 
)

Open an URL in the system default browser.

Parameters
urlURL (ascii)
lenURL length in bytes

References GFX2_ERROR, GFX2_Log(), GFX2_WARNING, and NULL.

Referenced by Window_help_follow_link().

◆ GFX2_DiskFreeSpace()

qword GFX2_DiskFreeSpace ( const char *  path)

Disk free space.

References GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), and haiku_get_free_space().

Referenced by Button_Stats().

◆ Memory_free()

unsigned long Memory_free ( void  )
Returns
the number of RAM bytes available

References GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), and NULL.

Referenced by Button_Stats().

◆ GFX2_GetTextClipboard()

char * GFX2_GetTextClipboard ( word **  unicode)

Get clipboard text content.

Inspired from http://www.libsdl.org/projects/scrap/

Parameters
unicodeNULL for pure ANSI working, or a pointer to get Unicode text data that should be free()'d by the caller
Returns
a ANSI C string that should be free()'d by the caller

References Get_input(), get_paste_board(), GFX2_ERROR, GFX2_Get_Window_Handle(), GFX2_Log(), GFX2_malloc, GFX2_WARNING, haiku_get_clipboard(), NULL, Unicode_strdup(), X11_display, and X11_window.

Referenced by Readline_ex_unicode().