Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkupHoverPopover ¶
type MarkupHoverPopover struct {
// contains filtered or unexported fields
}
MarkupHoverPopover is a struct that represents a hover popover that is displayed when the user hovers over a widget. The popover only displays markup text. Markup texts are persisted across hovers.
Popovers are lazily allocated, so they are only created when the user hovers over a widget. They are automatically destroyed a moment after the user stops hovering over the widget.
func NewMarkupHoverPopover ¶
func NewMarkupHoverPopover(parent gtk.Widgetter, initFn func(*MarkupHoverPopoverWidget) bool) *MarkupHoverPopover
NewMarkupHoverPopover creates a new MarkupHoverPopover.
type MarkupHoverPopoverWidget ¶
type MarkupHoverPopoverWidget struct { *gtk.Popover Label *gtk.Label }
MarkupHoverPopoverWidget is a struct that represents a popover widget that displays markup text.
type PopoverButton ¶
type PopoverButton struct { *gtk.ToggleButton // contains filtered or unexported fields }
PopoverButton extends a ToggleButton to show a popover when toggled.
func NewPopoverButton ¶
func NewPopoverButton(initFn func(*gtk.Popover) bool) *PopoverButton
NewPopoverButton creates a new PopoverButton.
type PopoverController ¶
type PopoverController struct {
// contains filtered or unexported fields
}
PopoverController provides a way to open and close a popover while also reusing the widget if it's been open recently.
func NewPopoverController ¶
func NewPopoverController(parent gtk.Widgetter, initFn func(*gtk.Popover) bool) *PopoverController
NewPopoverController creates a new PopoverController.
func (*PopoverController) IsPoppedUp ¶
func (p *PopoverController) IsPoppedUp() bool
IsPoppedUp returns whether the popover is popped up.
func (*PopoverController) Popdown ¶
func (p *PopoverController) Popdown()
Popdown pops down the popover.
func (*PopoverController) Popup ¶
func (p *PopoverController) Popup() *gtk.Popover
Popup pops up the popover.