ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
CTextInput.hpp
1#pragma once
2
3#include "../UIIl2cpp.hpp"
4
5#include <UnityEngine/MonoBehaviour.hpp>
6#include <UnityEngine/RectOffset.hpp>
7#include <UnityEngine/UI/LayoutElement.hpp>
8
9#include <string>
10
11namespace CP_SDK::UI::Components {
12
13 namespace _u
14 {
15 using namespace UnityEngine;
16 using namespace UnityEngine::UI;
17 }
18 namespace _v
19 {
20 using namespace CP_SDK::Utils;
21 }
22
24 class CTextInput : public _u::MonoBehaviour
25 {
26 CP_SDK_IL2CPP_INHERIT("CP_SDK.UI.Components", CTextInput, _u::MonoBehaviour);
27 CP_SDK_IL2CPP_DECLARE_CTOR(CTextInput);
28 CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR(CTextInput);
29
30 protected:
32
34
35 _v::Action<bool> m_SetInteractable;
36 _v::Action<bool> m_SetIsPassword;
37 _v::Action<std::u16string_view> m_SetPlaceHolder;
39
40 public:
43
44 public:
49
50 public:
52 std::u16string_view GetValue();
53
54 public:
57 CTextInput* SetInteractable(bool p_Interactable);
60 CTextInput* SetIsPassword(bool p_IsPassword);
63 CTextInput* SetPlaceHolder(std::u16string_view p_PlaceHolder);
67 CTextInput* SetValue(std::u16string_view p_Value, bool p_Notify = true);
68
69 };
70
71}
72
73CP_SDK_IL2CPP_INHERIT_HELPERS(CP_SDK::UI::Components::CTextInput);
CTextInput * SetPlaceHolder(std::u16string_view p_PlaceHolder)
Set place holder.
CTextInput * SetInteractable(bool p_Interactable)
Set button interactable state.
CTextInput * SetIsPassword(bool p_IsPassword)
Set is password.
CTextInput * OnValueChanged(_v::CActionRef< std::u16string_view > p_Functor, bool p_Add=true)
On value changed event.
CTextInput * SetValue(std::u16string_view p_Value, bool p_Notify=true)
Set value.
std::u16string_view GetValue()
Get value.
Generic UI components.
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8