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_Name.h"
15 #include <UT/UT_String.h>
16 
17 class PRM_API PRM_Item : public PRM_Name
18 {
19 public:
20  /// NOTE: Need an explicit default constructor to work around internal
21  /// compiler error in Visual Studio 2015 Update 3.
22  /// See: https://connect.microsoft.com/VisualStudio/feedback/details/2869531
23  PRM_Item();
24 
25  PRM_Item(const char *token,
26  const char *label = NULL,
27  const char *iconname = NULL);
28  virtual ~PRM_Item();
29 
30  const char *getIcon() const { return myIcon; }
31  void setIcon(const char *s) { myIcon.harden(s); }
32 
33 private:
34  UT_String myIcon;
35 };
36 
37 #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:31
#define PRM_API
Definition: PRM_API.h:10
const char * getIcon() const
Definition: PRM_Item.h:30