diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-12 21:02:47 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-12 21:02:47 -0400 |
| commit | 503364af519baae1ea72c6ce90981622db8ea7f8 (patch) | |
| tree | ece30e8e230622fd65ccea5500317b12557c8d8d | |
| parent | 6dcda6aafaa62e085e033038fce2e2e7ef6e25d4 (diff) | |
Added a proposal for a Sidebar control.
| -rw-r--r-- | redo/proposals/sidebar.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/redo/proposals/sidebar.md b/redo/proposals/sidebar.md new file mode 100644 index 0000000..fa23392 --- /dev/null +++ b/redo/proposals/sidebar.md @@ -0,0 +1,32 @@ +# Sidebar Control + +```go +type Sidebar interface { + Control + + AppendCategory(text string) + DeleteCategory(index int) + + AppendItem(category int, name string) + DeleteItem(category int, index int) + + Selection() (category int, index int) // or Selected()? + Select(category int, index int) + + OnSelected(func()) +} +``` + +Simple two-level sidebars. + +Could have images on each item in the future. + +## Mac OS X +Source List NSTableView (need to see how this will work) + +## GTK+ +GTK_STYLE_CLASS_SIDEBAR (available in 3.4); see how GtkPlacesSidebar implements this + - other programs that do: Rhythmbox + +## Windows +???? |
