diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-16 21:56:41 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-16 21:56:41 -0400 |
| commit | ae7e86c24b6e853726beab12ff5b219cb9844fe4 (patch) | |
| tree | 00ae0a918519cea4a6e93a6fbaa5f47ea1bc7aca | |
| parent | 5903dffe3c3f4572491c6575d431f066faa03caf (diff) | |
Removed the ImageList proposal now that it's implemented.
| -rw-r--r-- | redo/proposals/imagelist.md | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/redo/proposals/imagelist.md b/redo/proposals/imagelist.md deleted file mode 100644 index 87e3650..0000000 --- a/redo/proposals/imagelist.md +++ /dev/null @@ -1,38 +0,0 @@ -# Images in Tables and Trees - -In yet another "blame Windows" moment: - -```go -type ImageList interface { - Add(image *image.Image) - Remove(index int) - Len() int -} -func NewImageList() ImageList - -type Table/Tree interface { - // ... - LoadImageList(ImageList) -} - -type ImageIndex int -``` - -For Table, a field of type ImageIndex represents an index into the ImageList. - -For Tree, there is a field ImageIndex which contains the index of the entry. - -Note the name of the methods on both being LoadImageList(): the image list is copied, and any future changes will **not** be reflected. (This is to accomodate check boxes in Table, which must be done manually.) - -Icons scale automatically to the best possible size. - -On Windows this is GetSystemMetrics(SM_CX/YSMICON) - -On GTK+ this will be determined by trial and error - [11:14] <LiamW> andlabs: probably - [11:14] <LiamW> GTK_ICON_SIZE_SMALL_TOOLBAR - [11:15] <baedert> the procedure is to just try all of them and see what looks best :p - -On Mac OS X this is rowHeight - -TODO which side does the scaling, C or Go? |
