本文整理汇总了C#中Gtk.Window.Realize方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Realize方法的具体用法?C# Window.Realize怎么用?C# Window.Realize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Window
的用法示例。
在下文中一共展示了Window.Realize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NowPlayingInterface
public NowPlayingInterface ()
{
GtkElementsService service = ServiceManager.Get<GtkElementsService> ();
primary_window = service.PrimaryWindow;
Contents = new NowPlayingContents ();
// This is my really sweet hack - it's where the video widget
// is sent when the source is not active. This keeps the video
// widget from being completely destroyed, causing problems with
// its internal windowing and GstXOverlay. It's also conveniently
// the window that is used to do fullscreen video. Sweeeeeeeeeet.
video_window = new FullscreenWindow (service.PrimaryWindow);
video_window.Hidden += OnFullscreenWindowHidden;
video_window.Realize ();
video_window.Add (Contents);
frame = new Hyena.Widgets.RoundedFrame ();
frame.SetFillColor (new Cairo.Color (0, 0, 0));
frame.DrawBorder = false;
frame.Show ();
PackStart (frame, true, true, 0);
fullscreen_adapter = new FullscreenAdapter ();
fullscreen_adapter.SuggestUnfullscreen += OnAdapterSuggestUnfullscreen;
screensaver = new ScreensaverManager ();
}
示例2: SetupFullscreenHandling
protected void SetupFullscreenHandling()
{
GtkElementsService service = ServiceManager.Get<GtkElementsService> ();
fullscreen_adapter = new FullscreenAdapter ();
screensaver = new ScreensaverManager ();
video_window = new FullscreenWindow (service.PrimaryWindow);
video_window.Hidden += OnFullscreenWindowHidden;
video_window.Realize ();
}