예제 #1
0
 protected override bool OnConfigureEvent(Gdk.EventConfigure evnt)
 {
     base.OnConfigureEvent(evnt);
     GetSize(out int w, out int h);
     plotBox.Position = w / 2;
     return(true);
 }
예제 #2
0
        static void ConfigureEvent(object obj, ConfigureEventArgs args)
        {
            Gdk.EventConfigure ev         = args.Event;
            Gdk.Window         window     = ev.Window;
            Gdk.Rectangle      allocation = darea.Allocation;

            pixmap = new Gdk.Pixmap(window, allocation.Width, allocation.Height, -1);
            pixmap.DrawRectangle(darea.Style.WhiteGC, true, 0, 0,
                                 allocation.Width, allocation.Height);

            args.RetVal = true;
        }
예제 #3
0
    protected override bool OnConfigureEvent(Gdk.EventConfigure evnt)
    {
        if (!GLinit)
        {
            return(false);
        }

        foreach (var view in View.views)
        {
            view.OnResize(glwidget1.Allocation.Width, glwidget1.Allocation.Height);
        }
        QueueDraw();
        return(base.OnConfigureEvent(evnt));
    }
예제 #4
0
    protected override bool OnConfigureEvent(Gdk.EventConfigure evnt)
    {
        //if (maindisplaythread != null)
        //{
        //    if (maindisplaythread.IsAlive)
        //    {
        //        displayHold = true;
        //    }
        //}

        bool flag = base.OnConfigureEvent(evnt);

        displayHold = false;

        return(flag);
    }
예제 #5
0
        /// <summary>Función encargada de responder a los cambios de
        /// tamaño del lienzo de dibujo.</summary>
        /// <param name="o"></param>
        /// <param name="args"></param>

        private void OnConfigureEvent(object o, ConfigureEventArgs args)
        {
            lock (this)
            {
                // TODO ver de donde sacamos window ahora
                Gdk.EventConfigure ev = args.Event;
                this.window = ev.Window;

                pixmap = new Pixmap(window, ev.Width, ev.Height, -1);
                _ancho = ev.Width;
                _alto  = ev.Height;
                this.Clean();
                if (rdd != null)
                {
                    rdd.ActualizarTodo();
                }
                SignalArgs sa = (SignalArgs)args;
                sa.RetVal = true;
            }
        }
예제 #6
0
        protected override bool OnConfigureEvent(EventConfigure evnt)
        {
            var newSize = new Size(evnt.Width, evnt.Height);

            if (newSize != _clientSize)
            {
                Resized(newSize);
            }

            return true;
        }
예제 #7
0
 protected override bool OnConfigureEvent(Gdk.EventConfigure args)
 {
     base.OnConfigureEvent(args);
     MainClass.Configure(args);
     return(true);
 }
예제 #8
0
 protected override bool OnConfigureEvent(EventConfigure evnt)
 {
     ((DefaultWorkbench)IdeApp.Workbench.RootWindow).SetActiveWidget (Focus);
     return base.OnConfigureEvent (evnt);
 }
예제 #9
0
        protected override bool OnConfigureEvent(EventConfigure ev)
        {
            foreach(Device d in GdkWindow.Display.ListDevices()) {
                if(d.Source == InputSource.Pen ||
                   d.Source == InputSource.Eraser ||
                   d.Source == InputSource.Mouse) {
                    d.SetMode(InputMode.Screen);
                }
            }

            return true;
        }
예제 #10
0
파일: Curve.cs 프로젝트: Yetangitu/f-spot
 protected override bool OnConfigureEvent(EventConfigure evnt)
 {
     pixmap = null;
     return base.OnConfigureEvent (evnt);
 }
예제 #11
0
 protected override bool OnConfigureEvent(Gdk.EventConfigure args)
 {
     base.OnConfigureEvent(args);
     storeActualWindowDimension();
     return(true);
 }
예제 #12
0
        /// <summary>
        /// Called when [configure event].
        /// </summary>
        /// <param name="evnt">The evnt.</param>
        /// <returns>Configured success</returns>
        protected override bool OnConfigureEvent(EventConfigure evnt)
        {
            bool result = base.OnConfigureEvent(evnt);

            this.isResized = true;
            if (this.gameApp != null && evnt.Width > 1 && evnt.Height > 1)
            {
                this.gameApp.ResizeScreen(evnt.Width, evnt.Height);
            }

            this.isResized = false;

            return result;
        }
예제 #13
0
		protected override bool OnConfigureEvent (EventConfigure ev)
		{
			if (surface != null) {
				surface.Dispose ();
			}

			surface = ev.Window.CreateSimilarSurface (Cairo.Content.Color, AllocatedWidth, AllocatedHeight);
			ClearSurface ();
			return true;
		}
예제 #14
0
 protected override bool OnConfigureEvent(EventConfigure evnt)
 {
     base.OnConfigureEvent(evnt);
     return false;
 }
예제 #15
0
		protected override bool OnConfigureEvent (EventConfigure evnt)
		{
			window_position.X = evnt.X;
			window_position.Y = evnt.Y;
			
			return base.OnConfigureEvent (evnt);
		}
예제 #16
0
        /* Event Handlers */

        //format = babl_format (RVAL2CSTR (r_format));

        public void HandleResize(object sender, ConfigureEventArgs args)
        {
            Gdk.EventConfigure ev = args.Event;
            Console.WriteLine("resized: " + ev.X + " " + ev.Y + " " + ev.Width + " " + ev.Height);
            Repaint(ev.Width, ev.Height);
        }