godock: github.com/sqp/godock/widgets/appletpreview Index | Files

package appletpreview

import "github.com/sqp/godock/widgets/appletpreview"

Package appletpreview provides an applet preview widget.

Index

Package Files

appletpreview.go appletpreview.xml.go

Constants

const (
    MaxPreviewWidth  = 350
    MaxPreviewHeight = 250
)

Preview image settings.

type Appleter Uses

type Appleter interface {
    FormatState() string
    FormatSize() string
    IconState() string
}

Appleter defines additional data that can be used by the preview.

type Preview Uses

type Preview struct {
    gtk.Box // Main widget is the container.

    TmpFile string
    // contains filtered or unexported fields
}

Preview defines an applet preview widget.

func New Uses

func New(log cdtype.Logger) *Preview

New creates an applet preview widget.

func (*Preview) HideSize Uses

func (widget *Preview) HideSize()

HideSize hides the size widget.

func (*Preview) HideState Uses

func (widget *Preview) HideState()

HideState hides the state widget.

func (*Preview) Load Uses

func (widget *Preview) Load(pack Previewer)

Load loads an applet or theme in the preview. Handbooker and Appleter can be used.

func (*Preview) RemoveTmpFile Uses

func (widget *Preview) RemoveTmpFile()

RemoveTmpFile delete the temporary file if used.

type Previewer Uses

type Previewer interface {
    GetTitle() string
    GetAuthor() string
    GetDescription() string
    GetPreviewFilePath() string
}

Previewer defines the main data needed by the preview.

Package appletpreview imports 11 packages (graph) and is imported by 1 packages. Updated 2017-11-29. Refresh now. Tools for package owners.