41 #ifndef INCLUDED_GLS_BUTTON_H
42 #define INCLUDED_GLS_BUTTON_H
48 #if( defined( GLSGEN_EXPORT_GlsPushButton ) || defined( GLSGEN_IMPORT_GlsPushButton ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
49 && defined( _MSC_VER )
50 # if defined( GLSGEN_EXPORT_GlsPushButton ) || defined( GLS_EXPORT_GENERATED )
51 # define GLSGEN_GlsPushButton_EXPORT __declspec( dllexport )
53 # define GLSGEN_GlsPushButton_EXPORT __declspec( dllimport )
56 # define GLSGEN_GlsPushButton_EXPORT
60 #define LIB_BASE_NAME "gls_push_button"
68 GLS_GLSBUTTON_CHANGE_CALLBACK = GLS_LAST_INITIALIZER + 1,
70 GLS_GLSBUTTON_WHICH_OBJ_POS_UP,
71 GLS_GLSBUTTON_WHICH_OBJ_POS_DOWN,
73 GLS_GLSBUTTON_EMIT_STATE_CHANGE_EVENT
84 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
89 GLSGEN_GlsPushButton_EXPORT
void SetValue(
int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
92 int _whichObjectPosUp;
93 int _whichObjectPosDown;
95 bool _emitStateChangeEvent;
98 unsigned int _currentCursor;
100 friend class GlsPushButtonEditor;
105 GLSGEN_GlsPushButton_EXPORT
GlsPushButton(
bool generateInstance =
false );
107 GLSGEN_GlsPushButton_EXPORT GlsPushButton(
const GlsPushButton& that,
const bool generateNames );
112 static GLSGEN_GlsPushButton_EXPORT
DisplayObject* CreateInstance();
114 virtual GLSGEN_GlsPushButton_EXPORT
void SetAvailableAttributes(
unsigned int value ) DISTI_METHOD_OVERRIDE;
120 virtual GLSGEN_GlsPushButton_EXPORT
void Draw(
void ) DISTI_METHOD_OVERRIDE;
147 virtual GLSGEN_GlsPushButton_EXPORT
void Toggle(
bool toggle );
152 virtual GLSGEN_GlsPushButton_EXPORT
bool Toggle(
void )
const;
156 const Vector& logicalCoords,
158 const Vector& directionVector,
179 virtual GLSGEN_GlsPushButton_EXPORT
void State(
const int& state );
184 virtual GLSGEN_GlsPushButton_EXPORT
int State()
const;
191 virtual
int State() DISTI_FINAL
193 return const_cast<const GlsPushButton*
>( this )->
State();
199 const Vector& logicalCoords,
200 float scale,
const Vector& directionVector,
#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:473
Definition: gls_glo_file.h:988
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46