예제 #1
0
 public Board(ArrayList pos)
     : base()
 {
     figure = new Figure ();
     position = new Position (pos);
     info = new MoveInfo ();
     layout = new Pango.Layout (PangoContext);
 }
예제 #2
0
        public Board(ArrayList pos)
            : base(GType)
        {
            figure = new Figure ();
                        position = new Position (pos);
                        info = new MoveInfo ();
            layout = new Pango.Layout (PangoContext);

                        Events = EventMask.ButtonPressMask
                                | EventMask.ButtonReleaseMask
                                | EventMask.PointerMotionHintMask
                                | EventMask.ButtonMotionMask
                                | Gdk.EventMask.KeyPressMask;
                        CanFocus = true;
        }