ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
CTabControl.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 CTabControl : public _u::MonoBehaviour
26 {
27 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.Components", CTabControl, _u::MonoBehaviour);
28 CP_SDK_IL2CPP_DECLARE_CTOR(CTabControl);
29 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(CTabControl);
30
31 public:
32 using t_TabDefinition = std::tuple<std::u16string, _u::RectTransform*>;
33
34 protected:
35 _v::Action<_v::CActionRef<int>, bool> m_OnActiveChanged;
36
37 _v::Func<int> m_GetActiveTab;
38
39 _v::Action<int, bool> m_SetActiveTab;
41
42 public:
45
46 public:
50 CTabControl* OnActiveChanged(_v::CActionRef<int> p_Functor, bool p_Add = true);
51
52 public:
55
56 public:
60 CTabControl* SetActiveTab(int p_Index, bool p_Notify = true);
63 CTabControl* SetTabs(const std::vector<t_TabDefinition>& p_Tabs);
64
65 };
66
67}
68
69CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::Components::CTabControl);
CTabControl * OnActiveChanged(_v::CActionRef< int > p_Functor, bool p_Add=true)
On active text changed event.
int GetActiveTab()
Get active tab.
CTabControl * SetActiveTab(int p_Index, bool p_Notify=true)
Set active tab.
CTabControl * SetTabs(const std::vector< t_TabDefinition > &p_Tabs)
Set tabs.
Generic UI components.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8