本文整理汇总了C#中Gtk.Window.Maximize方法的典型用法代码示例。如果您正苦于以下问题:C# Window.Maximize方法的具体用法?C# Window.Maximize怎么用?C# Window.Maximize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Window
的用法示例。
在下文中一共展示了Window.Maximize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public static void Main(string[] args)
{
Application.Init ();
client = new AgarioClient ();
w = new Gtk.Window ("Agario gtk client");
w.Decorated = false;
w.Maximize ();
w.SetSizeRequest (1024, 768);
darea = new CairoGraphic (client);
darea.DoubleBuffered = true;
darea.SetSizeRequest (800, 800);
Box box = new HBox (false, 0);
box.Add (darea);
w.Add (box);
w.Resize (500, 500);
w.DeleteEvent += close_window;
w.ShowAll ();
w.KeyPressEvent += OnKeyPressEvent;
//Timer loop for ui display
new Timer (TimerCallback, null, 0, 20);
//Timer loop for mouse events
new Timer (UIControl, null, 0, 100);
Application.Run ();
}
示例2: InitGUI
/// <summary>
/// Initialize the user interface of the KeyboardCode app; in other words,
/// place all of the components/widgets that are part of the user interface
/// to the user interface. This method does not show the user interface;
/// it only places the components. Call the <see cref="Gtk.Window.ShowAll"/> method
/// to show the user interface
/// </summary>
private void InitGUI()
{
window = new Window ("KeyboardCode");
window.DeleteEvent += OnDeleteEvent;
window.SetSizeRequest(600, 500);
window.Maximize ();
}