Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

fgl::FGColorDialog Class Reference

#include <widgets.h>

Inheritance diagram for fgl::FGColorDialog:

Inheritance graph
[legend]
Collaboration diagram for fgl::FGColorDialog:

Collaboration graph
[legend]
List of all members.

Detailed Description

A nice widget to color selecting by user for various things.
See also:
FGColorPicker
cdialog.png
Examples:

cdialog.cpp.


Public Member Functions

 FGColorDialog (char *capture, ColorDialogCallBack f, FGPixel bgc=PM)
unsigned int *__fastcall GetColors (void)

Static Public Member Functions

static int __fastcall Import (char *name)
static int __fastcall Export (char *name)


Constructor & Destructor Documentation

fgl::FGColorDialog::FGColorDialog char *  capture,
ColorDialogCallBack  f,
FGPixel  bgc = PM
 

Creates a widget for easy and visual color selecting.

Parameters:
capture a FGWindow caption
f the callback function, it is called with selected color
bgc the background color of widget


Member Function Documentation

int __fastcall fgl::FGColorDialog::Export char *  name  )  [static]
 

Loads the current palette from the file. Usable in 8bit color modes only.

Parameters:
name a filename (with the path optionally)
Returns:
false if a file error is occured
Examples:
cdialog.cpp.

unsigned int* __fastcall fgl::FGColorDialog::GetColors void   )  [inline]
 

Returns the raw palette data.

int __fastcall fgl::FGColorDialog::Import char *  name  )  [static]
 

Saves the current palette to the file. Usable in 8bit color modes only.

Parameters:
name a filename (with the path optionally)
Returns:
false if a file error is occured
Examples:
cdialog.cpp.


Generated on Wed Feb 9 11:31:59 2005 for OpenGUI by  doxygen 1.4.0