FLTK
platform_types.h File Reference

Definitions of platform-dependent types. More...

Go to the source code of this file.

Macros

#define FL_COMMAND   opaque
 An alias for FL_CTRL on Windows and X11, or FL_META on MacOS X.
 
#define FL_CONTROL   opaque
 An alias for FL_META on Windows and X11, or FL_CTRL on MacOS X.
 

Typedefs

typedef opaque Fl_Bitmask
 mask
 
typedef opaque fl_intptr_t
 An integral type large enough to store a pointer or a long value. More...
 
typedef opaque Fl_Offscreen
 an offscreen drawing buffer
 
typedef opaque Fl_Region
 a region made of several rectangles
 
typedef opaque FL_SOCKET
 socket or file descriptor
 
typedef opaque fl_uintptr_t
 An unsigned integral type large enough to store a pointer or an unsigned long value. More...
 
typedef opaque GLContext
 an OpenGL graphics context, into which all OpenGL calls are rendered
 

Detailed Description

Definitions of platform-dependent types.

The exact nature of these types varies with the platform. Therefore, portable FLTK applications should not assume these types have a specific size, or that they are pointers.

Typedef Documentation

◆ fl_intptr_t

typedef opaque fl_intptr_t

An integral type large enough to store a pointer or a long value.

A pointer value can be safely cast to fl_intptr_t, and later cast back to its initial pointer type without change to the pointer value. A variable of type fl_intptr_t can also store a long int value.

◆ fl_uintptr_t

typedef opaque fl_uintptr_t

An unsigned integral type large enough to store a pointer or an unsigned long value.

A pointer value can be safely cast to fl_uintptr_t, and later cast back to its initial pointer type without change to the pointer value. A variable of type fl_uintptr_t can also store an unsigned long int value.