Esempio n. 1
0
        public bool HideControls(bool force)
        {
            if (!force && IsRealized)
            {
                ControlBox.GdkWindow.GetPointer(out var x, out var y, out var type);
                if (x < ControlBox.Allocation.Width && y < ControlBox.Allocation.Height)
                {
                    //hide.Start ();
                    return(true);
                }
            }

            //hide.Stop ();
            ControlBox.Hide();
            return(false);
        }
Esempio n. 2
0
        public bool HideControls(bool force)
        {
            int x, y;

            Gdk.ModifierType type;

            if (!force && IsRealized)
            {
                ControlBox.GdkWindow.GetPointer(out x, out y, out type);
                if (x < ControlBox.Allocation.Width && y < ControlBox.Allocation.Height)
                {
                    hide.Start();
                    return(true);
                }
            }

            hide.Stop();
            ControlBox.Hide();
            return(false);
        }