skin

package
Version: v0.0.0-...-084343c Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactoryRegister

func FactoryRegister()

FactoryRegister register creator in factory for package skin

func Set

func Set(skin Interface)

Set current skin

Types

type Common

type Common struct {
	Self    Interface
	SzSplit float32
}

Common data for skin

func NewCommon

func NewCommon() *Common

NewCommon create and init new Common object.

func (*Common) Class

func (p *Common) Class() string

Class name for factory

func (*Common) Init

func (c *Common) Init()

Init the object

func (Common) SizeSplit

func (c Common) SizeSplit() float32

SizeSplit reports size of splitter

type Fallback

type Fallback struct {
	Common
}

Fallback is a minimal skin, simple but just works, just new it then use, no config file, no other resource.

func NewFallback

func NewFallback() *Fallback

NewFallback create and init new Fallback object.

func (*Fallback) Class

func (p *Fallback) Class() string

Class name for factory

func (*Fallback) Init

func (sk *Fallback) Init()

Init the object

type ICommon

type ICommon interface {
	// Class name for factory
	Class() string
	// Init the object
	Init()
}

ICommon is interface of class Common

type IFallback

type IFallback interface {
	ICommon
}

IFallback is interface of class Fallback

type Interface

type Interface interface {
	SizeSplit() float32
}

Interface is skin interface for gui looks

func Get

func Get() Interface

Get current skin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL