Versions in this module Expand all Collapse all v1 v1.1.0 Jul 11, 2024 Changes in this version type Claim + func NewClaimWithTimestamp(window *xwindow.Window, selection xproto.Atom, data Data, ...) *Claim v1.0.1 Jun 30, 2023 Changes in this version + type Claim struct + func NewClaim(window *xwindow.Window, selection xproto.Atom, data Data) *Claim + func (claim *Claim) HandleSelectionRequest(connection *xgbutil.XUtil, event xevent.SelectionRequestEvent) + type Confidence int + const ConfidenceFull + const ConfidenceNone + const ConfidencePartial + type Data interface + Convert func(Target) (reader io.ReadSeekCloser, ok bool) + Supported func() []Target + type Request struct + func NewRequest(requestor Requestor, source, destination xproto.Atom) *Request + func (request *Request) HandlePropertyNotify(connection *xgbutil.XUtil, event xevent.PropertyNotifyEvent) + func (request *Request) HandleSelectionNotify(connection *xgbutil.XUtil, event xevent.SelectionNotifyEvent) + type Requestor interface + Choose func(from []Target) (chosen Target, ok bool) + Failure func(error) + Success func(Target, io.ReadCloser) + Window func() *xwindow.Window + type Target string + func MimeToTargets(mime string) []Target + func (target Target) ToMime() (string, Confidence) Other modules containing this package git.tebibyte.media/tomo/xgbsel/v2