style

package
v0.0.0-...-d95191c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DurianParameter

type DurianParameter struct {
	// contains filtered or unexported fields
}

func (*DurianParameter) BorderWidth

func (p *DurianParameter) BorderWidth() int

func (*DurianParameter) Input

func (p *DurianParameter) Input() string

func (*DurianParameter) JSONString

func (p *DurianParameter) JSONString() string

func (*DurianParameter) Output

func (p *DurianParameter) Output() string

func (*DurianParameter) SetBorderWidth

func (p *DurianParameter) SetBorderWidth(borderWidth int)

func (*DurianParameter) SetInput

func (p *DurianParameter) SetInput(input string)

func (*DurianParameter) SetOutput

func (p *DurianParameter) SetOutput(output string)

func (*DurianParameter) SetWithoutSubtitle

func (p *DurianParameter) SetWithoutSubtitle(withoutSubTitle bool)

func (*DurianParameter) WithoutSubtitle

func (p *DurianParameter) WithoutSubtitle() bool

type DurianProcessor

type DurianProcessor struct {
	// contains filtered or unexported fields
}

func NewDurianProcessor

func NewDurianProcessor(params *DurianParameter, fiStore *fileitem.Store) *DurianProcessor

func (*DurianProcessor) Run

func (s *DurianProcessor) Run() error

type LogoMelonParameter

type LogoMelonParameter struct {
	// contains filtered or unexported fields
}

func (*LogoMelonParameter) BorderColor

func (p *LogoMelonParameter) BorderColor() color.Color

func (*LogoMelonParameter) BorderWidth

func (p *LogoMelonParameter) BorderWidth() int

func (*LogoMelonParameter) BottomContainerHeight

func (p *LogoMelonParameter) BottomContainerHeight() int

func (*LogoMelonParameter) BottomContainerHeightRatio

func (p *LogoMelonParameter) BottomContainerHeightRatio() float64

func (*LogoMelonParameter) ContainerHeight

func (p *LogoMelonParameter) ContainerHeight(srcHeight int) int

func (*LogoMelonParameter) Input

func (p *LogoMelonParameter) Input() string

func (*LogoMelonParameter) IsContainerHeightSet

func (p *LogoMelonParameter) IsContainerHeightSet() bool

func (*LogoMelonParameter) JSONString

func (p *LogoMelonParameter) JSONString() string

func (*LogoMelonParameter) Output

func (p *LogoMelonParameter) Output() string

func (*LogoMelonParameter) SetBorderColor

func (p *LogoMelonParameter) SetBorderColor(color color.Color)

func (*LogoMelonParameter) SetBorderWidth

func (p *LogoMelonParameter) SetBorderWidth(borderWidth int)

func (*LogoMelonParameter) SetBottomContainerHeight

func (p *LogoMelonParameter) SetBottomContainerHeight(bottomContainerHeight int)

func (*LogoMelonParameter) SetBottomContainerHeightRatio

func (p *LogoMelonParameter) SetBottomContainerHeightRatio(bottomContainerHeightRatio float64)

func (*LogoMelonParameter) SetInput

func (p *LogoMelonParameter) SetInput(input string)

func (*LogoMelonParameter) SetIsContainerHeightSet

func (p *LogoMelonParameter) SetIsContainerHeightSet(set bool)

func (*LogoMelonParameter) SetOutput

func (p *LogoMelonParameter) SetOutput(output string)

type LogoMelonProcessor

type LogoMelonProcessor struct {
	// contains filtered or unexported fields
}

func NewLogoMelonProcessor

func NewLogoMelonProcessor(params *LogoMelonParameter, fiStore *fileitem.Store) *LogoMelonProcessor

func (*LogoMelonProcessor) Run

func (s *LogoMelonProcessor) Run() error

type Parameterizable

type Parameterizable interface {
	Input() string
	SetInput(input string)
	Output() string
	SetOutput(output string)
}

type PineappleParameter

type PineappleParameter struct {
	// contains filtered or unexported fields
}

func (*PineappleParameter) FontColor

func (p *PineappleParameter) FontColor() color.Color

func (*PineappleParameter) Input

func (p *PineappleParameter) Input() string

func (*PineappleParameter) JSONString

func (p *PineappleParameter) JSONString() string

func (*PineappleParameter) Output

func (p *PineappleParameter) Output() string

func (*PineappleParameter) SetFontColor

