Xwt.GtkBackend.TreeViewBackend.GetDropTargetRow C# (CSharp) Method

GetDropTargetRow() public method

public GetDropTargetRow ( double x, double y, RowDropPosition &pos, TreePosition &nodePosition ) : bool
x double
y double
pos RowDropPosition
nodePosition TreePosition
return bool
        public bool GetDropTargetRow(double x, double y, out RowDropPosition pos, out TreePosition nodePosition)
        {
            Gtk.TreeViewDropPosition tpos;
            Gtk.TreePath path;
            if (!Widget.GetDestRowAtPos ((int)x, (int)y, out path, out tpos)) {
                pos = RowDropPosition.Into;
                nodePosition = null;
                return false;
            }

            Gtk.TreeIter it;
            Widget.Model.GetIter (out it, path);
            nodePosition = new IterPos (-1, it);
            switch (tpos) {
            case Gtk.TreeViewDropPosition.After: pos = RowDropPosition.After; break;
            case Gtk.TreeViewDropPosition.Before: pos = RowDropPosition.Before; break;
            default: pos = RowDropPosition.Into; break;
            }
            return true;
        }