Contains all of the exported functions from the native (c)imGui module.
예제 #1
0
 public static void PopFont()
 {
     ImGuiNative.igPopFont();
 }
예제 #2
0
 public static bool DragVector4(string label, ref Vector4 value, float min, float max, float dragSpeed = 1f, string displayFormat = "%f", float dragPower = 1f)
 {
     return(ImGuiNative.igDragFloat4(label, ref value, dragSpeed, min, max, displayFormat, dragPower));
 }
예제 #3
0
 public static void PushItemWidth(float width)
 {
     ImGuiNative.igPushItemWidth(width);
 }
예제 #4
0
 public static bool SliderAngle(string label, ref float radians, float minDegrees, float maxDegrees)
 {
     return(ImGuiNative.igSliderAngle(label, ref radians, minDegrees, maxDegrees));
 }
예제 #5
0
 public static bool SliderInt4(string label, ref Int4 value, int min, int max, string displayText)
 {
     return(ImGuiNative.igSliderInt4(label, ref value, min, max, displayText));
 }
예제 #6
0
 public static void ShowFontSelector(string label)
 {
     ImGuiNative.igShowFontSelector(label);
 }
예제 #7
0
 public static void PushID(int id)
 {
     ImGuiNative.igPushIDInt(id);
 }
예제 #8
0
 public static bool CollapsingHeader(string label, TreeNodeFlags flags)
 {
     return(ImGuiNative.igCollapsingHeader(label, flags));
 }
예제 #9
0
 public static bool Checkbox(string label, ref bool value)
 {
     return(ImGuiNative.igCheckbox(label, ref value));
 }
예제 #10
0
        //obsolete!
        public static bool CollapsingHeader(string label, string id, bool displayFrame, bool defaultOpen)
        {
            TreeNodeFlags default_open_flags = TreeNodeFlags.DefaultOpen;

            return(ImGuiNative.igCollapsingHeader(label, (defaultOpen ? default_open_flags : 0)));
        }
예제 #11
0
 public static void Render()
 {
     ImGuiNative.igRender();
 }
예제 #12
0
 public static void CalcListClipping(int itemsCount, float itemsHeight, ref int outItemsDisplayStart, ref int outItemsDisplayEnd)
 {
     ImGuiNative.igCalcListClipping(itemsCount, itemsHeight, ref outItemsDisplayStart, ref outItemsDisplayEnd);
 }
예제 #13
0
 public static void SetKeyboardFocusHere(int offset)
 {
     ImGuiNative.igSetKeyboardFocusHere(offset);
 }
예제 #14
0
 public static void SetKeyboardFocusHere()
 {
     ImGuiNative.igSetKeyboardFocusHere(0);
 }
예제 #15
0
 public static unsafe Style GetStyle() => new Style(ImGuiNative.igGetStyle());
예제 #16
0
 public static bool RadioButtonBool(string label, bool active)
 {
     return(ImGuiNative.igRadioButtonBool(label, active));
 }
예제 #17
0
 public static void PushID(string id)
 {
     ImGuiNative.igPushIDStr(id);
 }
예제 #18
0
 public static bool BeginCombo(string label, string previewValue, ComboFlags flags)
 => ImGuiNative.igBeginCombo(label, previewValue, flags);
예제 #19
0
 public static bool SliderFloat(string sliderLabel, ref float value, float min, float max, string displayText, float power)
 {
     return(ImGuiNative.igSliderFloat(sliderLabel, ref value, min, max, displayText, power));
 }
예제 #20
0
 public static void EndCombo() => ImGuiNative.igEndCombo();
예제 #21
0
 public static bool SliderVector4(string label, ref Vector4 value, float min, float max, string displayText, float power)
 {
     return(ImGuiNative.igSliderFloat4(label, ref value, min, max, displayText, power));
 }
예제 #22
0
 public unsafe static bool Combo(string label, ref int current_item, string[] items, int heightInItems)
 {
     return(ImGuiNative.igCombo(label, ref current_item, items, items.Length, heightInItems));
 }
예제 #23
0
 public static bool SliderInt(string sliderLabel, ref int value, int min, int max, string displayText)
 {
     return(ImGuiNative.igSliderInt(sliderLabel, ref value, min, max, displayText));
 }
예제 #24
0
 public static bool ColorButton(string desc_id, Vector4 color, ColorEditFlags flags, Vector2 size)
 {
     return(ImGuiNative.igColorButton(desc_id, color, flags, size));
 }
예제 #25
0
 public static void PushIDRange(string idBegin, string idEnd)
 {
     ImGuiNative.igPushIDStrRange(idBegin, idEnd);
 }
예제 #26
0
 public static void Shutdown()
 {
     ImGuiNative.igShutdown();
 }
예제 #27
0
 public static bool DragInt4(string label, ref Int4 value, float speed, int minValue, int maxValue, string displayText)
 {
     return(ImGuiNative.igDragInt4(label, ref value, speed, minValue, maxValue, displayText));
 }
예제 #28
0
 public static unsafe IO GetIO() => new IO(ImGuiNative.igGetIO());
예제 #29
0
 public static bool Button(string message)
 {
     return(ImGuiNative.igButton(message, Vector2.Zero));
 }
예제 #30
0
 public static unsafe void PushFont(Font font)
 {
     ImGuiNative.igPushFont(font.NativeFont);
 }