DestSet() public static méthode

public static DestSet ( Gtk dest, bool automatic ) : void
dest Gtk
automatic bool
Résultat void
Exemple #1
0
        public static void AddFault(Stetic.Wrapper.Widget owner, object faultId,
                                    Gtk.Orientation orientation,
                                    int x, int y, int width, int height)
        {
            Gtk.Widget widget = owner.Wrapped;
            if (!widget.IsRealized)
            {
                return;
            }

            Gdk.Window win = NewWindow(widget, Gdk.WindowClass.InputOnly);
            win.MoveResize(x, y, width, height);

            Hashtable widgetFaults = faultGroups[widget] as Hashtable;

            if (widgetFaults == null)
            {
                faultGroups[widget]      = widgetFaults = new Hashtable();
                widget.Destroyed        += FaultWidgetDestroyed;
                widget.DragMotion       += FaultDragMotion;
                widget.DragLeave        += FaultDragLeave;
                widget.DragDrop         += FaultDragDrop;
                widget.DragDataReceived += FaultDragDataReceived;
                DND.DestSet(widget, false);
            }
            widgetFaults[win] = new Fault(owner, faultId, orientation, win);
        }
Exemple #2
0
 public Placeholder()
 {
     undoId = WidgetUtils.GetUndoId();
     DND.DestSet(this, true);
     Events      |= Gdk.EventMask.ButtonPressMask;
     WidgetFlags |= WidgetFlags.AppPaintable;
 }
 public ActionPaletteGroup(string name, Wrapper.ActionGroup group) : base(name)
 {
     DND.DestSet(this, true);
     this.group           = group;
     group.ActionAdded   += OnActionGroupChanged;
     group.ActionRemoved += OnActionGroupChanged;
     group.ActionChanged += OnActionGroupChanged;
     group.ObjectChanged += OnActionGroupChanged;
     Fill();
 }