mojbro / gocoa

Go bindings for the Cocoa framework to build macOS applications
MIT License
68 stars 17 forks source link

Implement ImageView #8

Closed StarHack closed 3 years ago

StarHack commented 3 years ago

Implements a very basic ImageView exposing various functions.

Example:

imageView := gocoa.NewImageView(75, 75, 200, 100, "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png")
imageView.SetImageFrameStyle(gocoa.FrameStyleNone)
imageView.SetImageAlignment(gocoa.ImageAlignBottomRight)
imageView.SetImageScaling(gocoa.ImageScalingScaleProportionallyUpOrDown)
imageView.SetContentTintColor("#FF0000FF")
imageView.SetEditable(false)
wnd.AddImageView(imageView)

asdf

url can be either remote (https://) or local (file://).

@mojbro @phaus

mojbro commented 3 years ago

❤️