snmdb_set_color manual page
Table of Contents

NAME

snmdb_set_color - sets the color of an element

SYNOPSIS

#include <netmgt/netmgt_db.h>

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

DESCRIPTION

snmdb_set_color changes the color value in RGB numbers of the element in the buffer. The colors are contained in the glyphColor record in the buffer. If the glyphColor record is not already defined in the buffer, a new one is created.

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, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_get_color(3n), snmdb_delete_color(3n)


Table of Contents