| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #pragma once
- #include "BsScriptEnginePrerequisites.h"
- #include "Wrappers/GUI/BsScriptGUIElement.h"
- namespace bs
- {
- /** @addtogroup ScriptInteropEngine
- * @{
- */
- class GUIScrollBar;
-
- /** Interop class between C++ & CLR for GUIScrollBar. */
- class BS_SCR_BE_EXPORT ScriptGUIScrollBar : public TScriptGUIElement<ScriptGUIScrollBar>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIScrollBar")
- private:
- ScriptGUIScrollBar(MonoObject* instance);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static float internal_GetPosition(ScriptGUIElementBaseTBase* nativeInstance);
- static void internal_SetPosition(ScriptGUIElementBaseTBase* nativeInstance, float percent);
- static float internal_GetHandleSize(ScriptGUIElementBaseTBase* nativeInstance);
- static void internal_SetHandleSize(ScriptGUIElementBaseTBase* nativeInstance, float percent);
- static void internal_SetTint(ScriptGUIElementBaseTBase* nativeInstance, Color* color);
- };
- /** Interop class between C++ & CLR for GUIScrollBarH. */
- class BS_SCR_BE_EXPORT ScriptGUIScrollBarH : public TScriptGUIElement<ScriptGUIScrollBarH>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIScrollBarH")
- private:
- ScriptGUIScrollBarH(MonoObject* instance, GUIScrollBarHorz* scrollBar);
- /** Triggers when the user scrolls the scroll bar. */
- void onScroll(float position, float size);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance, MonoString* style, MonoArray* guiOptions);
- typedef void(BS_THUNKCALL *OnScrolledThunkDef) (MonoObject*, float, MonoException**);
- static OnScrolledThunkDef onScrolledThunk;
- };
- /** Interop class between C++ & CLR for GUIScrollBarV. */
- class BS_SCR_BE_EXPORT ScriptGUIScrollBarV : public TScriptGUIElement<ScriptGUIScrollBarV>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIScrollBarV")
- private:
- ScriptGUIScrollBarV(MonoObject* instance, GUIScrollBarVert* scrollBar);
- /** Triggers when the user scrolls the scroll bar. */
- void onScroll(float position, float size);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance, MonoString* style, MonoArray* guiOptions);
- typedef void(BS_THUNKCALL *OnScrolledThunkDef) (MonoObject*, float, MonoException**);
- static OnScrolledThunkDef onScrolledThunk;
- };
- /** Interop class between C++ & CLR for GUIResizeableScrollBarH. */
- class BS_SCR_BE_EXPORT ScriptGUIResizeableScrollBarH : public TScriptGUIElement<ScriptGUIResizeableScrollBarH>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIResizeableScrollBarH")
- private:
- ScriptGUIResizeableScrollBarH(MonoObject* instance, GUIScrollBarHorz* scrollBar);
- /** Triggers when the user scrolls the scroll bar. */
- void onScroll(float position, float size);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance, MonoString* style, MonoArray* guiOptions);
- typedef void(BS_THUNKCALL *OnScrollOrResizeThunkDef) (MonoObject*, float, float, MonoException**);
- static OnScrollOrResizeThunkDef onScrollOrResizeThunk;
- };
- /** Interop class between C++ & CLR for GUIResizeableScrollBarV. */
- class BS_SCR_BE_EXPORT ScriptGUIResizeableScrollBarV : public TScriptGUIElement<ScriptGUIResizeableScrollBarV>
- {
- public:
- SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "GUIResizeableScrollBarV")
- private:
- ScriptGUIResizeableScrollBarV(MonoObject* instance, GUIScrollBarVert* scrollBar);
- /** Triggers when the user scrolls the scroll bar. */
- void onScroll(float position, float size);
- /************************************************************************/
- /* CLR HOOKS */
- /************************************************************************/
- static void internal_CreateInstance(MonoObject* instance, MonoString* style, MonoArray* guiOptions);
- typedef void(BS_THUNKCALL *OnScrollOrResizeThunkDef) (MonoObject*, float, float, MonoException**);
- static OnScrollOrResizeThunkDef onScrollOrResizeThunk;
- };
- /** @} */
- }
|