http://www.w3.org/TR/html4/loose.dtd"> StdGUI Graphic Functions

StdGUI Graphic Functions

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
AUTHOR

NAME

StdGUI Graphic Functions

SYNOPSIS

GRAPHIC *window_graphic(WINODW *p_win);

GRAPHIC *widget_graphic(WINDOW *p_wgt);

GRAPHIC *root_graphic(void);

GRAPHIC *image_graphic(IMAGE *p_img);

GRAPHIC *set_fgcolor(GRAPHIC *p_graph, COLOR p_fgc);

GRAPHIC *set_bgcolor(GRAPHIC *p_graph, COLOR p_bgc);

GRAPHIC *set_pensize(GRAPHIC *p_graph, int p_size);

GRAPHIC *set_penshape(GRAPHIC *p_graph, int p_shape);

GRAPHIC *set_bitsmode(GRAPHIC *p_graph, int p_mode);

GRAPHIC *set_fgalpha(GRAPHIC *p_graph, int p_alpha);

GRAPHIC *set_bgalpha(GRAPHIC *p_graph, int p_alpha);

int get_fgcolor(GRAPHIC *p_graph, COLOR *p_fgc);

int get_bgcolor(GRAPHIC *p_graph, COLOR *p_bgc);

int get_pensize(GRAPHIC *p_graph, int *p_size);

int get_penhape(GRAPHIC *p_graph int *p_shape);

int get_bitsmode(GRAPHIC *p_graph, int *p_mode);

int get_fgalpha(GRAPHIC *p_graph, int *p_alpha);

int get_bgalpha(GRAPHIC *p_graph, int *p_alpha);

DESCRIPTION

The window_graphic(), widget_graphic(), root_graphic and image_graphic() functions return graphics for different GUI elements; windows, widgets, the root window (if the host system support it) or an in-memory image respectively.

The set_fgcolor(), set_bgcolor(), set_pensize, set_penshape(), set_bitsmode(), set_fgalpha() and set_bgalpha() functions set the current values of the graphic properties; foreground color, background color, pen size, pen shape (PEN_SQUARE or PEN_ROUND) and bit transfer mode (BITS_COPY, BITS_INVERT, BITS_OR or BITS_XOR) respectively.

The get_fgcolor(), get_bgcolor(), get_pensize, get_penshape(), get_bitsmode(), get_fgalpha() and get_bgalpha() functions return the current values for the graphic properties.

RETURN VALUES

The window_grphic(), widget_graphic(), root_graphic and image_graphic() functions all return a valid pointer to a graphic structure on success, or NULL on failure.

The set_fgcolor(), set_bgcolor(), set_pensize(), set_penshape() , set_bitsmode(), set_fgalpha() and set_bgalpha() functions all return a the graphic pointer sent to them in the p_graph parameter on success, NULL on failure.

The get_fgcolor(), get_bgcolor(), get_pensize(), get_penshape() , get_bitsmode(), get_fgalpha() and get_bgalpha() functions all return zero (0) on success, non-zero on failure.

AUTHOR

Jeffrey Dutky

dutky@bellatlantic.net or jeff.dutky@gmail.com

http://members.bellatlantic.net/~dutky