mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Code update for Window Maker version 0.50.0
Read changes in ChangeLog and NEWS
This commit is contained in:
@@ -44,20 +44,15 @@
|
||||
#define WTEX_MVGRADIENT ((1<<6)|WREL_BORDER_MASK)
|
||||
#define WTEX_MDGRADIENT ((1<<7)|WREL_BORDER_MASK)
|
||||
#define WTEX_PIXMAP (1<<8)
|
||||
#define WTEX_THGRADIENT ((1<<9)|WREL_BORDER_MASK)
|
||||
#define WTEX_TVGRADIENT ((1<<10)|WREL_BORDER_MASK)
|
||||
#define WTEX_TDGRADIENT ((1<<11)|WREL_BORDER_MASK)
|
||||
|
||||
/* pixmap subtypes */
|
||||
#define WTP_TILE 2
|
||||
#define WTP_SCALE 4
|
||||
#define WTP_CENTER 6
|
||||
|
||||
/*
|
||||
* (solid <color>)
|
||||
* (hgradient <color> <color>)
|
||||
* (vgradient <color> <color>)
|
||||
* (dgradient <color> <color>)
|
||||
* (pixmap <file> <mode>)
|
||||
*/
|
||||
|
||||
|
||||
typedef struct {
|
||||
short type; /* type of texture */
|
||||
@@ -89,8 +84,8 @@ typedef struct WTexGradient {
|
||||
XColor normal;
|
||||
GC normal_gc;
|
||||
|
||||
XColor color1;
|
||||
XColor color2;
|
||||
RColor color1;
|
||||
RColor color2;
|
||||
} WTexGradient;
|
||||
|
||||
|
||||
@@ -113,16 +108,17 @@ typedef struct WTexPixmap {
|
||||
struct RImage *pixmap;
|
||||
} WTexPixmap;
|
||||
|
||||
typedef struct WTexCompose {
|
||||
typedef struct WTexTGradient {
|
||||
short type;
|
||||
char subtype;
|
||||
XColor normal;
|
||||
GC normal_gc;
|
||||
|
||||
union WTexture *back;
|
||||
union WTexture *fore;
|
||||
RColor color1;
|
||||
RColor color2;
|
||||
struct RImage *pixmap;
|
||||
int opacity;
|
||||
} WTexCompose;
|
||||
} WTexTGradient;
|
||||
|
||||
typedef union WTexture {
|
||||
WTexAny any;
|
||||
@@ -130,13 +126,14 @@ typedef union WTexture {
|
||||
WTexGradient gradient;
|
||||
WTexMGradient mgradient;
|
||||
WTexPixmap pixmap;
|
||||
WTexCompose compose;
|
||||
WTexTGradient tgradient;
|
||||
} WTexture;
|
||||
|
||||
|
||||
WTexSolid *wTextureMakeSolid(WScreen*, XColor*);
|
||||
WTexGradient *wTextureMakeGradient(WScreen*, int, XColor*, XColor*);
|
||||
WTexGradient *wTextureMakeGradient(WScreen*, int, RColor*, RColor*);
|
||||
WTexMGradient *wTextureMakeMGradient(WScreen*, int, RColor**);
|
||||
WTexTGradient *wTextureMakeTGradient(WScreen*, int, RColor*, RColor*, char *, int);
|
||||
WTexPixmap *wTextureMakePixmap(WScreen *scr, int style, char *pixmap_file,
|
||||
XColor *color);
|
||||
void wTextureDestroy(WScreen*, WTexture*);
|
||||
|
||||
Reference in New Issue
Block a user