コード例 #1
0
		protected virtual void SetView (PhotoImageView view)
		{
			if (controls != null)
				controls.Destroy ();

			controls = null;

			this.view = view;
			if (view == null)
				return;

			Widget w = CreateControls ();

			if (w != null) {
#if false
				ControlOverlay c = new ControlOverlay (view);
				c.AutoHide = false;
				w.ShowAll ();
				c.Add (w);
				c.Visibility = ControlOverlay.VisibilityType.Full;
				controls = c;
#else
				Window win = new Window (String.Format ("{0}", GetTitle ()));
				win.TransientFor = (Gtk.Window) view.Toplevel;
				win.Add (w);
				win.ShowAll ();
				win.DeleteEvent += delegate { Destroy (); };
				controls = win;
#endif
			}
			
		}
コード例 #2
0
        protected virtual void SetView(PhotoImageView view)
        {
            if (controls != null)
            {
                controls.Destroy();
            }

            controls = null;

            this.view = view;
            if (view == null)
            {
                return;
            }

            Widget w = CreateControls();

            if (w != null)
            {
#if false
                ControlOverlay c = new ControlOverlay(view);
                c.AutoHide = false;
                w.ShowAll();
                c.Add(w);
                c.Visibility = ControlOverlay.VisibilityType.Full;
                controls     = c;
#else
                Window win = new Window(String.Format("{0}", GetTitle()));
                win.TransientFor = (Gtk.Window)view.Toplevel;
                win.Add(w);
                win.ShowAll();
                win.DeleteEvent += delegate { Destroy(); };
                controls         = win;
#endif
            }
        }
コード例 #3
0
 public void AddSettingsGroup(PlayerSettingsGroup group)
 {
     gameplaySettingsOverlay.Add(group);
 }