当前位置: 首页>>代码示例>>C#>>正文


C# Window.Realize方法代码示例

本文整理汇总了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 ();
        }
开发者ID:gclark916,项目名称:banshee,代码行数:28,代码来源:NowPlayingInterface.cs

示例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 ();
        }
开发者ID:nailyk,项目名称:banshee-community-extensions,代码行数:11,代码来源:ClutterFlowContents.cs


注:本文中的Gtk.Window.Realize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。