JWM Source Documentation
Functions
gradient.h File Reference

Gradient fill functions. More...

Go to the source code of this file.

Functions

void DrawHorizontalGradient (Drawable d, GC g, long fromColor, long toColor, int x, int y, unsigned int width, unsigned int height)
 Draw a horizontal gradient.
 

Detailed Description

Gradient fill functions.

Author
Joe Wingbermuehle
Date
2006

Definition in file gradient.h.

Function Documentation

void DrawHorizontalGradient ( Drawable  d,
GC  g,
long  fromColor,
long  toColor,
int  x,
int  y,
unsigned int  width,
unsigned int  height 
)

Draw a horizontal gradient.

Note that no action is taken if fromColor == toColor.

Parameters
dThe drawable on which to draw the gradient.
gThe graphics context to use.
fromColorThe starting color pixel value.
toColorThe ending color pixel value.
xThe x-coordinate.
yThe y-coordinate.
widthThe width of the area to fill.
heightThe height of the area to fill.

Definition at line 16 of file gradient.c.

References colors, display, GetColor(), JXDrawLine, JXQueryColors, JXSetForeground, and rootColormap.

Referenced by ClearTrayDrawable(), DrawBorderHelper(), DrawButton(), DrawClock(), and LoadGradientBackground().

joewing.net / Projects / JWM