gen

package
v0.0.0-...-0564b78 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateElement

func GenerateElement(e *Element) string

func GenerateElements

func GenerateElements(ctx context.Context, genTmpDir, gogglesPath string) error

func GenerateIcon

func GenerateIcon(pkg iconPackage) string

func GenerateIconify

func GenerateIconify(ctx context.Context, gentmpDir, gogglesPath string) error

func StreamGenerateElement

func StreamGenerateElement(qw422016 *qt422016.Writer, e *Element)

func StreamGenerateIcon

func StreamGenerateIcon(qw422016 *qt422016.Writer, pkg iconPackage)

func WriteGenerateElement

func WriteGenerateElement(qq422016 qtio422016.Writer, e *Element)

func WriteGenerateIcon

func WriteGenerateIcon(qq422016 qtio422016.Writer, pkg iconPackage)

Types

type Attribute

type Attribute struct {
	Name            string
	Description     string
	ValidValueTypes []string
}

type Element

type Element struct {
	Tag                       string
	Description               string
	Interface                 string
	Categories                []string
	ChildElementsOrCategories []string
	Attributes                []*Attribute
	EventHandlers             []*EventHandler
}

type Event

type Event struct {
	Name        string
	Description string
	Interface   string
	Attributes  []EventAttribute
}

type EventAttribute

type EventAttribute struct {
	Name     string
	Type     string
	Optional bool
	Comment  string
}

type EventHandler

type EventHandler struct {
	Name        string
	Description string
	Event       *Event
}

Jump to

Keyboard shortcuts

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