private igBegin ( string name, bool &p_opened, WindowFlags flags ) : bool | ||
name | string | |
p_opened | bool | |
flags | WindowFlags | |
return | bool |
public static bool Begin(string name, ImGuiWindowFlags flags) { int name_byteCount = Encoding.UTF8.GetByteCount(name); byte *native_name = stackalloc byte[name_byteCount + 1]; fixed(char *name_ptr = name) { int native_name_offset = Encoding.UTF8.GetBytes(name_ptr, name.Length, native_name, name_byteCount); native_name[native_name_offset] = 0; } byte *p_open = null; byte ret = ImGuiNative.igBegin(native_name, p_open, flags); return(ret != 0); }
public static bool Begin(string windowTitle, ref bool opened, ImGuiWindowFlags flags = ImGuiWindowFlags.Default) { return(ImGuiNative.igBegin(windowTitle, ref opened, flags)); }
public static bool Begin(string windowTitle, ImGuiWindowFlags flags) { bool opened = true; return(ImGuiNative.igBegin(windowTitle, ref opened, flags)); }
public static unsafe bool BeginWindow(string windowTitle, WindowFlags flags) { return(ImGuiNative.igBegin(windowTitle, null, flags)); }