summaryrefslogtreecommitdiff
path: root/imagelist_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-02-17 17:13:40 -0500
committerPietro Gagliardi <[email protected]>2015-02-17 17:14:09 -0500
commit62d9ae07ade0857e838e5e10502a34501f88fd04 (patch)
treea4bfebb7b17eb1ab5eb9ec2995c99dd61a2b69f7 /imagelist_darwin.go
parent010c989da9202f7261a98671377054867ba0d46d (diff)
Beginning the integration of the new Windows Table, which starts with removing ImageList. Darwin code will still be kept pending the use of its code. Windows code will be kept until I confirm nothing is used.
Diffstat (limited to 'imagelist_darwin.go')
-rw-r--r--imagelist_darwin.go38
1 files changed, 0 insertions, 38 deletions
diff --git a/imagelist_darwin.go b/imagelist_darwin.go
deleted file mode 100644
index add9584..0000000
--- a/imagelist_darwin.go
+++ /dev/null
@@ -1,38 +0,0 @@
-// 16 august 2014
-
-package ui
-
-import (
- "image"
- "unsafe"
-)
-
-// #include "objc_darwin.h"
-import "C"
-
-type imagelist struct {
- list []C.id
-}
-
-func newImageList() ImageList {
- return new(imagelist)
-}
-
-func (i *imagelist) Append(img *image.RGBA) {
- id := C.toImageListImage(
- unsafe.Pointer(pixelData(img)), C.intptr_t(img.Rect.Dx()), C.intptr_t(img.Rect.Dy()), C.intptr_t(img.Stride))
- i.list = append(i.list, id)
-}
-
-func (i *imagelist) Len() ImageIndex {
- return ImageIndex(len(i.list))
-}
-
-type imageListApply interface {
- apply(*[]C.id)
-}
-
-func (i *imagelist) apply(out *[]C.id) {
- *out = make([]C.id, len(i.list))
- copy(*out, i.list)
-}