EZ
Up Prev Next Contents


5.4 Creating GC

GC EZ_GetGC(unsigned long mask, XGCValues *gcv); void EZ_FreeGC(GC gc);

EZ_GetGC finds or creates a GC with the specified attributes. One should not modify the returned GC.

The next few functions return GC related to the background of a widget.

int EZ_GetBackgroundGC(EZ_Widget *widget,
                  GC *gc, unsigned long *pv,
                  int highlight, int specialhighlight);
int EZ_GetBackgroundTileGC(EZ_Widget *widget,
                  GC *gc, unsigned long *pv,
                  int highlight, int specialhighlight);

int EZ_GetParentBgGC(EZ_Widget *widget,
                     GC *gc, unsigned long *pv);
int EZ_GetParentBgTileGC(EZ_Widget *widget,
                         GC *gc, unsigned long *pv);

The next function return the foreground color of a widget.

unsigned long EZ_GetForegroundPV(EZ_Widget *widget);


Up Prev Next Contents

HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>