Documentation ¶
Index ¶
- type Application
- type NewRendererSetter
- type Renderer
- func (r *Renderer) AspectRatio() float64
- func (r *Renderer) Close() error
- func (r *Renderer) QueueDraw()
- func (r *Renderer) SetBackground(img image.Image)
- func (r *Renderer) SetBackgroundSolid(solid color.RGBA)
- func (r *Renderer) SetSize(w, h int)
- func (r *Renderer) Size() image.Point
- func (r *Renderer) ToneMap() *xirho.ToneMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { gtk.ApplicationWindow // contains filtered or unexported fields }
func New ¶
func New(mainApp *gtk.Application) *Application
func (*Application) PromptNewRenderer ¶
func (app *Application) PromptNewRenderer()
func (*Application) SaveRenderer ¶
func (app *Application) SaveRenderer()
func (*Application) SetNewRenderer ¶
func (app *Application) SetNewRenderer(file string, w, h int)
type NewRendererSetter ¶
type Renderer ¶
func NewRenderer ¶
NewRenderer creates a new Renderer that's specific to the given file.
func (*Renderer) AspectRatio ¶
AspectRatio gets the recommended aspect ratio.
func (*Renderer) SetBackground ¶
SetBackground sets the background of the output. Doing so will wipe everything on the pixbuf canvas.
func (*Renderer) SetBackgroundSolid ¶
SetBackgroundSolid sets the background of the output to a solid color instead of an image. This will wipe the canvas clean.
Click to show internal directories.
Click to hide internal directories.