protected override void OnChildAdded(Widget child) { if (ChildCount > 1) { Remove (child); throw new InvalidOperationException ("Ctk.Screen can have only one child"); } }
protected override void OnChildRemoved(Widget child) { packing_map.Remove (child); }
protected override void OnChildAdded(Widget child) { if (!packing_map.ContainsKey (child)) { packing_map.Add (child, new Packing ()); } }
public void PackStart(Widget child, bool fill, bool expand, int spacing) { Pack (child, new Packing (fill, expand, spacing), false); }
public void PackStart(Widget child) { Pack (child, new Packing (), false); }
public void PackEnd(Widget child, bool fill, bool expand, int spacing) { Pack (child, new Packing (fill, expand, spacing), true); }
public void PackEnd(Widget child) { Pack (child, new Packing (), true); }
private void Pack(Widget child, Packing packing, bool end) { MapPacking (child, packing); Add (child); }
private void MapPacking(Widget child, Packing packing) { if (packing_map.ContainsKey (child)) { packing_map[child] = packing; } else { packing_map.Add (child, packing); } }