models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Child

type Child struct {
	XMLName xml.Name `xml:"child"`
	Text    string   `xml:",chardata"`
	Object  []Object `xml:"object"`
	Packing Packing  `xml:"packing"`
}

Child is a child of a GTK object

type Glade

type Glade struct {
	XMLName  xml.Name `xml:"interface"`
	Text     string   `xml:",chardata"`
	Requires struct {
		Text    string `xml:",chardata"`
		Lib     string `xml:"lib,attr"`
		Version string `xml:"version,attr"`
	} `xml:"requires"`
	Object []Object `xml:"object"`
}

Glade represents a glade xml file

type Issue

type Issue struct {
	Description string
}

Issue encapsulates an error when validating a glade file

type Object

type Object struct {
	Text     string     `xml:",chardata"`
	Class    string     `xml:"class,attr"`
	ID       string     `xml:"id,attr"`
	Property []Property `xml:"property"`
	Child    []Child    `xml:"child"`
}

Object represents a GTK object

type Packing

type Packing struct {
	Text     string     `xml:",chardata"`
	Property []Property `xml:"property"`
}

Packing is the positioning of a GTK object

type Property

type Property []struct {
	Text string `xml:",chardata"`
	Name string `xml:"name,attr"`
}

Property of a GTK object

type RenderModel

type RenderModel struct {
	Class  string
	Object string
	ID     string
	Name   string
}

RenderModel encapsulates the data used to render the content in a go template

Jump to

Keyboard shortcuts

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