Documentation ¶
Index ¶
- func FrameBuffer(m rv.RenderModel)
- func GdkPixelCopy(source *image.RGBA, target *gdkpixbuf.Pixbuf, region image.Rectangle, ...)
- func GdkPixelCopyNRGBA(source *image.NRGBA, target *gdkpixbuf.Pixbuf, region image.Rectangle, ...)
- func GetGtkWindow(r rv.RenderModel, addWidgets bool) *gtk.Window
- func GtkWindowInit(r rv.RenderModel)
- func GtkWindowWithWidgetsInit(r rv.RenderModel)
- func Main(m rv.RenderModel)
- func WrapRenderWidget(r *GtkRenderWidget) gtk.IWidget
- type GtkParamWidget
- type GtkRenderWidget
- func (w *GtkRenderWidget) Configure()
- func (w *GtkRenderWidget) Draw(ctx *glib.CallbackContext)
- func (w *GtkRenderWidget) OnButton(e *gdk.EventButton)
- func (w *GtkRenderWidget) OnKeyPress(e *gdk.EventKey)
- func (w *GtkRenderWidget) OnMotion(e *gdk.EventMotion)
- func (w *GtkRenderWidget) OnScroll(e *gdk.EventScroll)
- func (w *GtkRenderWidget) SetNeedsPaint()
- func (w *GtkRenderWidget) UpdateParamWidgets()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FrameBuffer ¶
func FrameBuffer(m rv.RenderModel)
FrameBuffer sets up a GTK2 Window and runs a mainloop rendering the RenderModel
func GdkPixelCopy ¶
func GdkPixelCopyNRGBA ¶
func GetGtkWindow ¶
func GetGtkWindow(r rv.RenderModel, addWidgets bool) *gtk.Window
func GtkWindowInit ¶
func GtkWindowInit(r rv.RenderModel)
func GtkWindowWithWidgetsInit ¶
func GtkWindowWithWidgetsInit(r rv.RenderModel)
func Main ¶
func Main(m rv.RenderModel)
Main sets up a GTK2 Window with widgets for editing parameters and runs a mainloop rendering the RenderModel
func WrapRenderWidget ¶
func WrapRenderWidget(r *GtkRenderWidget) gtk.IWidget
Types ¶
type GtkParamWidget ¶
type GtkParamWidget struct { gtk.IWidget P rv.RenderParameter }
func NewGtkParamWidget ¶
func NewGtkParamWidget(p rv.RenderParameter, w *GtkRenderWidget) *GtkParamWidget
func (*GtkParamWidget) Update ¶
func (w *GtkParamWidget) Update()
type GtkRenderWidget ¶
type GtkRenderWidget struct { *gtk.DrawingArea Image image.Image R rv.RenderModel ParamWidgets []*GtkParamWidget // contains filtered or unexported fields }
func NewGtkRenderWidget ¶
func NewGtkRenderWidget(r rv.RenderModel) *GtkRenderWidget
func (*GtkRenderWidget) Configure ¶
func (w *GtkRenderWidget) Configure()
func (*GtkRenderWidget) Draw ¶
func (w *GtkRenderWidget) Draw(ctx *glib.CallbackContext)
func (*GtkRenderWidget) OnButton ¶
func (w *GtkRenderWidget) OnButton(e *gdk.EventButton)
func (*GtkRenderWidget) OnKeyPress ¶
func (w *GtkRenderWidget) OnKeyPress(e *gdk.EventKey)
func (*GtkRenderWidget) OnMotion ¶
func (w *GtkRenderWidget) OnMotion(e *gdk.EventMotion)
func (*GtkRenderWidget) OnScroll ¶
func (w *GtkRenderWidget) OnScroll(e *gdk.EventScroll)
func (*GtkRenderWidget) SetNeedsPaint ¶
func (w *GtkRenderWidget) SetNeedsPaint()
func (*GtkRenderWidget) UpdateParamWidgets ¶
func (w *GtkRenderWidget) UpdateParamWidgets()
Click to show internal directories.
Click to hide internal directories.