Exemplo n.º 1
0
        private float GetValue()
        {
            Variant value = Variant.Create();

            PowerBarView_c.GetValue(Pointer, value.Pointer);
            return(value.AsFloat());
        }
Exemplo n.º 2
0
 public void SetBarColor(uint color)
 {
     PowerBarView_c.SetBarColor(Pointer, color);
 }
Exemplo n.º 3
0
 public void SetLabel(string text)
 {
     PowerBarView_c.SetLabel(Pointer, StdString.Create(text).Pointer);
 }
Exemplo n.º 4
0
 public void SetLabels(string leftLabel, string rightLabel)
 {
     PowerBarView_c.SetLabels(Pointer, StdString.Create(leftLabel).Pointer, StdString.Create(rightLabel).Pointer);
 }
Exemplo n.º 5
0
 private void SetValue(float value)
 {
     PowerBarView_c.SetValue(Pointer, Variant.Create(value).Pointer, false);
 }