HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPUI_GraphTextBadge.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: OPUI_GraphTextBadge.h (User Interface Library, C++)
7  *
8  * COMMENTS:
9  * A class to describe a node badge.
10  *
11  */
12 
13 #ifndef __OPUI_GraphTextBadge__
14 #define __OPUI_GraphTextBadge__
15 
16 #include "OPUI_API.h"
17 #include <UT/UT_Array.h>
18 #include <UT/UT_Color.h>
19 #include <UT/UT_StringHolder.h>
20 
23 class OP_Context;
24 
33 };
34 
38 };
39 
40 typedef bool (*OPUI_GraphTextBadgeTest)(const OPUI_GraphBadgeInfo &desc,
41  OP_Context &context,
42  UT_StringHolder &text,
43  UT_Color &clr);
45 
47 {
48 public:
50  const UT_StringHolder &pref,
51  const UT_StringHolder &category,
52  const UT_StringHolder &description,
53  const UT_StringHolder &icon,
54  fpreal full_text_max_width,
59 
61  { return myPreferenceName; }
63  { return myPreferenceCategory; }
65  { return myDescription; }
66  const UT_StringHolder &getIcon() const
67  { return myIcon; }
69  { return myFullTextMaxWidth; }
71  { return myDefaultVisibility; }
73  { return myTextBadgeTest; }
74  bool getThreadSafe() const
75  { return myThreadSafe; }
76 
78  { return myVisibility; }
80  { myVisibility = v; }
81 
82  static void addText(OPUI_GraphTextBadgeArray &add_text);
83 
91 
93 
94 private:
95  UT_StringHolder myPreferenceName;
96  UT_StringHolder myPreferenceCategory;
97  UT_StringHolder myDescription;
98  UT_StringHolder myIcon;
99  fpreal myFullTextMaxWidth;
100  OPUI_GraphTextBadgeVisibility myDefaultVisibility;
101  OPUI_GraphTextBadgeVisibility myVisibility;
102  OPUI_GraphTextBadgeTest myTextBadgeTest;
103  bool myThreadSafe;
104 };
105 
106 #endif
107 
cvex test(vector P=0;int unbound=3;export float s=0;export vector Cf=0;)
Definition: test.vfl:11
#define OPUI_API
Definition: OPUI_API.h:10
OPUI_GraphTextBadgeVisibility
OPUI_GraphTextBadgeVisibility getDefaultVisibility() const
const GLdouble * v
Definition: glcorearb.h:837
OPUI_GraphTextBadgeTest getTextBadgeTest() const
static const UT_StringHolder theContextOptionDepsPref
OPUI_GraphTextBadgeVisibility getVisibility() const
static const UT_StringHolder theLopLastModifiedPrimPref
const UT_StringHolder & getPreferenceCategory() const
static const UT_StringHolder theDetailIdPref
static const UT_StringHolder theCommentPref
void setVisibility(OPUI_GraphTextBadgeVisibility v)
OPUI_GraphTextBadgeThreading
UT_Array< OPUI_GraphTextBadge > OPUI_GraphTextBadgeArray
const UT_StringHolder & getIcon() const
const UT_StringHolder & getPreferenceName() const
static const UT_StringHolder theDescriptiveParmPref
fpreal64 fpreal
Definition: SYS_Types.h:277
const UT_StringHolder & getDescription() const
static const UT_StringHolder theMainTextBadgeCategory
static const UT_StringHolder theOutputForViewPref
bool getThreadSafe() const
bool(* OPUI_GraphTextBadgeTest)(const OPUI_GraphBadgeInfo &desc, OP_Context &context, UT_StringHolder &text, UT_Color &clr)
fpreal getFullTextMaxWidth() const
static const UT_StringHolder theLopLayerCountPref