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