glade

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliCommand = &cli.Command{
	Name:        "glade",
	Usage:       "preview glade interfaces",
	Description: "load the given .glade file and preview in CTK",
	Action:      glade,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "window",
			Aliases:     []string{"W"},
			Value:       "main-window",
			DefaultText: "main-window",
			Usage:       "specify a named (glade \"id\" attribute) window to preview",
		},
		&cli.StringFlag{
			Name:        "dialog",
			Aliases:     []string{"D"},
			Value:       "main-dialog",
			DefaultText: "main-dialog",
			Usage:       "specify a named (glade \"id\" attribute) dialog to preview",
		},
		&cli.BoolFlag{
			Name:    "no-dialog-transient",
			Aliases: []string{"n"},
			Value:   false,
			Usage:   "when rendering ctk.Dialog types, do not set the transient for to a default window and use the dialog itself as a top-level window",
		},
	},
}

Functions

func ProcessFile

func ProcessFile(ctx *cli.Context, path string, app ctk.Application, d cdk.Display) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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