Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

linux/Y/LgiOsDefs.h File Reference

Linux specific types and defines. More...

#include "assert.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <pthread.h>
#include "LgiInc.h"
#include <Y/c++.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_PULSE   (M_SYSTEM+3)
 Implemented to handle timer events 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 IDOK   1
#define IDCANCEL   2
#define IDYES   3
#define IDNO   4
#define MB_OK   5
#define MB_OKCANCEL   6
#define MB_YESNO   7
#define MB_YESNOCANCEL   8
#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.


Detailed Description

Linux specific types and defines.

Author:
Matthew Allen

Define Documentation

#define IDCANCEL   2
 

Standard ID for a "Cancel" button.

See also:
LgiMsg

#define IDNO   4
 

Standard ID for a "No" button.

See also:
LgiMsg

#define IDOK   1
 

Standard ID for an "Ok" button.

See also:
LgiMsg

#define IDYES   3
 

Standard ID for a "Yes" button.

See also:
LgiMsg

#define LGI_VKEY_ALT   0x002
 

The ALT key is pressed

See also:
GKey

#define LGI_VKEY_CTRL   0x001
 

The CTRL key is pressed

See also:
GKey

#define LGI_VKEY_SHIFT   0x004
 

The SHIFT key is pressed

See also:
GKey

#define LGI_VMOUSE_ALT   0x080
 

The alt key is pressed

See also:
GMouse

#define LGI_VMOUSE_CTRL   0x040
 

The ctrl key is pressed

See also:
GMouse

#define LGI_VMOUSE_DOUBLE   0x400
 

The mouse event is a double click

See also:
GMouse

#define LGI_VMOUSE_DOWN   0x200
 

The mouse event is a down click

See also:
GMouse

#define LGI_VMOUSE_LEFT   0x008
 

The left mouse button is pressed

See also:
GMouse

#define LGI_VMOUSE_MIDDLE   0x010
 

The middle mouse button is pressed

See also:
GMouse

#define LGI_VMOUSE_RIGHT   0x020
 

The right mouse button is pressed

See also:
GMouse

#define LGI_VMOUSE_SHIFT   0x100
 

The shift key is pressed

See also:
GMouse

#define M_CHANGE   (M_USER+102)
 

GView change notification.

a = (GView*) Wnd;
b = (int) Flags; // Specific to each GView

#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   5
 

Standard message box with an Ok button.

See also:
LgiMsg

#define MB_OKCANCEL   6
 

Standard message box with Ok and Cancel buttons.

See also:
LgiMsg

#define MB_YESNO   7
 

Standard message box with Yes and No buttons.

See also:
LgiMsg

#define MB_YESNOCANCEL   8
 

Standard message box with Yes, No and Cancel buttons.

See also:
LgiMsg


Function Documentation

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.

Returns:
A pointer to the sub-string or NULL if not found.
Parameters:
a  The string to search
b  The string to find
n  The maximum number of bytes of 'a' to search.


Generated on Wed Oct 26 14:46:54 2005 for Lgi by  doxygen 1.4.1