Exemplo n.º 1
0
 public void Plot(NkChartType type, float[] values, int offset)
 {
     fixed(float *ptr = values)
     {
         Nk.nk_plot(_ctx, type, ptr, values.Length, offset);
     }
 }
Exemplo n.º 2
0
 public void PlotFunction(NkChartType type, IntPtr userdata, NkFloatValueGetter value_getter, int count, int offset)
 {
     Nk.nk_plot_function(_ctx, type, userdata.ToPointer(), value_getter, count, offset);
 }
Exemplo n.º 3
0
 public void ChartAddSlot(NkChartType type, int count, float min_value, float max_value)
 {
     Nk.nk_chart_add_slot(_ctx, type, count, min_value, max_value);
 }
Exemplo n.º 4
0
 public void ChartAddSlotColored(NkChartType type, NkColor color, NkColor highlight, int count,
                                 float min_value, float max_value)
 {
     Nk.nk_chart_add_slot_colored(_ctx, type, color, highlight, count, min_value, max_value);
 }
Exemplo n.º 5
0
 public bool ChartBegin(NkChartType type, int count, float min_value, float max_value)
 {
     return(Nk.nk_chart_begin(_ctx, type, count, min_value, max_value) != 0);
 }
Exemplo n.º 6
0
 public bool ChartBeginColored(NkChartType type, NkColor color, NkColor highlight, int count, float min_value,
                               float max_value)
 {
     return(Nk.nk_chart_begin_colored(_ctx, type, color, highlight, count, min_value, max_value) != 0);
 }