Documentation
¶
Index ¶
- Constants
- Variables
- func BindFunctionCallback(name *C.char, argumentCount C.size_t, arguments *[]C.cef_v8value_t) *C.cef_v8value_t
- func ConsoleMessage(level C.int, source *C.char, line C.int, message *C.char)
- func GetJSONString(argLength int, arguments *[]C.cef_v8value_t) string
- type CEF
- func (cefClient *CEF) Eval(js string)
- func (cefClient *CEF) InitSubprocess() int
- func (cefClient *CEF) OpenWindow()
- func (cefClient *CEF) Run()
- func (cefClient *CEF) SetLogger(logger *log.Logger)
- func (cefClient *CEF) WindowCenter(width int, height int)
- func (cefClient *CEF) WindowClose()
- func (cefClient *CEF) WindowFullscreen(fullscreen bool)
- func (cefClient *CEF) WindowHide()
- func (cefClient *CEF) WindowIsActive() bool
- func (cefClient *CEF) WindowIsAlwaysOnTop() bool
- func (cefClient *CEF) WindowIsFullscreen() bool
- func (cefClient *CEF) WindowIsMaximize() bool
- func (cefClient *CEF) WindowIsMinimized() bool
- func (cefClient *CEF) WindowMaximize()
- func (cefClient *CEF) WindowMinimize()
- func (cefClient *CEF) WindowRestore()
- func (cefClient *CEF) WindowSetAlwaysOnTop(state bool)
- func (cefClient *CEF) WindowSetTitle(title string)
- func (cefClient *CEF) WindowShow()
- func (cefClient *CEF) WindowToTop()
- type GuiSettings
- type SecurityLogLevel
- type Settings
Constants ¶
View Source
const ( LOGSEVERITY_DEFAULT = C.LOGSEVERITY_DEFAULT LOGSEVERITY_VERBOSE = C.LOGSEVERITY_VERBOSE LOGSEVERITY_INFO = C.LOGSEVERITY_INFO LOGSEVERITY_WARNING = C.LOGSEVERITY_WARNING LOGSEVERITY_ERROR = C.LOGSEVERITY_ERROR LOGSEVERITY_FATAL = C.LOGSEVERITY_FATAL LOGSEVERITY_DISABLE = C.LOGSEVERITY_DISABLE )
Variables ¶
View Source
var ConsoleMessageCallback consoleMessageCallbackI
Functions ¶
func BindFunctionCallback ¶
func BindFunctionCallback(name *C.char, argumentCount C.size_t, arguments *[]C.cef_v8value_t) *C.cef_v8value_t
func GetJSONString ¶
func GetJSONString(argLength int, arguments *[]C.cef_v8value_t) string
Types ¶
type CEF ¶
type CEF struct {
// contains filtered or unexported fields
}
func (*CEF) InitSubprocess ¶
func (*CEF) OpenWindow ¶
func (cefClient *CEF) OpenWindow()
func (*CEF) WindowCenter ¶
func (*CEF) WindowClose ¶
func (cefClient *CEF) WindowClose()
func (*CEF) WindowFullscreen ¶
func (*CEF) WindowHide ¶
func (cefClient *CEF) WindowHide()
func (*CEF) WindowIsActive ¶
func (*CEF) WindowIsAlwaysOnTop ¶
func (*CEF) WindowIsFullscreen ¶
func (*CEF) WindowIsMaximize ¶
func (*CEF) WindowIsMinimized ¶
func (*CEF) WindowMaximize ¶
func (cefClient *CEF) WindowMaximize()
func (*CEF) WindowMinimize ¶
func (cefClient *CEF) WindowMinimize()
func (*CEF) WindowRestore ¶
func (cefClient *CEF) WindowRestore()
func (*CEF) WindowSetAlwaysOnTop ¶
func (*CEF) WindowSetTitle ¶
func (*CEF) WindowShow ¶
func (cefClient *CEF) WindowShow()
func (*CEF) WindowToTop ¶
func (cefClient *CEF) WindowToTop()
type GuiSettings ¶
type GuiSettings struct { WindowName string StartURL string IsFrameless bool IsMaximized bool IsFullscreen bool CanMaximize bool CanMinimize bool CanResize bool Height int Width int SubExecutable bool WindowIcon string WindowAppIcon string BackgroundColor color.Color Settings Settings BindFunc map[string]interface{} }
type SecurityLogLevel ¶
type SecurityLogLevel int
const ( /// // Default logging (currently INFO logging). /// LEVEL_DEFAULT SecurityLogLevel = 0 /// // DEBUG logging. /// LEVEL_DEBUG SecurityLogLevel = 1 /// // INFO logging. /// LEVEL_INFO SecurityLogLevel = 2 /// // WARNING logging. /// LEVEL_WARNING SecurityLogLevel = 3 /// // ERROR logging. /// LEVEL_ERROR SecurityLogLevel = 4 /// // FATAL logging. /// LEVEL_FATAL SecurityLogLevel = 5 /// // Disable logging to file for all messages, and to stderr for messages with // severity less than FATAL. /// LEVEL_DISABLE SecurityLogLevel = 99 )
Click to show internal directories.
Click to hide internal directories.