![]() |
![]() |
![]() |
![]() |
Draw a beveled box with gradients and two flat colors
int PgDrawGradientBevelBox( PhPoint_t *ul,
PhPoint_t *lr,
PgColor_t light_color,
PgColor_t ul_flat_color,
PgColor_t lr_flat_color,
PgColor_t dark_color,
short depth,
short width,
PgColor_t outline_color,
PgColor_t inline_color,
int flags );
int PgDrawGradientBevelBoxCx( void *dc,
PhPoint_t *ul,
PhPoint_t *lr,
PgColor_t light_color,
PgColor_t ul_flat_color,
PgColor_t lr_flat_color,
PgColor_t dark_color,
short depth,
short width,
PgColor_t outline_color,
PgColor_t inline_color,
int flags );
![]() |
If you specify any of the above arguments as Pg_TRANSPARENT, the value of the argument will be converted to Pg_WHITE. |
ph
These functions draw a beveled box with gradients. PgDrawGradientBevelBox() works on the current draw context, while you can specify the draw context for PgDrawGradientBevelBoxCx().
The only difference between these functions and PgBevelBox() and PgBevelBoxCx() is that in the latter, the upper-left and the lower-right flat colors are identical.
The bits in the flags argument affect the appearance of the beveled box:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PgBevelBox*(), PgColor_t, PgContrastBevelBox*(), PhPoint_t
“Gradients” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |