-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlayout.go
More file actions
29 lines (26 loc) · 798 Bytes
/
Copy pathlayout.go
File metadata and controls
29 lines (26 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// Copyright (c) 2014 Stanley Steel
package view
import (
"github.com/sesteel/go-view/event"
)
// Layouts are special types that provide strategies
// for dividing the view space among components.
// They are charged with several important responsibilities:
//
// - They mask or otherwise protect the rest of the
// target view surface from unintended drawing.
//
// - They define the boundries from which a component
// or other composite view can be rendered
//
// - They distribute events to their child components
//
type Layout interface {
Drawer
Animator
event.MouseHandler
}