Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrSet ¶
AttrSet is a set of attributes wherein only one/zero of each attribute type can exist. It is keyed by the AttrKind of each attribute and must not be modified directly.
func AS ¶
AS builds an AttrSet out of a vararg list of Attr values. If multiple Attrs of the same kind are specified, the last one will override the others.
func (AttrSet) MergeOver ¶
MergeOver takes attributes from another set and adds them, overriding this one.
func (AttrSet) MergeUnder ¶
MergeUnder takes attributes from another set and adds them if they don't already exist in this one.
type FaceSet ¶
type FaceSet interface { // Face returns the font face which most closely matches the given // tomo.Face. The face must be closed when it is done being used. If no // suitable face could be found, This behavior must return a fallback // face (such as basicfont.Face7x13) instead of nil. Face(tomo.Face) font.Face }
FaceSet holds a set of font faces.
type IconSet ¶
type IconSet interface { // Icon returns a texture of the corresponding icon ID. If there is no // suitable option, it should return nil. Icon(tomo.Icon, tomo.IconSize) canvas.Texture // MimeIcon returns a texture of an icon corresponding to a MIME type. // If there is no suitable specific option, it should return a more // generic icon or a plain file icon. MimeIcon(data.Mime, tomo.IconSize) canvas.Texture }
IconSet holds a set of icon textures.
Click to show internal directories.
Click to hide internal directories.