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;
89 bool _firstDetentSnapback;
90 bool _lastDetentSnapback;
91 int _whichObjectBackground;
92 bool _emitDetentValEvent;
121 GLSGEN_GlsSwitch_EXPORT
GlsSwitch(
bool generateInstance =
false );
128 static GLSGEN_GlsSwitch_EXPORT
DisplayObject* CreateInstance();
136 virtual GLSGEN_GlsSwitch_EXPORT
void Draw(
void );
152 virtual GLSGEN_GlsSwitch_EXPORT
void SetValue(
int spec, va_list& args );
161 virtual GLSGEN_GlsSwitch_EXPORT
void DetentVal(
const int& val );
166 virtual GLSGEN_GlsSwitch_EXPORT
int DetentVal();
179 bool _emitLimitEvent;
180 bool _emitReleaseEvent;
185 unsigned int _currentCursor;
192 float scale = 1.0f );
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
Definition: dynamic_array.h:62
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:301
bool EmitDetentValEvent()
Definition: gls_switch.h:97
DisplayObject * BackgroundGeometry()
int CalcSwitchPosDCS(DisplayObject *self, DisplayEvent *ev, InputOrientationEnum inputType, int numPositions, float scale=1.0f)
InputOrientationEnum
Enumeration for Input Operators.
Definition: glsutil.h:262
bool EmitLimitEvent()
Definition: gls_switch.h:102
Definition: gls_glo_file.h:982
virtual int WhichObjectBackground()
Definition: gls_switch.h:78
virtual void CopyProperties(DisplayObject *src)
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
virtual void SetValue(int spec, va_list &args)
DisplayObject * DetentGeometry(int detent)
DisplayObject * handle(DisplayEvent *ev)
Macros and helper code to determine what subset of C++11/14/17 is available.
virtual DisplayObject * CloneObject(bool generateNames=false)
GL Studio helper functions.
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
Definition: bmpimage.h:46
bool EmitReleaseEvent()
Definition: gls_switch.h:107
virtual void SetAvailableAttributes(unsigned int value)