diff options
author | Sungtaek Hong <sth253.hong@samsung.com> | 2017-06-01 20:35:32 +0900 |
---|---|---|
committer | Sungtaek Hong <sth253.hong@samsung.com> | 2017-06-08 15:59:30 +0900 |
commit | 6b096360211c4e1bebb6fd37b53a4c9141036e91 (patch) | |
tree | eb767e52e1f3f0b62297c0d812b22919a95afc8e /ElmSharp/ElmSharp | |
parent | b1a3877f3fcb2e160e005d1271ecfdf5a864e813 (diff) | |
download | elm-sharp-6b096360211c4e1bebb6fd37b53a4c9141036e91.tar.gz elm-sharp-6b096360211c4e1bebb6fd37b53a4c9141036e91.tar.bz2 elm-sharp-6b096360211c4e1bebb6fd37b53a4c9141036e91.zip |
Add new internal APIs for layout/label
added APIs:
- elm_layout_text_valign_set
- elm_layout_text_valign_get
- elm_label_text_style_user_peek
- elm_label_text_style_user_push
- elm_label_text_style_user_pop
Change-Id: I98ade8b726dae66185093217bfe277d19c33665f
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
Diffstat (limited to 'ElmSharp/ElmSharp')
-rwxr-xr-x | ElmSharp/ElmSharp/Label.cs | 26 | ||||
-rwxr-xr-x | ElmSharp/ElmSharp/Layout.cs | 22 |
2 files changed, 48 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/Label.cs b/ElmSharp/ElmSharp/Label.cs index 48fa897..68b7486 100755 --- a/ElmSharp/ElmSharp/Label.cs +++ b/ElmSharp/ElmSharp/Label.cs @@ -144,6 +144,32 @@ namespace ElmSharp } /// <summary> + /// Sets or gets the style of the label text. + /// </summary> + /// <remarks> + /// APIs, elm_label_text_style_user_peek/pop/push, are internal APIs only in Tizen. Avalilable since Tizen_4.0. + /// </remarks> + /// + public string TextStyle + { + get + { + return Interop.Elementary.elm_label_text_style_user_peek(RealHandle); + } + set + { + if (!string.IsNullOrEmpty(value)) + { + Interop.Elementary.elm_label_text_style_user_pop(RealHandle); + } + else + { + Interop.Elementary.elm_label_text_style_user_push(RealHandle, value); + } + } + } + + /// <summary> /// Start slide effect. /// </summary> public void PlaySlide() diff --git a/ElmSharp/ElmSharp/Layout.cs b/ElmSharp/ElmSharp/Layout.cs index c7382f1..4c92402 100755 --- a/ElmSharp/ElmSharp/Layout.cs +++ b/ElmSharp/ElmSharp/Layout.cs @@ -113,6 +113,28 @@ namespace ElmSharp } /// <summary> + /// Sets the vertical text alignment of layout's text part + /// </summary> + /// <remarks> + /// API, elm_layout_text_valign_set, is an internal API only in Tizen. Avalilable since Tizen_4.0. + /// </remarks> + public virtual void SetVerticalTextAlignment(string part, double valign) + { + Interop.Elementary.elm_layout_text_valign_set(RealHandle, part, valign); + } + + /// <summary> + /// Gets the vertical text alignment of layout's text part + /// </summary> + /// <remarks> + /// API, elm_layout_text_valign_get, is internal API only in Tizen. Avalilable since Tizen_4.0. + /// </remarks> + public virtual double GetVerticalTextAlignment(string part) + { + return Interop.Elementary.elm_layout_text_valign_get(RealHandle, part); + } + + /// <summary> /// Sets the content at a part of a given container widget. /// </summary> /// <param name="parent">The parent is a given container which will be attached by Layout as a child. It's <see cref="EvasObject"/> type.</param> |