private void PrepareCrumb(Crumb crumb) { crumb.Crumbs = this; crumb.Widget.Parent = this; crumb.Widget.ParentWindow = this.GdkWindow; crumb.Widget.Realize(); }
private void UnprepareCrumb(Crumb crumb) { if (crumb.Widget.IsRealized) { crumb.Widget.Unrealize(); } crumb.Widget.ParentWindow = null; crumb.Widget.Parent = null; crumb.Crumbs = null; }
public void Insert(int index, Crumb crumb) { this.m_Crumbs.Insert(index, crumb); if (this.IsRealized) { this.PrepareCrumb(crumb); } this.QueueResize(); }
public void Append(Crumb crumb) { this.m_Crumbs.Add(crumb); if (this.IsRealized) { this.PrepareCrumb(crumb); } this.QueueResize(); }
protected override bool OnMotionNotifyEvent(EventMotion evnt) { foreach (Crumb crumb in this.m_Crumbs) { Gdk.Rectangle area = this.m_Coords[crumb]; if (evnt.X >= area.X && evnt.X <= area.X + area.Width && evnt.Y >= area.Y && evnt.Y <= area.Y + area.Height) { if (crumb != Hover) { this.m_Hover = crumb; this.QueueDraw(); } return(true); } } this.m_Hover = null; this.QueueDraw(); return(base.OnMotionNotifyEvent(evnt)); }
public void Remove(Crumb crumb) { this.m_Crumbs.Remove(crumb); this.UnprepareCrumb(crumb); }
private void UnprepareCrumb (Crumb crumb) { if (crumb.Widget.IsRealized) crumb.Widget.Unrealize (); crumb.Widget.ParentWindow = null; crumb.Widget.Parent = null; crumb.Crumbs = null; }
private void PrepareCrumb (Crumb crumb) { crumb.Crumbs = this; crumb.Widget.Parent = this; crumb.Widget.ParentWindow = this.GdkWindow; crumb.Widget.Realize (); }
protected override bool OnMotionNotifyEvent (EventMotion evnt) { foreach (Crumb crumb in this.m_Crumbs) { Gdk.Rectangle area = this.m_Coords[crumb]; if (evnt.X >= area.X && evnt.X <= area.X + area.Width && evnt.Y >= area.Y && evnt.Y <= area.Y + area.Height) { if (crumb != Hover) { this.m_Hover = crumb; this.QueueDraw (); } return true; } } this.m_Hover = null; this.QueueDraw (); return base.OnMotionNotifyEvent (evnt); }
public void Remove (Crumb crumb) { this.m_Crumbs.Remove (crumb); this.UnprepareCrumb (crumb); }
public void Insert (int index, Crumb crumb) { this.m_Crumbs.Insert (index, crumb); if (this.IsRealized) { this.PrepareCrumb (crumb); } this.QueueResize (); }
public void Append (Crumb crumb) { this.m_Crumbs.Add (crumb); if (this.IsRealized) { this.PrepareCrumb (crumb); } this.QueueResize (); }