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
61#define LIB_BASE_NAME "gls_switch"
69 GLS_GLSSWITCH_INITIAL_DETENT_VAL = GLS_LAST_INITIALIZER + 1,
70 GLS_GLSSWITCH_WHICH_OBJECT_BACKGROUND,
71 GLS_GLSSWITCH_FIRST_DETENT_SNAPBACK,
72 GLS_GLSSWITCH_LAST_DETENT_SNAPBACK,
73 GLS_GLSSWITCH_EMIT_DETENT_VAL_EVENT,
74 GLS_GLSSWITCH_EMIT_LIMIT_EVENT,
75 GLS_GLSSWITCH_EMIT_RELEASE_EVENT
86 friend class GlsSwitchEditor;
87 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
220 float scale = 1.0f );
Definition: dynamic_array.h:79
Definition: gls_glo_file.h:1243
Definition: gls_switch.h:80
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
int _detentVal
CurrentPosition.
Definition: gls_switch.h:91
bool _emitDetentValEvent
If true, events will be emitted whenever the detent value changes.
Definition: gls_switch.h:95
bool _firstDetentSnapback
If true, the position will snap from the first detent back to the second detent when released.
Definition: gls_switch.h:92
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
virtual void Draw() DISTI_METHOD_OVERRIDE
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
unsigned int _currentCursor
The current cursor used for interaction. Any other cursors are ignored while interacting.
Definition: gls_switch.h:208
GlsSwitch(bool generateInstance=false)
GlsSwitch(const GlsSwitch &that, const bool generateNames)
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
virtual void DetentVal(const int &val)
bool _mouseWasDown
Whether or not the mouse is down on this object.
Definition: gls_switch.h:207
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
bool IsVisibleInScene(const DisplayObject *obj=NULL) const DISTI_METHOD_OVERRIDE
bool _emitReleaseEvent
If true, an event will be emitted when the switch is released.
Definition: gls_switch.h:203
InputOrientationEnum InputType()
void EmitLimitEvent(const bool &value)
Vector _mouseDownOCoords
Stores the object coordinates of the last mouse down on this object.
Definition: gls_switch.h:205
DisplayObject * BackgroundGeometry() const
virtual void WhichObjectBackground(const int &val)
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
int _whichObjectBackground
the geometry index (plus 1) to serve as the switch background. 0 is no background object.
Definition: gls_switch.h:94
bool EmitDetentValEvent()
Definition: gls_switch.h:102
void EmitReleaseEvent(const bool &value)
virtual int WhichObjectBackground() const
bool _emitLimitEvent
If true, an event will be emitted when the switch hits its maximum or minimum state.
Definition: gls_switch.h:202
bool EmitReleaseEvent()
Definition: gls_switch.h:116
bool _lastDetentSnapback
If true, the position will snap from the last detent back to the second to last detent when released.
Definition: gls_switch.h:93
int CalcSwitchPosDCS(DisplayObject *self, DisplayEvent *ev, InputOrientationEnum inputType, int numPositions, float scale=1.0f)
bool EmitLimitEvent()
Definition: gls_switch.h:109
DisplayObject * DetentGeometry(int detent) const
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:544
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:235
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:457
#define DISTI_FINAL
Macro to wrap the final keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:216
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:214
#define GLSGEN_GlsSwitch_EXPORT
Provides support for creating DLLs.
Definition: gls_switch.h:56
GL Studio helper functions.
The disti::Group class. Implements groups of objects.
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
InputOrientationEnum
Enumeration for Input Operators.
Definition: glsutil.h:271