JWM Source Documentation
icon.h
Go to the documentation of this file.
00001 00010 #ifndef ICON_H 00011 #define ICON_H 00012 00013 struct ClientNode; 00014 00016 typedef struct ScaledIconNode { 00017 00018 int width; 00019 int height; 00021 Pixmap image; 00022 Pixmap mask; 00023 #ifdef USE_XRENDER 00024 Picture imagePicture; 00025 Picture alphaPicture; 00026 #endif 00027 00028 struct ScaledIconNode *next; 00029 00030 } ScaledIconNode; 00031 00033 typedef struct IconNode { 00034 00035 char *name; 00036 struct ImageNode *image; 00037 struct ScaledIconNode *nodes; 00038 int useRender; 00040 struct IconNode *next; 00041 struct IconNode *prev; 00043 } IconNode; 00044 00045 extern IconNode emptyIcon; 00046 00047 #ifdef USE_ICONS 00048 00050 void InitializeIcons(); 00051 void StartupIcons(); 00052 void ShutdownIcons(); 00053 void DestroyIcons(); 00060 void AddIconPath(char *path); 00061 00072 void PutIcon(IconNode *icon, Drawable d, int x, int y, 00073 int width, int height); 00074 00078 void LoadIcon(struct ClientNode *np); 00079 00084 IconNode *LoadNamedIcon(const char *name); 00085 00089 void DestroyIcon(IconNode *icon); 00090 00094 IconNode *CreateIcon(); 00095 00096 #else 00097 00098 #define ICON_DUMMY_FUNCTION 0 00099 00100 #define InitializeIcons() ICON_DUMMY_FUNCTION 00101 #define StartupIcons() ICON_DUMMY_FUNCTION 00102 #define ShutdownIcons() ICON_DUMMY_FUNCTION 00103 #define DestroyIcons() ICON_DUMMY_FUNCTION 00104 #define AddIconPath( a ) ICON_DUMMY_FUNCTION 00105 #define PutIcon( a, b, c, d, e, f ) ICON_DUMMY_FUNCTION 00106 #define LoadIcon( a ) ICON_DUMMY_FUNCTION 00107 #define LoadNamedIcon( a ) ICON_DUMMY_FUNCTION 00108 #define DestroyIcon( a ) ICON_DUMMY_FUNCTION 00109 00110 #endif /* USE_ICONS */ 00111 00112 #endif /* ICON_H */ 00113