本文整理汇总了C#中Gtk.Window.Fullscreen方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Fullscreen方法的具体用法?C# Window.Fullscreen怎么用?C# Window.Fullscreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Window
的用法示例。
在下文中一共展示了Window.Fullscreen方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DefaultFullscreen
private void DefaultFullscreen (Window window, bool fullscreen)
{
if (fullscreen) {
window.Fullscreen ();
} else {
window.Unfullscreen ();
}
}
示例2: NextPlayer
public static void NextPlayer(string name)
{
var but = new Gtk.Button( );
but.TooltipMarkup = "Po kliknutí bude hrát další hráč";
HBox hbox = new HBox();
global::Gtk.Image im = new global::Gtk.Image ();
Label l = new Label();
l.Markup = "Na tahu je hráč:\n <b>" + name + "</b>\n\nOK";
hbox.PackStart( im );
hbox.PackEnd( l );
but.Add( hbox );
var win = new Gtk.Window( Gtk.WindowType.Toplevel );
but.Clicked += delegate {
win.HideAll();
win.Dispose();
win.Destroy();
};
win.Add( but );
win.Fullscreen();
win.ShowAll();
}
示例3: 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 ();
}
}