48 #if( defined( GLSGEN_EXPORT_GlsSwitch ) || defined( GLSGEN_IMPORT_GlsSwitch ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
49 && defined( _MSC_VER )
50 # if defined( GLSGEN_EXPORT_GlsSwitch ) || defined( GLS_EXPORT_GENERATED )
51 # define GLSGEN_GlsSwitch_EXPORT __declspec( dllexport )
53 # define GLSGEN_GlsSwitch_EXPORT __declspec( dllimport )
56 # define GLSGEN_GlsSwitch_EXPORT
60 #define LIB_BASE_NAME "gls_switch"
68 GLS_GLSSWITCH_INITIAL_DETENT_VAL = GLS_LAST_INITIALIZER + 1,
69 GLS_GLSSWITCH_WHICH_OBJECT_BACKGROUND,
70 GLS_GLSSWITCH_FIRST_DETENT_SNAPBACK,
71 GLS_GLSSWITCH_LAST_DETENT_SNAPBACK,
72 GLS_GLSSWITCH_EMIT_DETENT_VAL_EVENT,
73 GLS_GLSSWITCH_EMIT_LIMIT_EVENT,
74 GLS_GLSSWITCH_EMIT_RELEASE_EVENT
85 friend class GlsSwitchEditor;
86 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
91 bool _firstDetentSnapback;
92 bool _lastDetentSnapback;
93 int _whichObjectBackground;
94 bool _emitDetentValEvent;
123 GLSGEN_GlsSwitch_EXPORT
GlsSwitch(
bool generateInstance =
false );
130 static GLSGEN_GlsSwitch_EXPORT
DisplayObject* CreateInstance();
138 virtual GLSGEN_GlsSwitch_EXPORT
void Draw(
void ) DISTI_METHOD_OVERRIDE;
154 virtual GLSGEN_GlsSwitch_EXPORT
void SetValue(
int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
167 virtual GLSGEN_GlsSwitch_EXPORT
void DetentVal( const
int& val );
172 virtual GLSGEN_GlsSwitch_EXPORT
int DetentVal();
195 bool _emitLimitEvent;
196 bool _emitReleaseEvent;
201 unsigned int _currentCursor;
208 float scale = 1.0f );
214 virtual GLSGEN_GlsSwitch_EXPORT
void SetFromGloData(
GlsGloFileAttribute& data ) DISTI_METHOD_OVERRIDE;
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
Definition: dynamic_array.h:66
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:471
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
bool EmitDetentValEvent()
Definition: gls_switch.h:99
virtual int WhichObjectBackground() const
int CalcSwitchPosDCS(DisplayObject *self, DisplayEvent *ev, InputOrientationEnum inputType, int numPositions, float scale=1.0f)
InputOrientationEnum
Enumeration for Input Operators.
Definition: glsutil.h:262
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
bool EmitLimitEvent()
Definition: gls_switch.h:104
Definition: gls_glo_file.h:988
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
Definition: gls_switch.h:78
virtual void Draw(void) DISTI_METHOD_OVERRIDE
DisplayObject * BackgroundGeometry() const
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
bool IsVisibleInScene(const DisplayObject *obj=NULL) const DISTI_METHOD_OVERRIDE
DisplayObject * DetentGeometry(int detent) const
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
Macros and helper code to determine what subset of C++11/14/17 is available.
GL Studio helper functions.
Definition: bmpimage.h:46
bool EmitReleaseEvent()
Definition: gls_switch.h:109
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE