| 12345678910111213141516171819202122232425262728293031323334353637 |
- #pragma once
- #include "BsEditorPrerequisites.h"
- #include "BsGUIFieldBase.h"
- namespace BansheeEngine
- {
- class BS_ED_EXPORT GUIIntField : public TGUIField<GUIIntField>
- {
- public:
- static const String& getGUITypeName();
- GUIIntField(const PrivatelyConstruct& dummy, const GUIContent& labelContent, UINT32 labelWidth,
- const String& labelStyle, const String& inputBoxStyle, const GUILayoutOptions& layoutOptions, bool withLabel);
- INT32 getValue() const;
- void setValue(INT32 value);
- protected:
- virtual ~GUIIntField();
- void updateClippedBounds();
- protected:
- static const INT32 DRAG_SPEED;
- GUIInputBox* mInputBox;
- INT32 mLastDragPos;
- bool mIsDragging;
- bool mIsDragCursorSet;
- bool _hasCustomCursor(const Vector2I position, CursorType& type) const;
- virtual bool mouseEvent(const GUIMouseEvent& ev);
- static bool intFilter(const WString& str);
- };
- }
|