Exemple #1
0
 protected override void OnChildAdded(Widget child)
 {
     if (ChildCount > 1) {
         Remove (child);
         throw new InvalidOperationException ("Ctk.Screen can have only one child");
     }
 }
Exemple #2
0
Fichier : Box.cs Projet : abock/ctk
 protected override void OnChildRemoved(Widget child)
 {
     packing_map.Remove (child);
 }
Exemple #3
0
Fichier : Box.cs Projet : abock/ctk
 protected override void OnChildAdded(Widget child)
 {
     if (!packing_map.ContainsKey (child)) {
         packing_map.Add (child, new Packing ());
     }
 }
Exemple #4
0
Fichier : Box.cs Projet : abock/ctk
 public void PackStart(Widget child, bool fill, bool expand, int spacing)
 {
     Pack (child, new Packing (fill, expand, spacing), false);
 }
Exemple #5
0
Fichier : Box.cs Projet : abock/ctk
 public void PackStart(Widget child)
 {
     Pack (child, new Packing (), false);
 }
Exemple #6
0
Fichier : Box.cs Projet : abock/ctk
 public void PackEnd(Widget child, bool fill, bool expand, int spacing)
 {
     Pack (child, new Packing (fill, expand, spacing), true);
 }
Exemple #7
0
Fichier : Box.cs Projet : abock/ctk
 public void PackEnd(Widget child)
 {
     Pack (child, new Packing (), true);
 }
Exemple #8
0
Fichier : Box.cs Projet : abock/ctk
 private void Pack(Widget child, Packing packing, bool end)
 {
     MapPacking (child, packing);
     Add (child);
 }
Exemple #9
0
Fichier : Box.cs Projet : abock/ctk
 private void MapPacking(Widget child, Packing packing)
 {
     if (packing_map.ContainsKey (child)) {
         packing_map[child] = packing;
     } else {
         packing_map.Add (child, packing);
     }
 }