gtk3Import

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Creat = "H.F.M"
View Source
var Descr = "Golang parser for glade xml files"
View Source
var LicenseAbrv = "License (MIT)"
View Source
var LicenseShort = "" /* 140-byte string literal not displayed */
View Source
var LicenseUrl = "https://opensource.org/licenses/mit-license.php"
View Source
var Name = "GladeXmlParser"
View Source
var Repository = "github.com/..."
View Source
var Vers = "v2.0"
View Source
var YearCreat = "2019"

Functions

This section is empty.

Types

type GtkInterface

type GtkInterface struct {
	GXPVersion    string
	ObjectsCount  int
	UpdatedOn     string
	GladeFilename string
	Requires      requires
	Objects       []GtkObject
	Comments      []string

	NamingCSS          bool
	NamingCSSLowerCase bool
	NamingCSSForce     bool
	NamingCSSClear     bool
	SkipObjectNaming   []string
	// contains filtered or unexported fields
}

func GladeXmlParserNew

func GladeXmlParserNew(filename string, skipObjectNaming []string, skipNoId, skipLoweAtFirst bool) (iFace *GtkInterface, err error)

GladeXmlParserNew: Create new parsed glade structure containing all objects with property, signals, packing information.

func (*GtkInterface) ReadFile

func (iFace *GtkInterface) ReadFile(filename string) (err error)

Read Text Controls from file

func (*GtkInterface) StructureSetup

func (iFace *GtkInterface) StructureSetup(gladeFilename string, skipNoId, skipLoweAtFirst bool) (err error)

StructureSetup: Setup a parser structure containing all objects with property, signals, packing information. * Alternative use of GladeXmlParserNew() * in the case where we need to import the structure rather than using it via the imported library.

func (*GtkInterface) WriteFile

func (iFace *GtkInterface) WriteFile(filename string) error

Write Text Controls to file

type GtkObject

type GtkObject struct {
	Class    string
	Id       string
	Property []GtkProps
	Signal   []GtkProps
	Packing  []GtkProps
	// contains filtered or unexported fields
}

type GtkProps

type GtkProps struct {
	Name         string
	Value        string
	Swapped      string
	Translatable string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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