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 IPanedBackend: IWidgetBackend
34
/// Initializes the paned
36
/// <param name='dir'>
37
/// Orientation of the paned
39
void Initialize (Orientation dir);
42
/// Gets or sets the position of the panel separator
47
double Position { get; set; }
50
/// Sets the content of a panel
52
/// <param name='panel'>
53
/// Panel number: 1 or 2
55
/// <param name='widget'>
58
/// <param name='resize'>
59
/// If set to <c>true</c> the panel is resized when the Paned view is resized
61
void SetPanel (int panel, IWidgetBackend widget, bool resize, bool shrink);
64
/// Updates the panel settings
66
/// <param name='panel'>
67
/// Panel number: 1 or 2
69
/// <param name='resize'>
70
/// If set to <c>true</c> the panel is resized when the Paned view is resized
72
void UpdatePanel (int panel, bool resize, bool shrink);
75
/// Removes the content of a panel.
77
/// <param name='panel'>
78
/// Panel number: 1 or 2
80
void RemovePanel (int panel);
83
public interface IPanedEventSink: IWidgetEventSink
85
void OnPositionChanged ();
88
public enum PanedEvent