Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/rail/IRailTextInputHelperImpl.cs
2026-02-21 16:45:37 +08:00

53 lines
1.2 KiB
C#

using System;
namespace rail
{
public class IRailTextInputHelperImpl : RailObject, IRailTextInputHelper
{
internal IRailTextInputHelperImpl(IntPtr cPtr)
{
swigCPtr_ = cPtr;
}
~IRailTextInputHelperImpl()
{
}
public virtual RailResult ShowTextInputWindow(RailTextInputWindowOption options)
{
IntPtr intPtr = ((options != null) ? RAIL_API_PINVOKE.new_RailTextInputWindowOption__SWIG_0() : IntPtr.Zero);
if (options != null)
{
RailConverter.Csharp2Cpp(options, intPtr);
}
try
{
return (RailResult)RAIL_API_PINVOKE.IRailTextInputHelper_ShowTextInputWindow(swigCPtr_, intPtr);
}
finally
{
RAIL_API_PINVOKE.delete_RailTextInputWindowOption(intPtr);
}
}
public virtual void GetTextInputContent(out string content)
{
IntPtr intPtr = RAIL_API_PINVOKE.new_RailString__SWIG_0();
try
{
RAIL_API_PINVOKE.IRailTextInputHelper_GetTextInputContent(swigCPtr_, intPtr);
}
finally
{
content = UTF8Marshaler.MarshalNativeToString(RAIL_API_PINVOKE.RailString_c_str(intPtr));
RAIL_API_PINVOKE.delete_RailString(intPtr);
}
}
public virtual RailResult HideTextInputWindow()
{
return (RailResult)RAIL_API_PINVOKE.IRailTextInputHelper_HideTextInputWindow(swigCPtr_);
}
}
}