xkcd

package
v0.0.0-...-20bc35b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show(win fyne.Window) fyne.CanvasObject

Show starts a new xkcd widget

Types

type XKCD

type XKCD struct {
	ID         int    `json:"num"`
	Title      string `json:"title"`
	Day        string `json:"day"`
	Month      string `json:"month"`
	Year       string `json:"year"`
	Link       string `json:"link"`
	SafeTitle  string `json:"safe_title"`
	Transcript string `json:"transcript"`
	News       string `json:"news"`
	Alt        string `json:"alt"`
	Img        string `json:"img"`
	// contains filtered or unexported fields
}

XKCD is an app to get xkcd images and display them

func NewXKCD

func NewXKCD() *XKCD

NewXKCD returns a new xkcd app

func (*XKCD) DataToScreen

func (x *XKCD) DataToScreen()

DataToScreen copies the data model to the screen

func (*XKCD) NewForm

func (x *XKCD) NewForm(w fyne.Window) fyne.Widget

NewForm generates a new XKCD form

func (*XKCD) Submit

func (x *XKCD) Submit()

Submit will lookup the xkcd cartoon and do something useful with it

Jump to

Keyboard shortcuts

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