Documentation
¶
Overview ¶
Package glide provides a web browser
Index ¶
- Constants
- Variables
- type Context
- type Page
- func (pg *Page) AppBar(tb *gi.Toolbar)
- func (pg *Page) Context() *Context
- func (t *Page) KiType() *gti.Type
- func (t *Page) New() ki.Ki
- func (pg *Page) OnInit()
- func (pg *Page) OpenURL(url string) error
- func (t *Page) SetClass(v string) *Page
- func (t *Page) SetCustomContextMenu(v func(m *gi.Scene)) *Page
- func (t *Page) SetStackTop(v int) *Page
- func (t *Page) SetStripes(v gi.Stripes) *Page
- func (t *Page) SetTooltip(v string) *Page
Constants ¶
View Source
const ( // Version is the version of this package being used Version = "v0.0.12" // GitCommit is the commit just before the latest version commit GitCommit = "6bc1a67" // VersionDate is the date-time of the latest version commit in UTC (in the format 'YYYY-MM-DD HH:MM', which is the Go format '2006-01-02 15:04') VersionDate = "2023-12-26 23:38" )
Variables ¶
View Source
var PageType = gti.AddType(>i.Type{ Name: "goki.dev/glide/glide.Page", ShortName: "glide.Page", IDName: "page", Doc: "Page represents one web browser page", Directives: gti.Directives{}, Fields: ordmap.Make([]ordmap.KeyVal[string, *gti.Field]{}), Embeds: ordmap.Make([]ordmap.KeyVal[string, *gti.Field]{ {"Frame", >i.Field{Name: "Frame", Type: "goki.dev/gi/v2/gi.Frame", LocalType: "gi.Frame", Doc: "", Directives: gti.Directives{}, Tag: ""}}, }), Methods: ordmap.Make([]ordmap.KeyVal[string, *gti.Method]{}), Instance: &Page{}, })
Functions ¶
This section is empty.
Types ¶
type Context ¶ added in v0.0.2
type Context struct {
gidom.ContextBase
// Page is the page associated with the context
Page *Page
}
Context implements gidom.Context
type Page ¶
type Page struct {
gi.Frame
// The history of URLs that have been visited. The oldest page is first.
History []string
// PageURL is the current page URL
PageURL string
}
Page represents one web browser page
func NewPage ¶
NewPage adds a new Page with the given name to the given parent. If the name is unspecified, it defaults to the ID (kebab-case) name of the type, plus the ki.Ki.NumLifetimeChildren of the given parent.
func (*Page) SetCustomContextMenu ¶
SetCustomContextMenu sets the [Page.CustomContextMenu]
func (*Page) SetStackTop ¶
SetStackTop sets the [Page.StackTop]
func (*Page) SetStripes ¶
SetStripes sets the [Page.Stripes]
func (*Page) SetTooltip ¶
SetTooltip sets the [Page.Tooltip]
Click to show internal directories.
Click to hide internal directories.