#include <string.h>
#include "assert.h"
#include "LgiDefs.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include "LgiInc.h"
#include "xcb/xcb.h"
#include "pango/pango.h"
#include "pango/pangocairo.h"
#include "cairo/cairo-xcb.h"
Go to the source code of this file.
Defines | |
| #define | LgiSleep(i) _lgi_sleep(i) |
| Sleep the current thread for i milliseconds. | |
| #define | LgiYield() LgiApp->Run(false) |
| Process any pending messages in the applications message que and then return. | |
| #define | LGI_FileDropFormat "text/uri-list" |
| Drag and drop format for a file. | |
| #define | SUNKEN 1 |
| Edge type: Sunken. | |
| #define | RAISED 2 |
| Edge type: Raised. | |
| #define | CHISEL 3 |
| Edge type: Chiseled. | |
| #define | FLAT 4 |
| Edge type: Flat. | |
| #define | DIR_CHAR '/' |
| The directory separator character on Linux as a char. | |
| #define | DIR_STR "/" |
| The directory separator character on Linux as a string. | |
| #define | EOL_SEQUENCE "\n" |
| The standard end of line string for Linux. | |
| #define | IsSlash(c) (((c)=='/')OR((c)=='\\')) |
| Tests a char for being a slash. | |
| #define | IsQuote(c) (((c)=='\"')OR((c)=='\'')) |
| Tests a char for being a quote. | |
| #define | LGI_PATH_SEPARATOR ":" |
| The path list separator character for Linux. | |
| #define | LGI_ALL_FILES "*" |
| The pattern that matches all files in Linux. | |
| #define | LGI_LIBRARY_EXT "so" |
| The stardard extension for dynamically linked code. | |
| #define | M_SYSTEM (1000) |
| Base point for system messages. | |
| #define | M_CLOSE (M_SYSTEM+1) |
| Message that indicates the user is trying to close a top level window. | |
| #define | M_X11_INVALIDATE (M_SYSTEM+2) |
| Implemented to handle invalide requests in the GUI thread. | |
| #define | M_X11_REPARENT (M_SYSTEM+4) |
| Implemented to handle paint requests in the GUI thread. | |
| #define | M_USER (M_SYSTEM+1000) |
| Minimum value for application defined message ID's. | |
| #define | M_MOUSEENTER (M_USER+100) |
| Mouse enter event. | |
| #define | M_MOUSEEXIT (M_USER+101) |
| Mouse exit event. | |
| #define | M_CHANGE (M_USER+102) |
| GView change notification. | |
| #define | M_DESCRIBE (M_USER+103) |
| Pass a text message up to the UI to descibe whats happening. | |
| #define | M_PULSE (M_USER+114) |
| Implemented to handle timer events in the GUI thread. | |
| #define | IDOK 1 |
| #define | IDCANCEL 2 |
| #define | IDYES 6 |
| #define | IDNO 7 |
| #define | MB_OK 0 |
| #define | MB_OKCANCEL 1 |
| #define | MB_YESNOCANCEL 3 |
| #define | MB_YESNO 4 |
| #define | LGI_VKEY_CTRL 0x001 |
| #define | LGI_VKEY_ALT 0x002 |
| #define | LGI_VKEY_SHIFT 0x004 |
| #define | LGI_VMOUSE_LEFT 0x008 |
| #define | LGI_VMOUSE_MIDDLE 0x010 |
| #define | LGI_VMOUSE_RIGHT 0x020 |
| #define | LGI_VMOUSE_CTRL 0x040 |
| #define | LGI_VMOUSE_ALT 0x080 |
| #define | LGI_VMOUSE_SHIFT 0x100 |
| #define | LGI_VMOUSE_DOWN 0x200 |
| #define | LGI_VMOUSE_DOUBLE 0x400 |
Functions | |
| LgiFunc char * | strnistr (char *a, char *b, int n) |
| Search for a case insensitive sub-string in another string. | |
| LgiFunc int | FormatToInt (char *s) |
| Convert a string d'n'd format to an OS dependant integer. | |
| LgiFunc char * | FormatToStr (int f) |
| Convert a Os dependant integer d'n'd format to a string. | |
| #define IDCANCEL 2 |
Standard ID for a "Cancel" button.
| #define IDNO 7 |
Standard ID for a "No" button.
| #define IDOK 1 |
Standard ID for an "Ok" button.
| #define IDYES 6 |
Standard ID for a "Yes" button.
| #define LGI_VKEY_ALT 0x002 |
The ALT key is pressed
| #define LGI_VKEY_CTRL 0x001 |
The CTRL key is pressed
| #define LGI_VKEY_SHIFT 0x004 |
The SHIFT key is pressed
| #define LGI_VMOUSE_ALT 0x080 |
The alt key is pressed
| #define LGI_VMOUSE_CTRL 0x040 |
The ctrl key is pressed
| #define LGI_VMOUSE_DOUBLE 0x400 |
The mouse event is a double click
| #define LGI_VMOUSE_DOWN 0x200 |
The mouse event is a down click
| #define LGI_VMOUSE_LEFT 0x008 |
The left mouse button is pressed
| #define LGI_VMOUSE_MIDDLE 0x010 |
The middle mouse button is pressed
| #define LGI_VMOUSE_RIGHT 0x020 |
The right mouse button is pressed
| #define LGI_VMOUSE_SHIFT 0x100 |
The shift key is pressed
| #define M_CHANGE (M_USER+102) |
| #define M_DESCRIBE (M_USER+103) |
Pass a text message up to the UI to descibe whats happening.
a = (GView*) Wnd;
b = (char*) Text; // description from window
| #define M_MOUSEENTER (M_USER+100) |
Mouse enter event.
a = bool Inside; // is the mouse inside the client area?
b = MAKELONG(x, y); // mouse location
| #define M_MOUSEEXIT (M_USER+101) |
Mouse exit event.
a = bool Inside; // is the mouse inside the client area?
b = MAKELONG(x, y); // mouse location
| #define MB_OK 0 |
Standard message box with an Ok button.
| #define MB_OKCANCEL 1 |
Standard message box with Ok and Cancel buttons.
| #define MB_YESNO 4 |
Standard message box with Yes and No buttons.
| #define MB_YESNOCANCEL 3 |
Standard message box with Yes, No and Cancel buttons.
| LgiFunc char* strnistr | ( | char * | a, | |
| char * | b, | |||
| int | n | |||
| ) |
Search for a case insensitive sub-string in another string.
The search is not case sensitive.
| a | The string to search |
| b | The string to find |
| n | The maximum number of bytes of 'a' to search. |
1.5.7.1