HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STY_SubjectSelf.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: STY_SubjectSelf.h ( STY Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __STY_SubjectSelf__
12 #define __STY_SubjectSelf__
13 
14 #include "STY_API.h"
15 #include "STY_Subject.h"
16 #include <UT/UT_StringHolder.h>
17 
18 /// ===========================================================================
19 /// Subject that matches self targets and leaves all other targets intact
20 /// for its children to match.
22 {
23 public:
25  STY_SubjectSelf(const char *pre_filter_style_sheet,
26  const char *post_filter_style_sheet);
27  STY_SubjectSelf(const STY_Subject &underlying_subject);
28 
30  getPreFilterStyleSheet() const override;
31 
33  getPostFilterStyleSheet() const override;
34 
37  const STY_TargetHandle &target) const override;
38 
41  const UT_StringHolder &data_name) const override;
42 
43 private:
44  const STY_Subject *mySelfSubject;
45  STY_StyleSheetHandle myPreFilterStyleSheet;
46  STY_StyleSheetHandle myPostFilterStyleSheet;
47 };
48 
49 #endif
50 
virtual STY_TargetMatchStatus matchesStyleTarget(const STY_TargetHandle &target) const =0
Returns the information wheter the subject matches the given target.
Contains information about the style subject match to the style target.
#define STY_API
Definition: STY_API.h:10
virtual STY_StyleSheetHandle getPreFilterStyleSheet() const
virtual STY_BindingDataSourceHandle getOverrideBindingDataSource(const UT_StringHolder &data_name) const
GLenum target
Definition: glcorearb.h:1667
virtual STY_StyleSheetHandle getPostFilterStyleSheet() const