JWM Source Documentation
gradient.h File Reference

Gradient fill functions. More...

Go to the source code of this file.


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.

Joe Wingbermuehle

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.

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