コード例 #1
0
        public ChessGameWidget(Widget board)
        {
            whiteLabel = new Label ();
            blackLabel = new Label ();

            blackClock = new ChessClock ();
            blackHBox = new HBox ();
            blackHBox.PackStart (blackLabel, true, true, 2);
            blackHBox.PackStart (blackClock, false, false, 2);

            whiteClock = new ChessClock ();
            whiteHBox = new HBox ();
            whiteHBox.PackStart (whiteLabel, true, true, 2);
            whiteHBox.PackStart (whiteClock, false, false, 2);

            topBin = new Frame ();
            bottomBin = new Frame ();

            whiteAtBottom = true;
            topBin.Add (blackHBox);
            bottomBin.Add (whiteHBox);

            PackStart (topBin, false, false, 2);
            PackStart (board, true, true, 2);
            PackStart (bottomBin, false, false, 2);

            topBin.ShowAll ();
            bottomBin.ShowAll ();
        }
コード例 #2
0
 public void Replace(Gtk.Bin parent)
 {
     Gtk.Widget c = parent.Child;
     parent.Remove(c);
     Add(c);
     parent.Add(this);
 }
コード例 #3
0
 public WorkspaceService(Gtk.Bin mainWindow, DrawingArea designArea, DrawingArea previewArea, PropertyGrid.PropertyGrid propertyGrid, Gtk.Label statusLabel)
 {
     this.designArea   = designArea;
     this.previewArea  = previewArea;
     this.propertyGrid = propertyGrid;
     this.mainControl  = mainWindow;
     this.StatusLabel  = statusLabel;
 }
コード例 #4
0
ファイル: generated.cs プロジェクト: githuis/BolPatcher
 public static BinContainer Attach(Bin bin)
 {
     BinContainer bc = new BinContainer ();
     bin.SizeRequested += bc.OnSizeRequested;
     bin.SizeAllocated += bc.OnSizeAllocated;
     bin.Added += bc.OnAdded;
     return bc;
 }
コード例 #5
0
 public WorkspaceService(Gtk.Bin mainWindow, DrawingArea designArea,DrawingArea previewArea, PropertyGrid.PropertyGrid propertyGrid,Gtk.Label statusLabel)
 {
     this.designArea = designArea;
     this.previewArea = previewArea;
     this.propertyGrid = propertyGrid;
     this.mainControl = mainWindow;
     this.StatusLabel = statusLabel;
 }
コード例 #6
0
        public static BinContainer Attach(Gtk.Bin bin)
        {
            BinContainer bc = new BinContainer();

            bin.SizeRequested += new Gtk.SizeRequestedHandler(bc.OnSizeRequested);
            bin.SizeAllocated += new Gtk.SizeAllocatedHandler(bc.OnSizeAllocated);
            bin.Added         += new Gtk.AddedHandler(bc.OnAdded);
            return(bc);
        }
コード例 #7
0
		private void CleanBin (Bin bin) 
		{
			if (bin.Child != null)
				bin.Remove (bin.Child);
		}
コード例 #8
0
 void CreateCustomWidget(string wname)
 {
     Gtk.Widget w   = GladeCustomWidgetHandler(null, null, wname, null, null, 0, 0);
     Gtk.Bin    bin = (Gtk.Bin)gxml[wname + "_box"];
     bin.Add(w);
 }