protected override void ForAll(bool include_internals, Gtk.Callback callback) { foreach (var child in children) { callback(child.Widget); } }
protected override void ForAll(bool include_internals, Gtk.Callback callback) { ForeachCell(false, (r, c, child) => { callback(child); return(true); }); }
protected override void ForAll(bool includeInternals, Gtk.Callback callback) { base.ForAll(includeInternals, callback); foreach (var c in children.Keys.ToArray()) { callback(c); } }
protected override void ForAll(bool include_internals, Gtk.Callback callback) { base.ForAll(include_internals, callback); if (handle != null) { callback(handle); } }
public CallbackWrapper(Gtk.Callback managed) { this.managed = managed; if (managed != null) { NativeDelegate = new CallbackNative(NativeCallback); } }
protected virtual void ForAll(bool include_internals, Gtk.Callback callback) { CallbackInvoker invoker; try { invoker = (CallbackInvoker)callback.Target; } catch { throw new ApplicationException("ForAll can only be called as \"base.ForAll()\". Use Forall() or Foreach()."); } gtksharp_container_base_forall(Handle, include_internals, invoker.Callback, invoker.Data); }
protected override void ForAll(bool include_internals, Gtk.Callback callback) { if (Child != null) { callback(Child); } foreach (TopLevelChild child in topLevels) { callback(child.Child); } }
protected override void ForAll(bool include_internals, Gtk.Callback callback) { if (!include_internals) { return; } if (Child != null) { callback(Child); } callback(vScrollBar); callback(hScrollBar); children.ForEach(child => callback(child.Child)); }
public CallbackWrapper (Gtk.Callback managed) { this.managed = managed; if (managed != null) NativeDelegate = new CallbackNative (NativeCallback); }
protected override void ForAll(bool include_internals, Gtk.Callback callback) { base.ForAll(include_internals, callback); callback(surface); }
public void Foreach(Gtk.Callback cb) { GtkSharp.CallbackWrapper cb_wrapper = new GtkSharp.CallbackWrapper(cb); gtk_container_foreach(Handle, cb_wrapper.NativeDelegate, IntPtr.Zero); }