Contains all of the exported functions from the native (c)imGui module.
Beispiel #1
0
 public static void PopFont()
 {
     ImGuiNative.igPopFont();
 }
Beispiel #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));
 }
Beispiel #3
0
 public static void PushItemWidth(float width)
 {
     ImGuiNative.igPushItemWidth(width);
 }
Beispiel #4
0
 public static bool SliderAngle(string label, ref float radians, float minDegrees, float maxDegrees)
 {
     return(ImGuiNative.igSliderAngle(label, ref radians, minDegrees, maxDegrees));
 }
Beispiel #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));
 }
Beispiel #6
0
 public static void ShowFontSelector(string label)
 {
     ImGuiNative.igShowFontSelector(label);
 }
Beispiel #7
0
 public static void PushID(int id)
 {
     ImGuiNative.igPushIDInt(id);
 }
Beispiel #8
0
 public static bool CollapsingHeader(string label, TreeNodeFlags flags)
 {
     return(ImGuiNative.igCollapsingHeader(label, flags));
 }
Beispiel #9
0
 public static bool Checkbox(string label, ref bool value)
 {
     return(ImGuiNative.igCheckbox(label, ref value));
 }
Beispiel #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)));
        }
Beispiel #11
0
 public static void Render()
 {
     ImGuiNative.igRender();
 }
Beispiel #12
0
 public static void CalcListClipping(int itemsCount, float itemsHeight, ref int outItemsDisplayStart, ref int outItemsDisplayEnd)
 {
     ImGuiNative.igCalcListClipping(itemsCount, itemsHeight, ref outItemsDisplayStart, ref outItemsDisplayEnd);
 }
Beispiel #13
0
 public static void SetKeyboardFocusHere(int offset)
 {
     ImGuiNative.igSetKeyboardFocusHere(offset);
 }
Beispiel #14
0
 public static void SetKeyboardFocusHere()
 {
     ImGuiNative.igSetKeyboardFocusHere(0);
 }
Beispiel #15
0
 public static unsafe Style GetStyle() => new Style(ImGuiNative.igGetStyle());
Beispiel #16
0
 public static bool RadioButtonBool(string label, bool active)
 {
     return(ImGuiNative.igRadioButtonBool(label, active));
 }
Beispiel #17
0
 public static void PushID(string id)
 {
     ImGuiNative.igPushIDStr(id);
 }
Beispiel #18
0
 public static bool BeginCombo(string label, string previewValue, ComboFlags flags)
 => ImGuiNative.igBeginCombo(label, previewValue, flags);
Beispiel #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));
 }
Beispiel #20
0
 public static void EndCombo() => ImGuiNative.igEndCombo();
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #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));
 }
Beispiel #24
0
 public static bool ColorButton(string desc_id, Vector4 color, ColorEditFlags flags, Vector2 size)
 {
     return(ImGuiNative.igColorButton(desc_id, color, flags, size));
 }
Beispiel #25
0
 public static void PushIDRange(string idBegin, string idEnd)
 {
     ImGuiNative.igPushIDStrRange(idBegin, idEnd);
 }
Beispiel #26
0
 public static void Shutdown()
 {
     ImGuiNative.igShutdown();
 }
Beispiel #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));
 }
Beispiel #28
0
 public static unsafe IO GetIO() => new IO(ImGuiNative.igGetIO());
Beispiel #29
0
 public static bool Button(string message)
 {
     return(ImGuiNative.igButton(message, Vector2.Zero));
 }
Beispiel #30
0
 public static unsafe void PushFont(Font font)
 {
     ImGuiNative.igPushFont(font.NativeFont);
 }