ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
CTextSegmentedControl.hpp
1#pragma once
2
3#include "../UIIl2cpp.hpp"
4
5#include <UnityEngine/MonoBehaviour.hpp>
6#include <UnityEngine/RectOffset.hpp>
7#include <UnityEngine/UI/ContentSizeFitter.hpp>
8#include <UnityEngine/UI/LayoutElement.hpp>
9
10#include <string>
11
12namespace CP_SDK::UI::Components {
13
14 namespace _u
15 {
16 using namespace UnityEngine;
17 using namespace UnityEngine::UI;
18 }
19 namespace _v
20 {
21 using namespace CP_SDK::Utils;
22 }
23
25 class CTextSegmentedControl : public _u::MonoBehaviour
26 {
27 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.Components", CTextSegmentedControl, _u::MonoBehaviour);
28 CP_SDK_IL2CPP_DECLARE_CTOR(CTextSegmentedControl);
29 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(CTextSegmentedControl);
30
31 protected:
32 _v::Action<_v::CActionRef<int>, bool> m_OnActiveChanged;
33
34 _v::Func<int> m_GetActiveText;
35 _v::Func<int> m_GetTextCount;
36
37 _v::Action<int, bool> m_SetActiveText;
39
40 public:
44
45 public:
50
51 public:
56
57 public:
61 CTextSegmentedControl* SetActiveText(int p_Index, bool p_Notify = true);
64 CTextSegmentedControl* SetTexts(const std::vector<std::u16string>& p_Texts);
65
66 };
67
68}
69
70CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::Components::CTextSegmentedControl);
CTextSegmentedControl * SetTexts(const std::vector< std::u16string > &p_Texts)
Set texts.
CTextSegmentedControl * OnActiveChanged(_v::CActionRef< int > p_Functor, bool p_Add=true)
On active text changed event.
CTextSegmentedControl * SetActiveText(int p_Index, bool p_Notify=true)
Set active text.
Generic UI components.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8