48 #if (defined(GLSGEN_EXPORT_GlsSwitch) || \
49 defined(GLSGEN_IMPORT_GlsSwitch) || \
50 defined(GLS_EXPORT_GENERATED) || \
51 defined(GLS_IMPORT_GENERATED)) \
53 # if defined(GLSGEN_EXPORT_GlsSwitch) || defined(GLS_EXPORT_GENERATED)
54 # define GLSGEN_GlsSwitch_EXPORT __declspec(dllexport)
56 # define GLSGEN_GlsSwitch_EXPORT __declspec(dllimport)
59 # define GLSGEN_GlsSwitch_EXPORT
63 # define LIB_BASE_NAME "gls_switch"
71 GLS_GLSSWITCH_INITIAL_DETENT_VAL = GLS_LAST_INITIALIZER+1,
72 GLS_GLSSWITCH_WHICH_OBJECT_BACKGROUND,
73 GLS_GLSSWITCH_FIRST_DETENT_SNAPBACK,
74 GLS_GLSSWITCH_LAST_DETENT_SNAPBACK,
75 GLS_GLSSWITCH_EMIT_DETENT_VAL_EVENT,
76 GLS_GLSSWITCH_EMIT_LIMIT_EVENT,
77 GLS_GLSSWITCH_EMIT_RELEASE_EVENT
88 friend class GlsSwitchEditor;
92 bool _firstDetentSnapback;
93 bool _lastDetentSnapback;
94 int _whichObjectBackground;
95 bool _emitDetentValEvent;
124 GLSGEN_GlsSwitch_EXPORT
GlsSwitch(
bool generateInstance=
false);
131 static GLSGEN_GlsSwitch_EXPORT
DisplayObject *CreateInstance();
139 virtual GLSGEN_GlsSwitch_EXPORT
void Draw(
void);
155 virtual GLSGEN_GlsSwitch_EXPORT
void SetValue(
int spec,va_list &args);
164 virtual GLSGEN_GlsSwitch_EXPORT
void DetentVal(
const int& val );
169 virtual GLSGEN_GlsSwitch_EXPORT
int DetentVal();
182 bool _emitLimitEvent;
183 bool _emitReleaseEvent;
188 unsigned int _currentCursor;
201 virtual void SetFromGloData(GlsGloFileAttribute &data);
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
Definition: dynamic_array.h:63
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:289
bool EmitDetentValEvent()
Definition: gls_switch.h:100
DisplayObject * BackgroundGeometry()
int CalcSwitchPosDCS(DisplayObject *self, DisplayEvent *ev, InputOrientationEnum inputType, int numPositions, float scale=1.0f)
InputOrientationEnum
Enumeration for Input Operators.
Definition: glsutil.h:268
bool EmitLimitEvent()
Definition: gls_switch.h:105
virtual int WhichObjectBackground()
Definition: gls_switch.h:81
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:110
virtual void SetAvailableAttributes(unsigned int value)