Documentation ¶
Index ¶
- func Log(component, msg string)
- type Attribute
- type BuildInfo
- type CachedImage
- type ColorRGBA
- type Document
- type History
- type ImgCache
- type NoSuchElementError
- type NodeDOM
- func (node *NodeDOM) Attr(attrName string) string
- func (node *NodeDOM) CalcPointIntersection(x, y float64) *NodeDOM
- func (node *NodeDOM) FindByXPath(xPath string) (*NodeDOM, error)
- func (node *NodeDOM) FindChildByName(childName string) (*NodeDOM, error)
- func (node *NodeDOM) GetXPath() string
- func (node *NodeDOM) JSON() string
- func (node *NodeDOM) Print(d int)
- func (node NodeDOM) RequestReflow()
- func (node NodeDOM) RequestRepaint()
- type RenderBox
- type Resource
- type ResourceCache
- type Settings
- type StyleElement
- type Stylesheet
- type WebBrowser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CachedImage ¶
type ImgCache ¶
type ImgCache struct {
// contains filtered or unexported fields
}
func (*ImgCache) GetImage ¶
func (cache *ImgCache) GetImage(imageKey string) *CachedImage
type NoSuchElementError ¶
type NoSuchElementError string
func (NoSuchElementError) Error ¶
func (e NoSuchElementError) Error() string
type NodeDOM ¶
type NodeDOM struct { Element string `json:"element"` Content string `json:"content"` Children []*NodeDOM `json:"children"` Attributes []*Attribute `json:"attributes"` Style *Stylesheet `json:"style"` Parent *NodeDOM `json:"-"` RenderBox *RenderBox `json:"-"` NeedsReflow bool `json:"-"` NeedsRepaint bool `json:"-"` Document *Document `json:"-"` }
NodeDOM "DOM Node Struct definition"
func (*NodeDOM) CalcPointIntersection ¶
func (*NodeDOM) FindChildByName ¶
func (NodeDOM) RequestReflow ¶
func (node NodeDOM) RequestReflow()
func (NodeDOM) RequestRepaint ¶
func (node NodeDOM) RequestRepaint()
type RenderBox ¶
type ResourceCache ¶
type ResourceCache struct {
// contains filtered or unexported fields
}
func (*ResourceCache) AddResource ¶
func (cache *ResourceCache) AddResource(resource *Resource)
func (*ResourceCache) GetResource ¶
func (cache *ResourceCache) GetResource(resourceKey string) *Resource
type Settings ¶
type Settings struct { Homepage string `json:"homepage"` WindowWidth int `json:"windowWidth"` WindowHeight int `json:"windowHeight"` HiDPI bool `json:"hiDPI"` ExperimentalHTML bool `json:"experimentalHTML"` // golang stdlib spec compliant html5 parser ExperimentalLayout bool `json:"experimentalLayout"` // spec-ish compliant layout engine }
func LoadSettings ¶
type StyleElement ¶
type StyleElement struct { Selector string Style *Stylesheet }
StyleElement "hmtl <style> element"
type Stylesheet ¶
type Stylesheet struct { Color *ColorRGBA BackgroundColor *ColorRGBA FontSize float64 FontWeight int Display string Position string Width float64 Height float64 Top float64 Left float64 }
Stylesheet "Stylesheet definition for DOM Nodes"
type WebBrowser ¶
Click to show internal directories.
Click to hide internal directories.