/// <summary>List Default Item class. This class need to be sub object of list widget. text and contents can be appliable by efl_text, efl_content or efl_part APIs.</summary>
[Efl.Ui.ListDefaultItem.NativeMethods]
+[Efl.Eo.BindingEntity]
public class ListDefaultItem : Efl.Ui.ListItem, Efl.IContent, Efl.IText, Efl.ITextMarkup
{
///<summary>Pointer to the native class description.</summary>
efl_ui_list_default_item_class_get();
/// <summary>Initializes a new instance of the <see cref="ListDefaultItem"/> class.</summary>
/// <param name="parent">Parent instance.</param>
- /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
+ /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle" /></param>
public ListDefaultItem(Efl.Object parent
- , System.String style = null) : base(efl_ui_list_default_item_class_get(), typeof(ListDefaultItem), parent)
+ , System.String style = null) : base(efl_ui_list_default_item_class_get(), parent)
{
if (Efl.Eo.Globals.ParamHelperCheck(style))
{
FinishInstantiation();
}
+ /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
+ /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
+ protected ListDefaultItem(ConstructingHandle ch) : base(ch)
+ {
+ }
+
/// <summary>Initializes a new instance of the <see cref="ListDefaultItem"/> class.
/// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
- /// <param name="raw">The native pointer to be wrapped.</param>
- protected ListDefaultItem(System.IntPtr raw) : base(raw)
+ /// <param name="wh">The native pointer to be wrapped.</param>
+ protected ListDefaultItem(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
{
}
/// <summary>Initializes a new instance of the <see cref="ListDefaultItem"/> class.
/// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
/// <param name="baseKlass">The pointer to the base native Eo class.</param>
- /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
/// <param name="parent">The Efl.Object parent of this instance.</param>
- protected ListDefaultItem(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
+ protected ListDefaultItem(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
{
}
{
add
{
- lock (eventLock)
+ lock (eflBindingEventLock)
{
Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
{
remove
{
- lock (eventLock)
+ lock (eflBindingEventLock)
{
string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
RemoveNativeEventHandler(efl.Libs.Elementary, key, value);
/// (Since EFL 1.22)</summary>
/// <returns>The sub-object.</returns>
virtual public Efl.Gfx.IEntity GetContent() {
- var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+ var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <param name="content">The sub-object.</param>
/// <returns><c>true</c> if <c>content</c> was successfully swallowed.</returns>
virtual public bool SetContent(Efl.Gfx.IEntity content) {
- var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),content);
+ var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),content);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// (Since EFL 1.22)</summary>
/// <returns>Unswallowed object</returns>
virtual public Efl.Gfx.IEntity UnsetContent() {
- var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+ var _ret_var = Efl.IContentConcrete.NativeMethods.efl_content_unset_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// (Since EFL 1.22)</summary>
/// <returns>Text string to display on it.</returns>
virtual public System.String GetText() {
- var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+ var _ret_var = Efl.ITextConcrete.NativeMethods.efl_text_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// (Since EFL 1.22)</summary>
/// <param name="text">Text string to display on it.</param>
virtual public void SetText(System.String text) {
- Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),text);
+ Efl.ITextConcrete.NativeMethods.efl_text_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),text);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Markup property</summary>
/// <returns>The markup-text representation set to this text.</returns>
virtual public System.String GetMarkup() {
- var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+ var _ret_var = Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// <summary>Markup property</summary>
/// <param name="markup">The markup-text representation set to this text.</param>
virtual public void SetMarkup(System.String markup) {
- Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),markup);
+ Efl.ITextMarkupConcrete.NativeMethods.efl_text_markup_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),markup);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Sub-object currently set as this object's single content.