Пример #1
0
        private bool HideCursor()
        {
            if (empty_cursor == null)
            {
                empty_cursor = GdkUtils.CreateEmptyCursor(GdkWindow.Display);
            }

            this.GdkWindow.Cursor = empty_cursor;
            view.GdkWindow.Cursor = empty_cursor;
            return(false);
        }
Пример #2
0
        bool HideCursor()
        {
            if (View.InPanMotion)
            {
                return(false);
            }

            if (empty_cursor == null)
            {
                empty_cursor = GdkUtils.CreateEmptyCursor(GdkWindow.Display);
            }

            this.GdkWindow.Cursor = empty_cursor;
            View.GdkWindow.Cursor = empty_cursor;

            return(false);
        }
Пример #3
0
        public FullSlide(Gtk.Window parent, IBrowsableItem [] items) : base("Slideshow")
        {
            screenshot = PixbufUtils.LoadFromScreen(parent.GdkWindow);

            this.Destroyed += HandleDestroyed;

            this.TransientFor = parent;

            this.ButtonPressEvent += HandleSlideViewButtonPressEvent;
            this.KeyPressEvent    += HandleSlideViewKeyPressEvent;
            this.AddEvents((int)(EventMask.ButtonPressMask | EventMask.KeyPressMask | EventMask.PointerMotionMask));
            slideview = new SlideView(screenshot, items);
            this.Add(slideview);
            this.Decorated = false;
            this.Fullscreen();
            this.Realize();

            busy = new Gdk.Cursor(Gdk.CursorType.Watch);
            this.GdkWindow.Cursor = busy;
            none = GdkUtils.CreateEmptyCursor(GdkWindow.Display);

            hide = new Delay(2000, new GLib.IdleHandler(HideCursor));
        }