JWM Source Documentation

group.h
Go to the documentation of this file.
00001 
00010 #ifndef GROUP_H
00011 #define GROUP_H
00012 
00013 struct ClientNode;
00014 struct GroupType;
00015 
00017 typedef enum {
00018    OPTION_INVALID    = 0,
00019    OPTION_STICKY     = 1,  
00020    OPTION_LAYER      = 2,  
00021    OPTION_DESKTOP    = 3,  
00022    OPTION_ICON       = 4,  
00023    OPTION_NOLIST     = 5,  
00024    OPTION_BORDER     = 6,  
00025    OPTION_NOBORDER   = 7,  
00026    OPTION_TITLE      = 8,  
00027    OPTION_NOTITLE    = 9,  
00028    OPTION_PIGNORE    = 10, 
00029    OPTION_MAXIMIZED  = 11, 
00030    OPTION_MINIMIZED  = 12, 
00031    OPTION_SHADED     = 13, 
00032    OPTION_OPACITY    = 14, 
00033    OPTION_MAX_H      = 15, 
00034    OPTION_MAX_V      = 16, 
00035    OPTION_NOFOCUS    = 17  
00036 } OptionType;
00037 
00038 void InitializeGroups();
00039 void StartupGroups();
00040 void ShutdownGroups();
00041 void DestroyGroups();
00042 
00046 struct GroupType *CreateGroup();
00047 
00052 void AddGroupClass(struct GroupType *gp, const char *pattern);
00053 
00058 void AddGroupName(struct GroupType *gp, const char *pattern);
00059 
00064 void AddGroupOption(struct GroupType *gp, OptionType option);
00065 
00071 void AddGroupOptionValue(struct GroupType *gp, OptionType option,
00072    const char *value);
00073 
00077 void ApplyGroups(struct ClientNode *np);
00078 
00079 #endif /* GROUP_H */
00080