func (p *PineappleParameter) SetFontColor(color color.Color)

func (*PineappleParameter) SetInput

func (p *PineappleParameter) SetInput(input string)

func (*PineappleParameter) SetOutput

func (p *PineappleParameter) SetOutput(output string)

type PineappleProcessor

type PineappleProcessor struct {
	// contains filtered or unexported fields
}

func NewPineappleProcessor

func NewPineappleProcessor(params *PineappleParameter, fiStore *fileitem.Store) *PineappleProcessor

func (*PineappleProcessor) Run

func (s *PineappleProcessor) Run() error

type SimpleParameter

type SimpleParameter struct {
	// contains filtered or unexported fields
}

func (*SimpleParameter) BorderWidth

func (p *SimpleParameter) BorderWidth() int

func (*SimpleParameter) GetBorderColor

func (p *SimpleParameter) GetBorderColor() color.Color

func (*SimpleParameter) Input

func (p *SimpleParameter) Input() string

func (*SimpleParameter) JSONString

func (p *SimpleParameter) JSONString() string

func (*SimpleParameter) Output

func (p *SimpleParameter) Output() string

func (*SimpleParameter) SetBorderColor

func (p *SimpleParameter) SetBorderColor(color color.Color)

func (*SimpleParameter) SetBorderWidth

func (p *SimpleParameter) SetBorderWidth(borderWidth int)

func (*SimpleParameter) SetInput

func (p *SimpleParameter) SetInput(input string)

func (*SimpleParameter) SetOutput

func (p *SimpleParameter) SetOutput(output string)

type SimpleProcessor

type SimpleProcessor struct {
	// contains filtered or unexported fields
}

func NewSimpleProcessor

func NewSimpleProcessor(params *SimpleParameter, fiStore *fileitem.Store) *SimpleProcessor

func (*SimpleProcessor) Run

func (s *SimpleProcessor) Run() error

type Style

type Style string
const (
	StyleSimple     Style = "simple"
	StyleTextBottom Style = "text_bottom"
	StyleLogoMelon  Style = "logo_melon"
	StylePineapple  Style = "pineapple"
	StyleDurian     Style = "durian"
)

type StyleProcessor

type StyleProcessor struct {
	// contains filtered or unexported fields
}

func NewStyleProcessor

func NewStyleProcessor(style Style, params Parameterizable) *StyleProcessor

func (*StyleProcessor) Run

func (s *StyleProcessor) Run()

func (*StyleProcessor) SupportExtensions

func (s *StyleProcessor) SupportExtensions() []string

type TextBottomParameter

type TextBottomParameter struct {
	// contains filtered or unexported fields
}

func (*TextBottomParameter) BorderColor

func (p *TextBottomParameter) BorderColor() color.Color

func (*TextBottomParameter) BorderWidth

func (p *TextBottomParameter) BorderWidth() int

func (*TextBottomParameter) BottomContainerHeight

func (p *TextBottomParameter) BottomContainerHeight() int

func (*TextBottomParameter) Input

func (p *TextBottomParameter) Input() string

func (*TextBottomParameter) JSONString

func (p *TextBottomParameter) JSONString() string

func (*TextBottomParameter) Output

func (p *TextBottomParameter) Output() string

func (*TextBottomParameter) SetBorderColor

func (p *TextBottomParameter) SetBorderColor(color color.Color)

func (*TextBottomParameter) SetBorderWidth

func (p *TextBottomParameter) SetBorderWidth(borderWidth int)

func (*TextBottomParameter) SetBottomContainerHeight

func (p *TextBottomParameter) SetBottomContainerHeight(bottomContainerHeight int)

func (*TextBottomParameter) SetInput

func (p *TextBottomParameter) SetInput(input string)

func (*TextBottomParameter) SetOutput

func (p *TextBottomParameter) SetOutput(output string)

func (*TextBottomParameter) SetWithoutSubtitle

func (p *TextBottomParameter) SetWithoutSubtitle(withoutSubTitle bool)

func (*TextBottomParameter) WithoutSubtitle

func (p *TextBottomParameter) WithoutSubtitle() bool

type TextBottomProcessor

type TextBottomProcessor struct {
	// contains filtered or unexported fields
}

func NewTextBottomProcessor

func NewTextBottomProcessor(params *TextBottomParameter, fiStore *fileitem.Store) *TextBottomProcessor

func (*TextBottomProcessor) Run

func (s *TextBottomProcessor) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL