| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/CopyOp> |
|---|
| 14 | #include <osg/Object> |
|---|
| 15 | #include <osgText/String> |
|---|
| 16 | #include <osgText/Text> |
|---|
| 17 | #include <osgWidget/Label> |
|---|
| 18 | #include <osgWidget/Types> |
|---|
| 19 | #include <osgWidget/Window> |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | #ifdef IN |
|---|
| 23 | #undef IN |
|---|
| 24 | #endif |
|---|
| 25 | #ifdef OUT |
|---|
| 26 | #undef OUT |
|---|
| 27 | #endif |
|---|
| 28 | |
|---|
| 29 | BEGIN_OBJECT_REFLECTOR(osgWidget::Label) |
|---|
| 30 | I_DeclaringFile("osgWidget/Label"); |
|---|
| 31 | I_BaseType(osgWidget::Widget); |
|---|
| 32 | I_Method0(osg::Object *, cloneType, |
|---|
| 33 | Properties::VIRTUAL, |
|---|
| 34 | __osg_Object_P1__cloneType, |
|---|
| 35 | "Clone the type of an object, with Object* return type. ", |
|---|
| 36 | "Must be defined by derived classes. "); |
|---|
| 37 | I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, |
|---|
| 38 | Properties::VIRTUAL, |
|---|
| 39 | __osg_Object_P1__clone__C5_osg_CopyOp_R1, |
|---|
| 40 | "Clone an object, with Object* return type. ", |
|---|
| 41 | "Must be defined by derived classes. "); |
|---|
| 42 | I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, |
|---|
| 43 | Properties::VIRTUAL, |
|---|
| 44 | __bool__isSameKindAs__C5_osg_Object_P1, |
|---|
| 45 | "", |
|---|
| 46 | ""); |
|---|
| 47 | I_Method0(const char *, libraryName, |
|---|
| 48 | Properties::VIRTUAL, |
|---|
| 49 | __C5_char_P1__libraryName, |
|---|
| 50 | "return the name of the object's library. ", |
|---|
| 51 | "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); |
|---|
| 52 | I_Method0(const char *, className, |
|---|
| 53 | Properties::VIRTUAL, |
|---|
| 54 | __C5_char_P1__className, |
|---|
| 55 | "return the name of the object's class type. ", |
|---|
| 56 | "Must be defined by derived classes. "); |
|---|
| 57 | I_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", |
|---|
| 58 | ____Label__C5_std_string_R1__C5_std_string_R1, |
|---|
| 59 | "", |
|---|
| 60 | ""); |
|---|
| 61 | I_Constructor2(IN, const osgWidget::Label &, x, IN, const osg::CopyOp &, x, |
|---|
| 62 | ____Label__C5_Label_R1__C5_osg_CopyOp_R1, |
|---|
| 63 | "", |
|---|
| 64 | ""); |
|---|
| 65 | I_Method1(void, parented, IN, osgWidget::Window *, x, |
|---|
| 66 | Properties::VIRTUAL, |
|---|
| 67 | __void__parented__Window_P1, |
|---|
| 68 | "", |
|---|
| 69 | ""); |
|---|
| 70 | I_Method1(void, unparented, IN, osgWidget::Window *, x, |
|---|
| 71 | Properties::VIRTUAL, |
|---|
| 72 | __void__unparented__Window_P1, |
|---|
| 73 | "", |
|---|
| 74 | ""); |
|---|
| 75 | I_Method0(void, positioned, |
|---|
| 76 | Properties::VIRTUAL, |
|---|
| 77 | __void__positioned, |
|---|
| 78 | "", |
|---|
| 79 | ""); |
|---|
| 80 | I_Method1(void, setLabel, IN, const std::string &, x, |
|---|
| 81 | Properties::NON_VIRTUAL, |
|---|
| 82 | __void__setLabel__C5_std_string_R1, |
|---|
| 83 | "", |
|---|
| 84 | ""); |
|---|
| 85 | I_Method1(void, setLabel, IN, const osgText::String &, x, |
|---|
| 86 | Properties::NON_VIRTUAL, |
|---|
| 87 | __void__setLabel__C5_osgText_String_R1, |
|---|
| 88 | "", |
|---|
| 89 | ""); |
|---|
| 90 | I_Method1(void, setFont, IN, const std::string &, x, |
|---|
| 91 | Properties::NON_VIRTUAL, |
|---|
| 92 | __void__setFont__C5_std_string_R1, |
|---|
| 93 | "", |
|---|
| 94 | ""); |
|---|
| 95 | I_Method1(void, setFontSize, IN, unsigned, int, |
|---|
| 96 | Properties::NON_VIRTUAL, |
|---|
| 97 | __void__setFontSize__unsigned, |
|---|
| 98 | "", |
|---|
| 99 | ""); |
|---|
| 100 | I_Method1(void, setFontColor, IN, const osgWidget::Color &, x, |
|---|
| 101 | Properties::NON_VIRTUAL, |
|---|
| 102 | __void__setFontColor__C5_Color_R1, |
|---|
| 103 | "", |
|---|
| 104 | ""); |
|---|
| 105 | I_Method1(void, setShadow, IN, osgWidget::point_type, x, |
|---|
| 106 | Properties::NON_VIRTUAL, |
|---|
| 107 | __void__setShadow__point_type, |
|---|
| 108 | "", |
|---|
| 109 | ""); |
|---|
| 110 | I_Method0(osgWidget::XYCoord, getTextSize, |
|---|
| 111 | Properties::NON_VIRTUAL, |
|---|
| 112 | __XYCoord__getTextSize, |
|---|
| 113 | "", |
|---|
| 114 | ""); |
|---|
| 115 | I_Method0(std::string, getLabel, |
|---|
| 116 | Properties::NON_VIRTUAL, |
|---|
| 117 | __std_string__getLabel, |
|---|
| 118 | "", |
|---|
| 119 | ""); |
|---|
| 120 | I_Method4(void, setFontColor, IN, osgWidget::point_type, r, IN, osgWidget::point_type, g, IN, osgWidget::point_type, b, IN, osgWidget::point_type, a, |
|---|
| 121 | Properties::NON_VIRTUAL, |
|---|
| 122 | __void__setFontColor__point_type__point_type__point_type__point_type, |
|---|
| 123 | "", |
|---|
| 124 | ""); |
|---|
| 125 | I_Method0(osgText::Text *, getText, |
|---|
| 126 | Properties::NON_VIRTUAL, |
|---|
| 127 | __osgText_Text_P1__getText, |
|---|
| 128 | "", |
|---|
| 129 | ""); |
|---|
| 130 | I_Method0(const osgText::Text *, getText, |
|---|
| 131 | Properties::NON_VIRTUAL, |
|---|
| 132 | __C5_osgText_Text_P1__getText, |
|---|
| 133 | "", |
|---|
| 134 | ""); |
|---|
| 135 | I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, |
|---|
| 136 | Properties::VIRTUAL, |
|---|
| 137 | Properties::NON_CONST, |
|---|
| 138 | __void___calculateSize__C5_XYCoord_R1, |
|---|
| 139 | "", |
|---|
| 140 | ""); |
|---|
| 141 | I_SimpleProperty(const std::string &, Font, |
|---|
| 142 | 0, |
|---|
| 143 | __void__setFont__C5_std_string_R1); |
|---|
| 144 | I_SimpleProperty(const osgWidget::Color &, FontColor, |
|---|
| 145 | 0, |
|---|
| 146 | __void__setFontColor__C5_Color_R1); |
|---|
| 147 | I_SimpleProperty(unsigned, FontSize, |
|---|
| 148 | 0, |
|---|
| 149 | __void__setFontSize__unsigned); |
|---|
| 150 | I_SimpleProperty(std::string, Label, |
|---|
| 151 | __std_string__getLabel, |
|---|
| 152 | __void__setLabel__C5_std_string_R1); |
|---|
| 153 | I_SimpleProperty(osgWidget::point_type, Shadow, |
|---|
| 154 | 0, |
|---|
| 155 | __void__setShadow__point_type); |
|---|
| 156 | I_SimpleProperty(osgText::Text *, Text, |
|---|
| 157 | __osgText_Text_P1__getText, |
|---|
| 158 | 0); |
|---|
| 159 | I_SimpleProperty(osgWidget::XYCoord, TextSize, |
|---|
| 160 | __XYCoord__getTextSize, |
|---|
| 161 | 0); |
|---|
| 162 | END_REFLECTOR |
|---|