summaryrefslogtreecommitdiff
path: root/ElmSharp/ElmSharp/ProgressBar.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ElmSharp/ElmSharp/ProgressBar.cs')
-rwxr-xr-xElmSharp/ElmSharp/ProgressBar.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/ElmSharp/ElmSharp/ProgressBar.cs b/ElmSharp/ElmSharp/ProgressBar.cs
index 5ef887b..d0121e6 100755
--- a/ElmSharp/ElmSharp/ProgressBar.cs
+++ b/ElmSharp/ElmSharp/ProgressBar.cs
@@ -175,6 +175,26 @@ namespace ElmSharp
Interop.Elementary.elm_progressbar_pulse(RealHandle, false);
}
+ /// <summary>
+ /// Gets the part value of the given part of the Progressbar.
+ /// </summary>
+ /// <param name="part">Part of the Progressbar.</param>
+ /// <returns>Returns value range is from 0.0 to 1.0.</returns>
+ public double GetPartValue(string part)
+ {
+ return Interop.Elementary.elm_progressbar_part_value_get(RealHandle, part);
+ }
+
+ /// <summary>
+ /// Sets the part value of the give part of the Progressbar.
+ /// </summary>
+ /// <param name="part">Part of the Progressbar.</param>
+ /// <param name="value">Value range is from 0.0 to 1.0.</param>
+ public void SetPartValue(string part, double value)
+ {
+ Interop.Elementary.elm_progressbar_part_value_set(RealHandle, part, value);
+ }
+
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
@@ -186,4 +206,4 @@ namespace ElmSharp
return handle;
}
}
-}
+} \ No newline at end of file