fix:add more export function for struct Clipboard

This commit is contained in:
兔子 2025-11-10 12:33:11 +08:00
parent c4ecfd09ec
commit 7dafa52e7a
Signed by: b612
GPG Key ID: 99DD2222B612B612

32
def.go
View File

@ -30,6 +30,38 @@ type Clipboard struct {
hash string
}
func (c *Clipboard) WinOriginTypes() []string {
return c.winOriginTypes
}
func (c *Clipboard) Date() time.Time {
return c.date
}
func (c *Clipboard) Platform() string {
return c.platform
}
func (c *Clipboard) SecondaryOriType() string {
return c.secondaryOriType
}
func (c *Clipboard) SecondaryType() FileType {
return c.secondaryType
}
func (c *Clipboard) SecondaryData() []byte {
return c.secondaryData
}
func (c *Clipboard) PrimaryOriType() string {
return c.primaryOriType
}
func (c *Clipboard) PrimaryData() []byte {
return c.primaryData
}
// format represents the format of clipboard data.
type format int