HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PRM_Item.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: PRM_Item
7  *
8  * COMMENTS:
9  * An extension to PRM_Name which allows icons to be specified.
10  */
11 #ifndef PRM_ITEM_H
12 #define PRM_ITEM_H
13 
14 #include "PRM_API.h"
15 #include "PRM_Name.h"
16 #include <UT/UT_StringHolder.h>
17 
18 class PRM_API PRM_Item : public PRM_Name
19 {
20 public:
21  PRM_Item() = default;
22 
23  PRM_Item(const char *token,
24  const char *label = NULL,
25  const char *iconname = NULL);
26 
27  const char *getIcon() const { return myIcon.c_str(); }
28  void setIcon(const char *s) { myIcon = s; }
29 
30 private:
31  UT_StringHolder myIcon;
32 };
33 
34 #endif
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLdouble s
Definition: glad.h:3009
void setIcon(const char *s)
Definition: PRM_Item.h:28
#define PRM_API
Definition: PRM_API.h:10
const char * getIcon() const
Definition: PRM_Item.h:27