コード例 #1
0
ファイル: Layout.cs プロジェクト: swgshaw/f-spot
 protected override void ForAll(bool include_internals, Gtk.Callback callback)
 {
     foreach (var child in children)
     {
         callback(child.Widget);
     }
 }
コード例 #2
0
 protected override void ForAll(bool include_internals, Gtk.Callback callback)
 {
     ForeachCell(false, (r, c, child) => {
         callback(child);
         return(true);
     });
 }
コード例 #3
0
 protected override void ForAll(bool includeInternals, Gtk.Callback callback)
 {
     base.ForAll(includeInternals, callback);
     foreach (var c in children.Keys.ToArray())
     {
         callback(c);
     }
 }
コード例 #4
0
ファイル: HPanedThin.cs プロジェクト: zcf7822/monodevelop
 protected override void ForAll(bool include_internals, Gtk.Callback callback)
 {
     base.ForAll(include_internals, callback);
     if (handle != null)
     {
         callback(handle);
     }
 }
コード例 #5
0
 public CallbackWrapper(Gtk.Callback managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new CallbackNative(NativeCallback);
     }
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 protected override void ForAll(bool include_internals, Gtk.Callback callback)
 {
     if (Child != null)
     {
         callback(Child);
     }
     foreach (TopLevelChild child in topLevels)
     {
         callback(child.Child);
     }
 }
コード例 #8
0
 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));
 }
コード例 #9
0
		public CallbackWrapper (Gtk.Callback managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new CallbackNative (NativeCallback);
		}
コード例 #10
0
 protected override void ForAll(bool include_internals, Gtk.Callback callback)
 {
     base.ForAll(include_internals, callback);
     callback(surface);
 }
コード例 #11
0
 public void Foreach(Gtk.Callback cb)
 {
     GtkSharp.CallbackWrapper cb_wrapper = new GtkSharp.CallbackWrapper(cb);
     gtk_container_foreach(Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
 }