Documentation ¶
Index ¶
- type CellAnchorFrom
- type CellAnchorTo
- type Geom
- type Line
- type LineEnd
- type LineProperties
- type NoFill
- type PresetDash
- type Rectangle
- func (r *Rectangle) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (r *Rectangle) SetFillColor(c string)
- func (r *Rectangle) SetFontSize(size int)
- func (r *Rectangle) SetGeoType(t string)
- func (r *Rectangle) SetHAlign(align string)
- func (r *Rectangle) SetLeftTop(l, t int)
- func (r *Rectangle) SetLineColor(c string)
- func (r *Rectangle) SetNoFill(f bool)
- func (r *Rectangle) SetNoLine(f bool)
- func (r *Rectangle) SetSize(w, h int)
- func (r *Rectangle) SetText(t, lang string)
- func (r *Rectangle) SetVAlign(align string)
- func (r *Rectangle) SetWrapType(t string)
- type RgbColor
- type Shape
- type SolidFill
- type TextBodyProperties
- type TextParticularProperties
- type TextRunProperties
- type XForm
- type XdrNonVisualProperties
- type XdrNonVisualShapeProperties
- type XdrShape
- type XdrShapeProperties
- type XdrTextBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CellAnchorFrom ¶
type CellAnchorFrom struct { XMLName xml.Name `xml:"xdr:from"` Column int `xml:"xdr:col"` ColumnOffset int `xml:"xdr:colOff"` Row int `xml:"xdr:row"` RowOffset int `xml:"xdr:rowOff"` }
CellAnchorFrom is an anchor struct used within oneCellAnchor or twoCellAnchor.
func NewCellAnchorFrom ¶
func NewCellAnchorFrom(left, top int) *CellAnchorFrom
NewCellAnchorFrom creates CellAnchorFrom with left and top pixels.
type CellAnchorTo ¶
type CellAnchorTo struct { XMLName xml.Name `xml:"xdr:to"` Column int `xml:"xdr:col"` ColumnOffset int `xml:"xdr:colOff"` Row int `xml:"xdr:row"` RowOffset int `xml:"xdr:rowOff"` }
CellAnchorTo is an anchor struct used within twoCellAnchor.
func NewCellAnchorTo ¶
func NewCellAnchorTo(left, top int) *CellAnchorTo
NewCellAnchorTo creates CellAnchorTo with left and top pixels.
type Geom ¶
type Geom struct { XMLName xml.Name `xml:"a:prstGeom"` Preset string `xml:"prst,attr"` AdjustValues string `xml:"a:avLst"` }
Geom is geometry type with preset.
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
Line is a kind of shapes.
func (*Line) MarshalXML ¶
MarshalXML generates the xml element from this and puts it to the encoder.
func (*Line) SetDashType ¶
SetDashType sets the type of line dash of this.
func (*Line) SetHeadType ¶
SetHeadType sets the type of the head of this.
func (*Line) SetStartPos ¶
SetStartPos sets the position of the start of this.
func (*Line) SetTailType ¶
SetTailType sets the type of the tail of this.
type LineEnd ¶
type LineEnd struct {
Type string `xml:"type,attr"`
}
LineEnd is a type of terminal shape of the line.
type LineProperties ¶
type LineProperties struct { XMLName xml.Name `xml:"a:ln"` Fill *SolidFill `xml:",omitempty"` Dash *PresetDash `xml:",omitempty"` Head *LineEnd `xml:"a:headEnd,omitempty"` Tail *LineEnd `xml:"a:tailEnd,omitempty"` }
LineProperties is a line property around the shape.
type PresetDash ¶
PresetDash is a preset type for line dash.
type Rectangle ¶
type Rectangle struct {
// contains filtered or unexported fields
}
Rectangle is a kind of shapes.
func (*Rectangle) MarshalXML ¶
MarshalXML generates the xml element from this and puts it to the encoder.
func (*Rectangle) SetFillColor ¶
SetFillColor sets the color used to fill this.
func (*Rectangle) SetFontSize ¶
SetFontSize sets the text font size with one-hundredth of the given numeric value.
func (*Rectangle) SetGeoType ¶
SetGeoType sets the type of geometory.
func (*Rectangle) SetHAlign ¶
SetHAlign sets the horizontal alignment of text.
If align == "l", aligns the text to the left If align == "r", aligns the text to the right If align == "ctr", centers the text
func (*Rectangle) SetLeftTop ¶
SetLeftTop sets top and left of this.
func (*Rectangle) SetLineColor ¶
SetLineColor sets the color of the line around this.
func (*Rectangle) SetVAlign ¶
SetVAlign sets the vertical alignment of text.
If align == "t", aligns the text to the top If align == "b", aligns the text to the bottom If align == "ctr", centers the text
func (*Rectangle) SetWrapType ¶
SetWrapType sets the type of text wrapping.
type Shape ¶
type Shape interface {
MarshalXML(*xml.Encoder, xml.StartElement) error
}
Shape is a kind of Drawing Charts such as a rectangle, circle, line and so on.
type TextBodyProperties ¶
type TextBodyProperties struct { XMLName xml.Name `xml:"a:bodyPr"` VerticalOverflow string `xml:"vertOverflow,attr"` HorizontalOverflow string `xml:"horzOverflow,attr"` Wrap string `xml:"wrap,attr"` RtlCol string `xml:"rtlCol,attr"` Anchor string `xml:"anchor,attr"` AutoFit *struct{} `xml:"a:spAutoFit,omitempty"` }
TextBodyProperties is a set of properties of the text box.
type TextParticularProperties ¶
type TextParticularProperties struct { XMLName xml.Name `xml:"a:pPr"` Align string `xml:"algn,attr"` }
TextParticularProperties is a set of the run particular properties for the text.
type TextRunProperties ¶
type TextRunProperties struct { XMLName xml.Name `xml:"a:rPr"` Kumimoji string `xml:"kumimoji,attr"` Lang string `xml:"lang,attr"` AltLang string `xml:"altLang,attr"` Size string `xml:"sz,attr"` }
TextRunProperties is a set of the run level properties for the text.
type XForm ¶ added in v0.0.2
type XForm struct { XMLName xml.Name `xml:"a:xfrm"` FlipH string `xml:"flipH,attr,omitempty"` FlipV string `xml:"flipV,attr,omitempty"` }
XForm specifies the transform to be applied to the corresponding graphic frame
type XdrNonVisualProperties ¶
type XdrNonVisualProperties struct { XMLName xml.Name `xml:"xdr:cNvPr"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` }
XdrNonVisualProperties is struct.
type XdrNonVisualShapeProperties ¶
type XdrNonVisualShapeProperties struct { XMLName xml.Name `xml:"xdr:nvSpPr"` Properties *XdrNonVisualProperties `xml:",omitempty"` ShapeProperties string `xml:"xdr:cNvSpPr"` }
XdrNonVisualShapeProperties is struct.
type XdrShape ¶
type XdrShape struct { XMLName xml.Name `xml:"xdr:sp"` NvProperties *XdrNonVisualShapeProperties `xml:",omitempty"` Properties *XdrShapeProperties `xml:",omitempty"` TextBody *XdrTextBody `xml:",omitempty"` }
XdrShape is struct.
type XdrShapeProperties ¶
type XdrShapeProperties struct { XMLName xml.Name `xml:"xdr:spPr"` XForm *XForm `xml:",omitempty"` PresetGeom *Geom `xml:",omitempty"` Fill *SolidFill `xml:",omitempty"` NoFill *NoFill `xml:",omitempty"` Line *LineProperties `xml:",omitempty"` }
XdrShapeProperties is struct.
type XdrTextBody ¶
type XdrTextBody struct { XMLName xml.Name `xml:"xdr:txBody"` Properties *TextBodyProperties `xml:",omitempty"` ListStyle string `xml:"a:lstStyle"` PProperties *TextParticularProperties `xml:"a:p>a:pPr"` RProperties *TextRunProperties `xml:"a:p>a:r>a:rPr"` Text string `xml:"a:p>a:r>a:t"` }
XdrTextBody is struct.