Documentation
¶
Index ¶
- func GdkButton(event *GdkEventButton) (int, int, int, int)
- func GdkConfigure(top *WindowWidget, layout *FrameWidget) (int, int, int, int)
- func GdkKey(event *GdkEventKey) (rune, bool, bool, bool, bool, string)
- func GdkMotion(event *GdkEventMotion) (int, int, bool, bool, bool, bool)
- func GdkScroll(event *GdkEventScroll) (int, int, int)
- func NotifyWeakRef(object *C.GObject, callback func(data uintptr), data uintptr)
- func RequestClipboardText(callback func(text string))
- func SetClipboardText(text string)
- func SignalDrawCallback(callback func(cr *Cairo, h *cgo.Handle))
- func SignalMenuItemActivateCallback(callback func(h *cgo.Handle))
- type Application
- func (app *Application) GActionMap() *C.GActionMap
- func (app *Application) GApplication() *C.GApplication
- func (app *Application) GObject() *C.GObject
- func (app *Application) GPointer() C.gpointer
- func (app *Application) GtkApplication() *C.GtkApplication
- func (app *Application) NewMenu() *Menu
- func (app *Application) NewMenuAction(action string) *MenuAction
- func (app *Application) NewWindow() *WindowWidget
- func (app *Application) Quit()
- func (app *Application) Run()
- func (app *Application) SetName(name string)
- func (app *Application) SignalActivate(callback func())
- func (app *Application) SignalShutdown(callback func())
- type Cairo
- type CairoBitmap
- type CairoFillPaint
- type CairoImagePaint
- type CairoLinePaint
- type CairoTextPaint
- type FontSelection
- type FrameWidget
- type GdkEventButton
- type GdkEventConfigure
- type GdkEventKey
- type GdkEventMotion
- type GdkEventScroll
- type Menu
- type MenuAction
- type MenuItem
- type MenuNode
- type WatchIO
- type Widget
- func (widget *Widget) Destroy()
- func (widget *Widget) GObject() *C.GObject
- func (widget *Widget) GPointer() C.gpointer
- func (parent *Widget) NewFixed() *FrameWidget
- func (parent *Widget) NewLayout() *FrameWidget
- func (widget *Widget) Show()
- func (widget *Widget) ShowAll()
- func (widget *Widget) SignalButtonPress(callback func(event *GdkEventButton))
- func (widget *Widget) SignalButtonRelease(callback func(event *GdkEventButton))
- func (widget *Widget) SignalConfigure(callback func())
- func (widget *Widget) SignalDelete(callback func())
- func (widget *Widget) SignalDraw(h *cgo.Handle)
- func (widget *Widget) SignalKeyPress(callback func(event *GdkEventKey))
- func (widget *Widget) SignalMotionNotify(callback func(event *GdkEventMotion))
- func (widget *Widget) SignalScroll(callback func(event *GdkEventScroll))
- func (widget *Widget) SignalSizeAllocate(callback func())
- func (widget *Widget) Widget() *C.GtkWidget
- type WindowWidget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GdkConfigure ¶
func GdkConfigure(top *WindowWidget, layout *FrameWidget) (int, int, int, int)
func NotifyWeakRef ¶
func RequestClipboardText ¶
func RequestClipboardText(callback func(text string))
func SetClipboardText ¶
func SetClipboardText(text string)
func SignalDrawCallback ¶
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication() *Application
func (*Application) GActionMap ¶
func (app *Application) GActionMap() *C.GActionMap
func (*Application) GApplication ¶
func (app *Application) GApplication() *C.GApplication
func (*Application) GObject ¶
func (app *Application) GObject() *C.GObject
func (*Application) GPointer ¶
func (app *Application) GPointer() C.gpointer
func (*Application) GtkApplication ¶
func (app *Application) GtkApplication() *C.GtkApplication
func (*Application) NewMenu ¶
func (app *Application) NewMenu() *Menu
func (*Application) NewMenuAction ¶
func (app *Application) NewMenuAction(action string) *MenuAction
func (*Application) NewWindow ¶
func (app *Application) NewWindow() *WindowWidget
func (*Application) Quit ¶
func (app *Application) Quit()
func (*Application) Run ¶
func (app *Application) Run()
func (*Application) SetName ¶
func (app *Application) SetName(name string)
func (*Application) SignalActivate ¶
func (app *Application) SignalActivate(callback func())
func (*Application) SignalShutdown ¶
func (app *Application) SignalShutdown(callback func())
type CairoBitmap ¶
type CairoBitmap struct {
// contains filtered or unexported fields
}
func NewCairoBitmap ¶
func NewCairoBitmap(data []byte, width, height int) *CairoBitmap
func (*CairoBitmap) Destroy ¶
func (e *CairoBitmap) Destroy()
type CairoFillPaint ¶
type CairoFillPaint struct {
// contains filtered or unexported fields
}
func NewCairoFillPaint ¶
func NewCairoFillPaint(x, y, width, height int, r, g, b, a uint16) *CairoFillPaint
func (*CairoFillPaint) Paint ¶
func (e *CairoFillPaint) Paint(c *Cairo)
type CairoImagePaint ¶
type CairoImagePaint struct {
// contains filtered or unexported fields
}
func NewCairoImagePaint ¶
func NewCairoImagePaint(x, y, width, height int, image *CairoBitmap) *CairoImagePaint
func (*CairoImagePaint) Paint ¶
func (e *CairoImagePaint) Paint(c *Cairo)
type CairoLinePaint ¶
type CairoLinePaint struct {
// contains filtered or unexported fields
}
func NewCairoLinePaint ¶
func NewCairoLinePaint(x0, y0, x1, y1 int, r, g, b, a uint16) *CairoLinePaint
func (*CairoLinePaint) Paint ¶
func (e *CairoLinePaint) Paint(c *Cairo)
type CairoTextPaint ¶
type CairoTextPaint struct {
// contains filtered or unexported fields
}
func NewCairoTextPaint ¶
func NewCairoTextPaint(x, y int, r, g, b, a uint16, font *FontSelection, text string) *CairoTextPaint
func (*CairoTextPaint) Destroy ¶
func (e *CairoTextPaint) Destroy()
func (*CairoTextPaint) Paint ¶
func (e *CairoTextPaint) Paint(c *Cairo)
type FontSelection ¶
type FontSelection struct {
// contains filtered or unexported fields
}
func NewFontSelection ¶
func (*FontSelection) Free ¶
func (f *FontSelection) Free()
type FrameWidget ¶
type FrameWidget struct { *Widget // contains filtered or unexported fields }
type FrameWidget contain GtkLayout, GtkFixed or DrawingArea widget
func (*FrameWidget) Move ¶
func (frame *FrameWidget) Move(x, y int)
func (*FrameWidget) NewDrawingArea ¶
func (parent *FrameWidget) NewDrawingArea() *FrameWidget
func (*FrameWidget) QueueDraw ¶
func (frame *FrameWidget) QueueDraw()
func (*FrameWidget) Raise ¶
func (frame *FrameWidget) Raise()
func (*FrameWidget) Size ¶
func (frame *FrameWidget) Size(width, height int)
type GdkEventButton ¶
type GdkEventButton C.GdkEventButton
type GdkEventConfigure ¶
type GdkEventConfigure C.GdkEventConfigure
type GdkEventKey ¶
type GdkEventKey C.GdkEventKey
type GdkEventMotion ¶
type GdkEventMotion C.GdkEventMotion
type GdkEventScroll ¶
type GdkEventScroll C.GdkEventScroll
type MenuAction ¶
type MenuAction struct {
// contains filtered or unexported fields
}
func (*MenuAction) Destroy ¶
func (action *MenuAction) Destroy()
func (*MenuAction) GObject ¶
func (action *MenuAction) GObject() *C.GObject
func (*MenuAction) SignalMenuItemActivate ¶
func (action *MenuAction) SignalMenuItemActivate(h *cgo.Handle)
type WatchIO ¶
type WatchIO struct {
// contains filtered or unexported fields
}
func NewRequestIO ¶
func NewStreamIO ¶
type Widget ¶
type Widget struct {
// contains filtered or unexported fields
}
func (*Widget) NewFixed ¶
func (parent *Widget) NewFixed() *FrameWidget
func (*Widget) NewLayout ¶
func (parent *Widget) NewLayout() *FrameWidget
func (*Widget) SignalButtonPress ¶
func (widget *Widget) SignalButtonPress(callback func(event *GdkEventButton))
func (*Widget) SignalButtonRelease ¶
func (widget *Widget) SignalButtonRelease(callback func(event *GdkEventButton))
func (*Widget) SignalConfigure ¶
func (widget *Widget) SignalConfigure(callback func())
func (*Widget) SignalDelete ¶
func (widget *Widget) SignalDelete(callback func())
func (*Widget) SignalDraw ¶
func (*Widget) SignalKeyPress ¶
func (widget *Widget) SignalKeyPress(callback func(event *GdkEventKey))
func (*Widget) SignalMotionNotify ¶
func (widget *Widget) SignalMotionNotify(callback func(event *GdkEventMotion))
func (*Widget) SignalScroll ¶
func (widget *Widget) SignalScroll(callback func(event *GdkEventScroll))
func (*Widget) SignalSizeAllocate ¶
func (widget *Widget) SignalSizeAllocate(callback func())
type WindowWidget ¶
type WindowWidget struct {
*Widget
}
type WindowWidget contain GtkApplicationWindow widget
func (*WindowWidget) GtkWindow ¶
func (widget *WindowWidget) GtkWindow() *C.GtkWindow
func (*WindowWidget) Size ¶
func (widget *WindowWidget) Size(x, y, width, height int)
Click to show internal directories.
Click to hide internal directories.