forked from google/gxui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.go
More file actions
25 lines (23 loc) · 664 Bytes
/
Copy pathlist.go
File metadata and controls
25 lines (23 loc) · 664 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
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gxui
type List interface {
Focusable
Parent
Adapter() Adapter
SetAdapter(Adapter)
SetOrientation(Orientation)
Orientation() Orientation
BorderPen() Pen
SetBorderPen(Pen)
BackgroundBrush() Brush
SetBackgroundBrush(Brush)
ScrollTo(AdapterItemId)
IsItemVisible(AdapterItemId) bool
Item(AdapterItemId) Control
Selected() AdapterItemId
Select(AdapterItemId)
OnSelectionChanged(func(AdapterItemId)) EventSubscription
OnItemClicked(func(MouseEvent, AdapterItemId)) EventSubscription
}