package
0.0.0-20240817140251-aa2fb5bc486d
Repository: https://github.com/diamondburned/gotkit.git
Documentation: pkg.go.dev
# Functions
AppendURLSize appends into the URL fragments the width and height parameters.
AsyncGET GETs the given URL and calls f in the main loop.
AsyncGETIcon GETs the given URL as a GIcon and calls f in the main loop.
DoProviderURL invokes a Provider with the given URI string (instead of a *url.URL instance).
FetchImageToFile fetches an image from the given URL and saves it to the given file.
FFmpegThumbnail fetches the thumbnail of the given URL and returns the path to the file.
GET gets the given URL into a Paintable.
IconPaintable gets the icon with the given name and returns the size.
ImageSetterFromImage returns an ImageSetter for a gtk.Image.
ImageSetterFromPicture returns an ImageSetter for a gtk.Picture.
MaxSize returns the maximum size that can fit within the given max width and height.
NewProviders creates a new Providers instance.
OptsError calls Error on the Opts inside the context.
OptsFromContext gets the Opts from the given context.
ParseURLSize parses the optional width and height fragments from the URL.
WithDoneFn is like WithErrorFn, except it's called once the routine is done on the main thread with a possibly nil error.
WithErrorFn adds a callback that is called on an error.
WithFallbackIcon makes image functions use the icon as the image given into the callback instead of a nil one.
WithMaxSize sets the maximum size of the image.
WithOpts injects the given imgutil.OptFunc options into the context.
WithRectRescale is a convenient function around WithRescale for rectangular or circular images.
WithRescale rescales the image to the given max width and height while respecting its aspect ratio.
WithSizeOverrider overrides the widget's size request to be of the given size.
# Variables
7 days cache.
FFmpegProvider implements imgutil.Provider and uses FFmpeg to render the image using a given HTTP(S) URL.
FileProvider is the universal resource provider for a file (file://).
HTTPProvider is the universal resource provider that handles HTTP and HTTPS schemes (http:// and https://).
# Structs
FFmpegOpts is the options for FFmpeg.
ImageSetter contains functions for setting images fetched from a Provider.
No description provided by the author
# Interfaces
Provider describes a universal resource provider.