3#include "../Components/CSlider.hpp"
4#include "../Components/CText.hpp"
5#include "../Components/Generics/CPOrSButton.hpp"
6#include "../../Utils/Event.hpp"
8#include <UnityEngine/EventSystems/IBeginDragHandler.hpp>
9#include <UnityEngine/EventSystems/IDragHandler.hpp>
10#include <UnityEngine/EventSystems/IEventSystemHandler.hpp>
11#include <UnityEngine/EventSystems/IInitializePotentialDragHandler.hpp>
12#include <UnityEngine/EventSystems/PointerEventData.hpp>
13#include <UnityEngine/UI/CanvasUpdate.hpp>
14#include <UnityEngine/UI/ICanvasElement.hpp>
15#include <UnityEngine/UI/Selectable_SelectionState.hpp>
21 using namespace UnityEngine;
22 using namespace UnityEngine::UI;
23 using namespace UnityEngine::EventSystems;
34 _u::IEventSystemHandler,
35 _u::IBeginDragHandler,
37 _u::IInitializePotentialDragHandler,
66 EColorMode m_ColorMode;
67 bool m_EnableDragging;
71 float m_SeparatorSize;
73 float m_NormalizedValue;
77 float m_DragSmoothing;
78 bool m_LeftMouseButtonPressed;
79 float m_DragStartTime;
80 float m_DragTargetValue;
81 float m_DragCurrentValue;
159 bool MayDrag(_u::PointerEventData* p_EventData);
162 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IInitializePotentialDragHandler,
void, OnInitializePotentialDrag, _u::PointerEventData*);
165 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IBeginDragHandler,
void, OnBeginDrag, _u::PointerEventData*);
168 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IDragHandler,
void, OnDrag, _u::PointerEventData*);
171 void UpdateDrag(_u::PointerEventData* p_EventData);
220 float GetSteppedNormalizedValue();
223 float ConvertFromSteppedNormalizedValue(
float p_NormalizedValue);
228 std::u16string GetTextValue(
float p_ConvertedValue);
Default CSlider component.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerEnterHandler, void, OnPointerEnter, _u::PointerEventData *)
On pointer enter.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, ICanvasElement, _u::Transform *, get_transform)
Get transform.
float GetMaxValue_Impl()
Get max value.
void SetMaxValue_Impl(float p_MaxValue)
Set max value.
void OnValueChanged_Impl(_v::CActionRef< float > p_Functor, bool p_Add=true)
On value changed event.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerUpHandler, void, OnPointerUp, _u::PointerEventData *)
On pointer button up.
float GetIncrements_Impl()
Get increments.
void Init_DefaultCSlider()
On component creation.
_v::Event Init
On component creation.
void SwitchToColorMode_Impl(bool p_H, bool p_S, bool p_V, bool p_O)
Switch to color mode.
void SetIncrements_Impl(float p_Increments)
Set increments.
void SetColor_Impl(_u::Color p_Color)
Set theme color.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, Selectable, void, DoStateTransition, _u::Selectable::SelectionState, bool)
On state transition.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, ICanvasElement, void, GraphicUpdateComplete)
On graphic update complete.
void SetMinValue_Impl(float p_MinValue)
Set min value.
void SetFormatter_Impl(_v::CFuncRef< std::u16string, float > p_CustomFormatter)
Set value formatter.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, ICanvasElement, void, Rebuild, _u::CanvasUpdate)
On canvas rebuild.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, ICanvasElement, bool, IsDestroyed)
Is destroyed.
void ColorModeSetHue_Impl(float p_H)
Color mode set H.
void SetValue_Impl(float p_Value, bool p_Notify=true)
Set value.
float GetMinValue_Impl()
Get min value.
void UpdateStyle()
Update visual style.
void SetNormalizedValue(float p_Value, bool p_Notify=true)
Set normalized value.
void SetInteractable_Impl(bool p_Interactable)
Set button interactable state.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, UIBehaviour, void, OnRectTransformDimensionsChange)
On rect transform dimensions changed.
void SetInteger_Impl(bool p_IsInteger)
Set integer mode.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerDownHandler, void, OnPointerDown, _u::PointerEventData *)
On pointer button down.
DECLARE_INSTANCE_METHOD(void, OnEnable)
On component enable.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, ICanvasElement, void, LayoutComplete)
On layout rebuild.
CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(_u, IPointerExitHandler, void, OnPointerExit, _u::PointerEventData *)
On pointer exit.
void UpdateVisuals()
Update visuals.
float GetValue_Impl()
Get value.
Default generic components implementation.
Various platform utils like Delegate/Action/Function/Event system.