GrafX2 2.9.3227
The ultimate 256-color painting program
|
OS Dependend code. More...
#include <sys/time.h>
#include "haiku.h"
#include "struct.h"
#include "input.h"
#include "screen.h"
#include "unicode.h"
#include "gfx2log.h"
#include "gfx2mem.h"
#include <kernel/OS.h>
Functions | |
dword | GFX2_GetTicks (void) |
Return a number of milliseconds. More... | |
void | GFX2_OpenURL (const char *buffer, 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... | |
OS Dependend code.
dword GFX2_GetTicks | ( | void | ) |
Return a number of milliseconds.
References NULL.
Referenced by Airbrush_12_2(), Airbrush_1_0(), Airbrush_2_0(), Button_Anim_continuous_next(), Button_Anim_continuous_prev(), Button_Select_forecolor(), Check_timer(), Color_cycling(), Delay_with_active_mouse(), Freehand_mode2_1_0(), Freehand_mode2_1_2(), Freehand_mode2_2_0(), Freehand_mode2_2_2(), Init_chrono(), Init_permanent_draw(), Mouse_Emulation(), Pixel_figure_permanent(), Rotate_safety_backups(), Tilemap_update(), Transparency_set(), and Window_clicked_button().
void GFX2_OpenURL | ( | const char * | url, |
unsigned int | len | ||
) |
Open an URL in the system default browser.
url | URL (ascii) |
len | URL length in bytes |
References GFX2_ERROR, GFX2_Log(), GFX2_WARNING, and NULL.
Referenced by Window_help_follow_link().
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().
unsigned long Memory_free | ( | void | ) |
References GFX2_DEBUG, GFX2_ERROR, GFX2_Log(), and NULL.
Referenced by Button_Stats().
char * GFX2_GetTextClipboard | ( | word ** | unicode | ) |
Get clipboard text content.
Inspired from http://www.libsdl.org/projects/scrap/
unicode | NULL for pure ANSI working, or a pointer to get Unicode text data 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().