JWM Source Documentation
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
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:
-
d The drawable on which to draw the gradient. g The graphics context to use. fromColor The starting color pixel value. toColor The ending color pixel value. x The x-coordinate. y The y-coordinate. width The width of the area to fill. height The height of the area to fill.