X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FLayout.cs;h=ad087aacc397888bbccc7a3dbd6dd862778d94cb;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=b2c6f8e7b96cc67f8811c2da233c2b0a25f93692;hpb=109571df94fee18bdd850ba10415d85487c6f21d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Layout.cs b/src/ElmSharp/ElmSharp/Layout.cs index b2c6f8e..ad087aa 100644 --- a/src/ElmSharp/ElmSharp/Layout.cs +++ b/src/ElmSharp/ElmSharp/Layout.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Inherits Widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Layout : Container { SmartEvent _languageChanged; @@ -35,6 +36,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the layout as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Layout(EvasObject parent) : base(parent) { } @@ -43,6 +45,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Layout class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Layout() : base() { } @@ -51,18 +54,21 @@ namespace ElmSharp /// LanguageChanged will be triggered when the program's language is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler LanguageChanged; /// /// ThemeChanged will be triggered when the theme is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ThemeChanged; /// /// Gets the edje layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public EdjeObject EdjeObject { get @@ -77,6 +83,7 @@ namespace ElmSharp /// Gets or sets the accessibility state of texblock (text) parts in a layout object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool TextBlockAccessibility { get @@ -96,6 +103,7 @@ namespace ElmSharp /// /// The frozen state, or 0 if the object is not frozen or on error. /// preview + [Obsolete("This has been deprecated in API12")] public int Freeze() { return Interop.Elementary.elm_layout_freeze(RealHandle); @@ -107,6 +115,7 @@ namespace ElmSharp /// /// The frozen state, or 0 if the object is not frozen or on error. /// preview + [Obsolete("This has been deprecated in API12")] public int Thaw() { return Interop.Elementary.elm_layout_thaw(RealHandle); @@ -121,6 +130,7 @@ namespace ElmSharp /// All of this can change due to state changes, and that's when this function should be called. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Resizing() { Interop.Elementary.elm_layout_sizing_eval(RealHandle); @@ -133,6 +143,7 @@ namespace ElmSharp /// Restrict minimum size of the current width. /// Restrict minimum size of the current height. /// preview + [Obsolete("This has been deprecated in API12")] public void Resizing(bool width, bool height) { Interop.Elementary.elm_layout_sizing_restricted_eval(RealHandle, width, height); @@ -146,6 +157,7 @@ namespace ElmSharp /// The data key. /// The data. /// preview + [Obsolete("This has been deprecated in API12")] public string GetEdjeData(string key) { return Interop.Elementary.elm_layout_data_get(RealHandle, key); @@ -157,6 +169,7 @@ namespace ElmSharp /// The text part to retrieve the text off. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string GetPartText(string part) { return Interop.Elementary.elm_layout_text_get(RealHandle, part); @@ -169,6 +182,7 @@ namespace ElmSharp /// The text to set. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartText(string part, string text) { return Interop.Elementary.elm_layout_text_set(RealHandle, part, text); @@ -179,10 +193,14 @@ namespace ElmSharp /// Once the object is appended, it will become a child of the layout. /// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// The object to append. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxAppend(string part, EvasObject child) { AddChild(child); @@ -194,10 +212,14 @@ namespace ElmSharp /// Once the object is prepended, it will become a child of the layout. /// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// The object to prepend. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxPrepend(string part, EvasObject child) { AddChild(child); @@ -208,24 +230,32 @@ namespace ElmSharp /// Removes a child from the given part box. /// The object will be removed from the box part and its lifetime will not be handled by the layout anymore. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// The object to remove. /// Success if true /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxRemove(string part, EvasObject child) { RemoveChild(child); - return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != null; + return Interop.Elementary.elm_layout_box_remove(RealHandle, part, child.Handle) != IntPtr.Zero; } /// /// Removes all the children from the given part box. /// The objects will be removed from the box part and their lifetime will not be handled by the layout anymore. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// If true, then all the objects will be deleted as well, otherwise they will just be removed and will be dangling on the canvas. /// Success if true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxRemoveAll(string part, bool clear) { ClearChildren(); @@ -237,11 +267,15 @@ namespace ElmSharp /// Once the object is inserted, it will become a child of the layout. /// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// The child object to insert into the box. /// The numeric position >=0 to insert the child. /// Success if true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxInsertAt(string part, EvasObject child, uint position) { AddChild(child); @@ -253,11 +287,15 @@ namespace ElmSharp /// Once the object is inserted, it will become child of the layout. /// Its lifetime will be bound to the layout. Whenever the layout dies, the child will be deleted automatically. /// + /// + /// This will only work if the layout edc have box part. + /// /// The part. /// The child object to insert into the box. /// Another reference object to insert before the box. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxInsertBefore(string part, EvasObject child, EvasObject reference) { AddChild(child); @@ -271,6 +309,7 @@ namespace ElmSharp /// The child that will be added in this layout object. /// TRUE on success, FALSE otherwise. /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartContent(string part, EvasObject content) { return SetPartContent(part, content, false); @@ -284,6 +323,7 @@ namespace ElmSharp /// true, preserve old content will be unset. false, preserve old content will not be unset. /// TRUE on success, FALSE otherwise. /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent) { if (preserveOldContent) @@ -301,6 +341,7 @@ namespace ElmSharp /// The group. /// The style to use. /// preview + [Obsolete("This has been deprecated in API12")] public void SetTheme(string klass, string group, string style) { Interop.Elementary.elm_layout_theme_set(RealHandle, klass, group, style); @@ -312,6 +353,7 @@ namespace ElmSharp /// The path to the file (edje) that is used as a layout. /// The group that the layout belongs to in the edje file. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFile(string file, string group) { Interop.Elementary.elm_layout_file_set(RealHandle, file, group); @@ -321,14 +363,14 @@ namespace ElmSharp /// Sets the background color of a layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { set { - if (value.IsDefault && ClassName != null) + if (value.IsDefault) { - string part = ClassName.ToLower().Replace("elm_", "") + "/" + "bg"; - EdjeObject.DeleteColorClass(part); + Interop.Elementary.elm_object_color_class_del(RealHandle, "bg"); } else { @@ -345,6 +387,7 @@ namespace ElmSharp /// API, elm_layout_text_valign_set, is an internal API only in Tizen. Available since Tizen_4.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual void SetVerticalTextAlignment(string part, double valign) { Interop.Elementary.elm_layout_text_valign_set(RealHandle, part, valign); @@ -357,6 +400,7 @@ namespace ElmSharp /// API, elm_layout_text_valign_get, is an internal API only in Tizen. Available since Tizen_4.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual double GetVerticalTextAlignment(string part) { return Interop.Elementary.elm_layout_text_valign_get(RealHandle, part); @@ -366,6 +410,7 @@ namespace ElmSharp /// The callback of the Realized Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -388,9 +433,10 @@ namespace ElmSharp /// The parent is a given container which will be attached by the layout as a child. It's type. /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_layout_add(parent.Handle); } } -} \ No newline at end of file +}