summaryrefslogtreecommitdiff
path: root/ElmSharp/ElmSharp
diff options
context:
space:
mode:
authorJeonghyun Yun <jh0506.yun@samsung.com>2017-06-08 08:24:06 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-06-08 08:24:06 +0000
commit981914cd14d89d483bdf495c168f5ad07c637592 (patch)
treea722668cbb1241ac223b99def474d83bad89358c /ElmSharp/ElmSharp
parentca58b3da00bb69b6bfb4b8c673639f7361e01868 (diff)
parent0d6aa6145f81d918e6f64627aedbe2c4639463ad (diff)
downloadelm-sharp-981914cd14d89d483bdf495c168f5ad07c637592.tar.gz
elm-sharp-981914cd14d89d483bdf495c168f5ad07c637592.tar.bz2
elm-sharp-981914cd14d89d483bdf495c168f5ad07c637592.zip
Merge "Enhance ProgressBar widget" into tizen
Diffstat (limited to 'ElmSharp/ElmSharp')
-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