Documentation ¶
Index ¶
- Constants
- func BindImagePreview(connector WidgetConnector)
- func NewPopoverMentioner(rel gtk.IWidget, input string, segment text.Segment) *gtk.Popover
- func PopoverMentioner(rel gtk.IWidget, input string, mention text.Segment)
- func PromptOpen(uri string)
- type BoundBox
- type Label
- type ReferenceHighlighter
- type WidgetConnector
Constants ¶
View Source
const ( AvatarSize = 96 PopoverWidth = 250 MaxWidth = 500 MaxHeight = 500 )
Variables ¶
This section is empty.
Functions ¶
func BindImagePreview ¶
func BindImagePreview(connector WidgetConnector)
BindImagePreview binds activate-link to the label callback so that images have a popover preview.
func NewPopoverMentioner ¶
func PromptOpen ¶
func PromptOpen(uri string)
PromptOpen shows a dialog asking if the URL should be opened.
Types ¶
type BoundBox ¶
type BoundBox struct {
// contains filtered or unexported fields
}
BoundBox is a box wrapping elements that can be interacted with from the parsed labels.
func BindRichLabel ¶
func (*BoundBox) SetReferenceHighlighter ¶
func (bound *BoundBox) SetReferenceHighlighter(refer ReferenceHighlighter)
type ReferenceHighlighter ¶
type ReferenceHighlighter interface {
HighlightReference(ref markup.ReferenceSegment)
}
type WidgetConnector ¶
type WidgetConnector interface { gtk.IWidget primitives.Connector }
WidgetConnector describes a connector that is also a widget.
Click to show internal directories.
Click to hide internal directories.