]>
git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/winstyle.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Window styles
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _DE_WINSTYLE_H_
13 #define _DE_WINSTYLE_H_
16 #pragma interface "winstyle.h"
22 * A class for storing/generating window styles.
25 class wxWindowStyleClass
;
27 class wxWindowStylePair
29 friend class wxWindowStyleClass
;
35 class wxWindowStyleTable
: public wxObject
39 ~wxWindowStyleTable();
43 void AddStyles(const wxString
& className
, int n
, wxWindowStylePair
*styles
);
44 wxWindowStyleClass
* FindClass(const wxString
& className
) ;
45 bool GenerateStyleStrings(const wxString
& className
, long windowStyle
, char *buf
);
47 // Initialise with all possible styles
52 wxList m_classes
; // A list of wxWindowStyleClass objects, indexed by class name
57 * Classes for storing all the window style identifiers associated with a particular class
60 class wxWindowStyleClass
: public wxObject
63 wxWindowStyleClass(int n
, wxWindowStylePair
*styles
);
64 ~wxWindowStyleClass();
67 void GenerateStyleStrings(long windowStyle
, char *buf
);
68 bool GenerateStyle(char *buf
, long windowStyle
, long flag
, const wxString
& strStyle
);
72 wxWindowStylePair
* m_styles
; // An array of wxWindowStylePair objects