![]() |
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
![]() |
Functions | |
void | convert_timeval (struct timeval *tv, FXuint ms) |
void | convert_timespec (struct timespec *ts, FXuint ms) |
void | saveEndianness (FXStream &store) |
void | loadEndianness (FXStream &store) |
FXuint | fxrandomseed () |
FXint | fxrand (FXint upperBound, FXint lowerBound=0) |
FXfloat | fxrand (FXfloat upperBound, FXfloat lowerBound=0.0) |
void | setFontOfChildren (FXComposite *w, FXFont *f) |
void | enableWindow (FXWindow *w) |
void | disableWindow (FXWindow *w) |
FXuint | fxfilemode (FXFilePermission permissions) |
FXbool | loadFileImage (const FXString &file, FXImage *img) |
FXbool | loadFileIcon (const FXString &file, FXIcon *ico) |
FXImage * | loadImage (const FXString &file) |
FXIcon * | loadIcon (const FXString &file) |
FXIcon * | blendIcon (FXIcon *icon, FXColor baseColor) |
Variables | |
const FXuchar | fxexversion [3] |
|
time conversion routines.
|
|
|
|
Save the machine dependant endianness value to the stream.
|
|
Load the machine dependant endianness value from the stream, and setup stream to swap the bytes if the stream byte order is non-native to the CPU architecture.
|
|
Create a random seed for use with fxrandom. It is based on the current time, so its a _reasonably_ random seed |
|
A useful function calls for generating random numbers generate an integer/float number between [lowerBound,upperBound).
|
|
Returns a float rather than an int.
|
|
Set the font of all children - this is recursive.
|
|
Enable every widget and its children.
|
|
Disable every widget and its children.
|
|
set the flags appropriately for the platform.
|
|
load an image from a file.
|
|
load an icon from a file.
|
|
Load an image from a file; return an FXImage. ... dont forget to delete the image, when finished with... |
|
Load an icon from a file; return an FXIcon ... dont forget to delete the icon, when finished with... |
|
For anyone that uses images/icons with transparency here is a pretty good function to have. A function I wrote called blendIcon is below. Basically it takes and icon and applies the transparency blend for you and sets the color back to the icon. When using icons/images with gradient transparencies (such as those used for drop shadows) on menus and buttons they will look perfect. It should be somewhat optimized so that no floating point math is needed. Here is a simple example of how to use it: FXPNGIcon *icon = new FXPNGIcon(getApp(), my_icon); blendIcon(icon, getApp()->getBaseColor()); FXButton *button = new FXButton(this, "Click", icon); |
|
Version number that the library version is compiled with.
Definition at line 329 of file fxexdefs.h. |