seed: github.com/qlova/seed/load/pencil Index | Files

package pencil

import "github.com/qlova/seed/load/pencil"

Index

Package Files

pencil.go

type Document Uses

type Document struct {
    XMLName    xml.Name `xml:"Document"`
    Text       string   `xml:",chardata"`
    Xmlns      string   `xml:"xmlns,attr"`
    Properties struct {
        Text     string `xml:",chardata"`
        Property []struct {
            Text string `xml:",chardata"`
            Name string `xml:"name,attr"`
        }   `xml:"Property"`
    }   `xml:"Properties"`
    Pages struct {
        Text string `xml:",chardata"`
        Page []struct {
            Text string `xml:",chardata"`
            Href string `xml:"href,attr"`
        }   `xml:"Page"`
    }   `xml:"Pages"`
}

Document is a pencil document.

type Page Uses

type Page struct {
    XMLName xml.Name `xml:"Page"`
    Text    string   `xml:",chardata"`
    P       string   `xml:"p,attr"`

    Properties struct {
        Text     string `xml:",chardata"`
        Property []struct {
            Text string `xml:",chardata"`
            Name string `xml:"name,attr"`
        }   `xml:"Property"`
    }   `xml:"Properties"`
    Content struct {
        Data []byte `xml:",innerxml"`
    }   `xml:"Content"`
}

Page is a pencil page.

func (Page) Height Uses

func (page Page) Height() int

func (Page) Width Uses

func (page Page) Width() int

Package pencil imports 2 packages (graph) and is imported by 2 packages. Updated 2019-09-04. Refresh now. Tools for package owners.