2
// IWindowFrameBackend.cs
5
// Lluis Sanchez <lluis@xamarin.com>
7
// Copyright (c) 2011 Xamarin Inc
9
// Permission is hereby granted, free of charge, to any person obtaining a copy
10
// of this software and associated documentation files (the "Software"), to deal
11
// in the Software without restriction, including without limitation the rights
12
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
// copies of the Software, and to permit persons to whom the Software is
14
// furnished to do so, subject to the following conditions:
16
// The above copyright notice and this permission notice shall be included in
17
// all copies or substantial portions of the Software.
19
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29
namespace Xwt.Backends
31
public interface IWindowFrameBackend: IBackend
33
void Initialize (IWindowFrameEventSink eventSink);
37
/// Size and position of the window content in screen coordinates
39
Rectangle Bounds { get; set; }
40
void Move (double x, double y);
43
/// Sets the size of the window
45
/// <param name='width'>
48
/// <param name='height'>
53
void Resize (double width, double height);
55
bool Visible { get; set; }
56
string Title { get; set; }
58
bool Decorated { get; set; }
59
bool ShowInTaskbar { get; set; }
60
void SetTransientFor (IWindowFrameBackend window);
61
bool Resizable { get; set; }
63
void SetIcon (object imageBackend);
66
/// Presents a window to the user. This may mean raising the window in the stacking order,
67
/// deiconifying it, moving it to the current desktop, and/or giving it the keyboard focus
72
public interface IWindowFrameEventSink
74
void OnBoundsChanged (Rectangle bounds);
77
bool OnCloseRequested ();
81
public enum WindowFrameEvent