| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using Avalonia.Controls;
- using Avalonia.Gtk3.Interop;
- using Avalonia.Platform;
- namespace Avalonia.Gtk3
- {
- class WindowImpl : TopLevelImpl, IWindowImpl
- {
- public WindowState WindowState { get; set; } //STUB
- public void SetTitle(string title)
- {
- using (var t = new Utf8Buffer(title))
- Native.GtkWindowSetTitle(GtkWidget, t);
- }
- public IDisposable ShowDialog()
- {
- return null;
- //STUB
- }
- public void SetSystemDecorations(bool enabled) => Native.GtkWindowSetDecorated(GtkWidget, enabled);
- public void SetIcon(IWindowIconImpl icon)
- {
- //STUB
- }
- public WindowImpl() : base(Native.GtkWindowNew(GtkWindowType.TopLevel))
- {
- }
- public void SetCoverTaskbarWhenMaximized(bool enable)
- {
- //Why do we even have that?
- }
- }
- }
|