snmdb_get_color manual page
Table of Contents

NAME

snmdb_get_color - reads the color value of an element

SYNOPSIS

#include <netmgt/netmgt_db.h>

snmdb_get_color(buffer, red, green, blue)
snmdb_buffer *buffer;
int *red;
int *green;
int *blue;

DESCRIPTION

snmdb_get_color finds out the color value in RGB numbers of the element loaded in the buffer. The colors are contained in the glyphColor record in the buffer. If the color is not defined, the value of variables red, green, and blue may not be valid.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

red red color value of the element.

green
green color value of the element.

blue blue color value of the element.

RETURN VALUE

Returns 1 if successful; otherwise, it returns 0.

SEE ALSO

snmdb_set_color(3n), snmdb_delete_color(3n)


Table of Contents