本文整理汇总了C#中Gtk.Window.Unfullscreen方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Unfullscreen方法的具体用法?C# Window.Unfullscreen怎么用?C# Window.Unfullscreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Window
的用法示例。
在下文中一共展示了Window.Unfullscreen方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DefaultFullscreen
private void DefaultFullscreen (Window window, bool fullscreen)
{
if (fullscreen) {
window.Fullscreen ();
} else {
window.Unfullscreen ();
}
}
示例2: Fullscreen
public void Fullscreen (Window window, bool fullscreen)
{
is_fullscreen = fullscreen;
// Create the Bacon X11 Resizer if we haven't before or the window changes
if (resize == null || resize.Window != window) {
if (resize != null) {
resize.Dispose ();
}
resize = new BaconResize (window);
Log.DebugFormat ("X11 Fullscreen Window Set (HaveXVidMode = {0})", resize.HaveXVidMode);
}
// Do the default GTK fullscreen operation
if (fullscreen) {
window.Fullscreen ();
} else {
window.Unfullscreen ();
}
// Skip if we don't support xvidmode, otherwise do the good resizing
if (!resize.HaveXVidMode) {
return;
}
if (fullscreen) {
resize.Resize ();
} else {
resize.Restore ();
}
}