HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
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 
86 
88 
89 private:
90  UT_StringHolder myPreferenceName;
91  UT_StringHolder myPreferenceCategory;
92  UT_StringHolder myDescription;
93  UT_StringHolder myIcon;
94  fpreal myFullTextMaxWidth;
95  OPUI_GraphTextBadgeVisibility myDefaultVisibility;
96  OPUI_GraphTextBadgeVisibility myVisibility;
97  OPUI_GraphTextBadgeTest myTextBadgeTest;
98  bool myThreadSafe;
99 };
100 
101 #endif
102 
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:836
OPUI_GraphTextBadgeTest getTextBadgeTest() const
OPUI_GraphTextBadgeVisibility getVisibility() const
const UT_StringHolder & getPreferenceCategory() const
static const UT_StringHolder theCommentPref
void setVisibility(OPUI_GraphTextBadgeVisibility v)
OPUI_GraphTextBadgeThreading
UT_Array< OPUI_GraphTextBadge > OPUI_GraphTextBadgeArray
bool(* OPUI_GraphTextBadgeTest)(const OPUI_GraphProxyDescriptor &desc, OP_Context &context, UT_StringHolder &text, UT_Color &clr)
const UT_StringHolder & getIcon() const
const UT_StringHolder & getPreferenceName() const
double fpreal
Definition: SYS_Types.h:269
static const UT_StringHolder theDescriptiveParmPref
const UT_StringHolder & getDescription() const
static const UT_StringHolder theMainTextBadgeCategory
bool getThreadSafe() const
fpreal getFullTextMaxWidth() const