Ejemplo n.º 1
0
 void HandleVisibilityNotifyEvent(object o, VisibilityNotifyEventArgs args)
 {
     if (videoeventbox.Visible && drawingWindow.GdkWindow != null)
     {
         // Hack for Windows. Force video window visibility as
         // EventBox window's might prevent it to be mapped again.
         drawingWindow.GdkWindow.Show();
     }
 }
Ejemplo n.º 2
0
        // Also update the cursor image if the window becomes visible
        // (e.g. when a window covering it got iconified).
        void VisibilityNotify(object sender, VisibilityNotifyEventArgs a)
        {
            TextView view = sender as TextView;
            int      wx, wy, bx, by;

            view.GetPointer(out wx, out wy);
            view.WindowToBufferCoords(TextWindowType.Widget, wx, wy, out bx, out by);
            SetCursorIfAppropriate(view, bx, by);
        }
Ejemplo n.º 3
0
 void HandleVisibilityNotifyEvent(object o, VisibilityNotifyEventArgs args)
 {
     if (needShow && videoeventbox.Visible && drawingWindow.GdkWindow != null)
     {
         // Hack for Windows needed for Detaching Video Window. Force video window visibility as
         // EventBox window's might prevent it to be mapped again.
         drawingWindow.GdkWindow.Show();
         needShow = false;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Invoked when widget becomes visible.
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="args">Event arguments.</param>
 private void OnVisibilityNotify(object sender, VisibilityNotifyEventArgs args)
 {
     try
     {
         textView.GetPointer(out int wx, out int wy);
         textView.WindowToBufferCoords(TextWindowType.Widget, wx, wy,
                                       out int bx, out int by);
         SetCursorIfAppropriate(textView, bx, by);
     }
     catch (Exception err)
     {
         ShowError(err);
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Invoked when widget becomes visible.
        /// </summary>
        /// <param name="sender">Sender of the event.</param>
        /// <param name="args">Event arguments.</param>
        private void OnVisibilityNotify(object sender, VisibilityNotifyEventArgs args)
        {
            try
            {
#if NETFRAMEWORK
                textView.GetPointer(out int wx, out int wy);
#else
                Gdk.Display.Default.GetPointer(out _, out int wx, out int wy, out _);
#endif
                textView.WindowToBufferCoords(TextWindowType.Widget, wx, wy,
                                              out int bx, out int by);
                SetCursorIfAppropriate(textView, bx, by);
            }
            catch (Exception err)
            {
                ShowError(err);
            }
        }
Ejemplo n.º 6
0
            // Also update the cursor image if the window becomes visible
            // (e.g. when a window covering it got iconified).
            void VisibilityNotify(object sender,
					       VisibilityNotifyEventArgs a)
            {
                TextView view = sender as TextView;
                int wx, wy, bx, by;

                view.GetPointer (out wx, out wy);
                view.WindowToBufferCoords (TextWindowType.
                               Widget, wx, wy,
                               out bx, out by);
                SetCursorIfAppropriate (view, bx, by);
            }
Ejemplo n.º 7
0
 protected void NowVisible(object o, VisibilityNotifyEventArgs args)
 {
     throw new NotImplementedException();
 }