Documentation ¶
Index ¶
- Constants
- func AddCSSUnsafe(style *gtk.StyleContext, CSS string)
- func AsContainer(w gtk.IWidget) *gtk.Container
- func Bold(str string) string
- func Connect(connector Connector, event string, cb interface{})
- func DiffClass(old *string, new string, style *gtk.StyleContext)
- func DiffClassUnsafe(old *string, new string, style *gtk.StyleContext)
- func Escape(str string) string
- func EventIsLeftClick(ev *gdk.Event) bool
- func EventIsRightClick(ev *gdk.Event) bool
- func HandyDialog(dialog Dialoger, transientFor gtk.IWindow) *handy.Dialog
- func HasProperty(obj Object, name string) bool
- func ImageSetIcon(img *gtk.Image, icon string, px int)
- func InjectCSS(g StyleContextGetter, class, CSS string)
- func InjectCSSUnsafe(g StyleContextGetter, class, CSS string)
- func KeyIsASCII(key uint) bool
- func Margin(w Marginator, sz int)
- func Margin2(w Marginator, top, left int)
- func Margin4(w Marginator, top, bottom, left, right int)
- func NAddButtonWithTargetValue(n *glib.Notification, label, action string, target *glib.Variant)
- func NSetDefaultActionAndTargetValue(n *glib.Notification, action string, target *glib.Variant)
- func NthChildren(container Container, i int) *gtk.Widget
- func OpenURI(uri string)
- func TransferMargin(dst, src Marginator)
- func TraverseWidget(container Container, fn func(*gtk.Widget))
- func WindowSetEvents(w *gdk.Window, events gdk.EventMask)
- func WrapBox(orient gtk.Orientation, widgets ...gtk.IWidget) *gtk.Box
- type Connector
- type Container
- type Dialoger
- type ExtendedWidget
- type Marginator
- type Namer
- type Object
- type ScrollablePolicy
- type SizeRequester
- type StyleContextGetter
- type WidgetConnector
- type WidgetDestroyer
- type WidgetSizeRequester
Constants ¶
View Source
const ( SCROLL_MINIMUM = C.GTK_SCROLL_MINIMUM SCROLL_NATURAL = C.GTK_SCROLL_NATURAL )
Variables ¶
This section is empty.
Functions ¶
func AddCSSUnsafe ¶
func AddCSSUnsafe(style *gtk.StyleContext, CSS string)
func DiffClassUnsafe ¶
func DiffClassUnsafe(old *string, new string, style *gtk.StyleContext)
func EventIsLeftClick ¶
func EventIsRightClick ¶
func HasProperty ¶
func InjectCSS ¶
func InjectCSS(g StyleContextGetter, class, CSS string)
func InjectCSSUnsafe ¶
func InjectCSSUnsafe(g StyleContextGetter, class, CSS string)
func KeyIsASCII ¶
func Margin ¶
func Margin(w Marginator, sz int)
func Margin2 ¶
func Margin2(w Marginator, top, left int)
func Margin4 ¶
func Margin4(w Marginator, top, bottom, left, right int)
func NAddButtonWithTargetValue ¶
func NAddButtonWithTargetValue(n *glib.Notification, label, action string, target *glib.Variant)
func NSetDefaultActionAndTargetValue ¶
func NSetDefaultActionAndTargetValue(n *glib.Notification, action string, target *glib.Variant)
func TransferMargin ¶
func TransferMargin(dst, src Marginator)
func TraverseWidget ¶
fn() == true => break
Types ¶
type Connector ¶
type Connector interface {
Connect(string, interface{}, ...interface{}) (glib.SignalHandle, error)
}
type ExtendedWidget ¶
type Marginator ¶
type ScrollablePolicy ¶
type ScrollablePolicy int
type SizeRequester ¶
type SizeRequester interface {
SetSizeRequest(w, h int)
}
type StyleContextGetter ¶
type StyleContextGetter interface {
GetStyleContext() (*gtk.StyleContext, error)
}
type WidgetConnector ¶
type WidgetDestroyer ¶
Click to show internal directories.
Click to hide internal directories.