gschem

x_color.c File Reference

#include <config.h>
#include <stdio.h>
#include <math.h>
#include "gschem.h"
Include dependency graph for x_color.c:

Go to the source code of this file.

Functions

void x_color_init (void)
 Initializes the color system for the application.
void x_color_free (void)
 Frees memory used by the color system.
void x_color_allocate (void)
GdkColor * x_get_color (int color)
GdkColor * x_get_darkcolor (int color)
COLOR * x_color_lookup (int color)
COLOR * x_color_lookup_dark (int color)
gchar * x_color_get_name (int index)
gboolean x_color_display_enabled (int index)

Variables

COLOR display_colors [MAX_COLORS]
COLOR display_outline_colors [MAX_COLORS]
static GdkColor * gdk_colors [MAX_COLORS]
static GdkColor * gdk_outline_colors [MAX_COLORS]
static GdkColormap * colormap = NULL

Function Documentation

void x_color_init ( void  )
Function Documentation

Initialises the color maps to defaults.

Definition at line 48 of file x_color.c.

void x_color_free ( void  )
Function Documentation
This function frees the colors from colormap along with black and white.

Definition at line 63 of file x_color.c.

void x_color_allocate ( void  )
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 83 of file x_color.c.

GdkColor* x_get_color ( int  color)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 160 of file x_color.c.

GdkColor* x_get_darkcolor ( int  color)
Todo:
Finish function documentation!!!
Function Documentation
Todo:
this has to change... to the right code

Definition at line 177 of file x_color.c.

COLOR* x_color_lookup ( int  color)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 193 of file x_color.c.

COLOR* x_color_lookup_dark ( int  color)
Todo:
Finish function documentation!!!
Function Documentation
Todo:
this has to change... to the right code

Definition at line 210 of file x_color.c.

gchar* x_color_get_name ( int  index)
Todo:
Finish function documentation!!!
Function Documentation

Definition at line 227 of file x_color.c.

gboolean x_color_display_enabled ( int  index)

Definition at line 245 of file x_color.c.


Variable Documentation

COLOR display_colors[MAX_COLORS]

Definition at line 34 of file x_color.c.

COLOR display_outline_colors[MAX_COLORS]

Definition at line 35 of file x_color.c.

GdkColor* gdk_colors[MAX_COLORS] [static]

Definition at line 37 of file x_color.c.

GdkColor* gdk_outline_colors[MAX_COLORS] [static]

Definition at line 38 of file x_color.c.

GdkColormap* colormap = NULL [static]

Definition at line 40 of file x_color.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines