Documentation
¶
Index ¶
- type Attribute
- type Attributer
- type Class
- type Classer
- type Element
- type ErrMarkupFailed
- type ErrRenderFailed
- type Html
- type Id
- type Ider
- type Imposer
- type Markuper
- type Multiple
- type Overflow
- type Position
- type Rect
- func (rect *Rect) BottomUnit() Unit
- func (rect *Rect) HasAny() bool
- func (rect *Rect) HasBottom() bool
- func (rect *Rect) HasHeight() bool
- func (rect *Rect) HasLeft() bool
- func (rect *Rect) HasRight() bool
- func (rect *Rect) HasTop() bool
- func (rect *Rect) HasWidth() bool
- func (rect *Rect) HeightUnit() Unit
- func (rect *Rect) Impose(el *Element)
- func (rect *Rect) LeftUnit() Unit
- func (rect *Rect) RightUnit() Unit
- func (rect *Rect) SetBottom(bottom int, unit Unit) *Rect
- func (rect *Rect) SetHeight(height int, unit Unit) *Rect
- func (rect *Rect) SetLeft(left int, unit Unit) *Rect
- func (rect *Rect) SetRight(right int, unit Unit) *Rect
- func (rect *Rect) SetTop(top int, unit Unit) *Rect
- func (rect *Rect) SetWidth(width int, unit Unit) *Rect
- func (rect *Rect) TopUnit() Unit
- func (rect *Rect) WidthUnit() Unit
- func (rect Rect) WithBottom(bottom int, unit Unit) Rect
- func (rect Rect) WithHeight(height int, unit Unit) Rect
- func (rect Rect) WithLeft(left int, unit Unit) Rect
- func (rect Rect) WithRight(right int, unit Unit) Rect
- func (rect Rect) WithTop(top int, unit Unit) Rect
- func (rect Rect) WithWidth(width int, unit Unit) Rect
- type Renderer
- type Style
- type Styler
- type Text
- type Unit
- type Void
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributer ¶
type Element ¶
type ErrMarkupFailed ¶
The error denotes the situation when Markup rendering failed. With the field Reason the error can form a cascade structure which contains the full path to the element which failed to produce markup.
func (ErrMarkupFailed) Error ¶
func (err ErrMarkupFailed) Error() string
func (ErrMarkupFailed) Why ¶
func (err ErrMarkupFailed) Why() error
type ErrRenderFailed ¶
The error denotes the situation when Rendering failed. With the field Reason the error can form a cascade structure which contains the full path to the element which failed to produce markup.
func (ErrRenderFailed) Error ¶
func (err ErrRenderFailed) Error() string
func (ErrRenderFailed) Why ¶
func (err ErrRenderFailed) Why() error
type Imposer ¶
type Imposer interface { // Impose attributes to the HTML element el. Impose(el *Element) }
Imposer applies attributes to HTML element. Attributes applied should be class, style, and other custom attributes except id and inner attributes and except tag name.
type Overflow ¶
type Overflow uint8
const ( OverflowInheritXY Overflow = OverflowInheritX | OverflowInheritY OverflowVisibleXY Overflow = OverflowVisibleX | OverflowVisibleY OverflowHiddenXY Overflow = OverflowHiddenX | OverflowHiddenY OverflowScrollXY Overflow = OverflowScrollX | OverflowScrollY OverflowAutoXY Overflow = OverflowAutoX | OverflowAutoY )
type Rect ¶
type Rect struct { Top int Bottom int Height int Left int Right int Width int // contains filtered or unexported fields }
func (*Rect) BottomUnit ¶
func (*Rect) HeightUnit ¶
Click to show internal directories.
Click to hide internal directories.