Class

CogShell

Description [src]

class Cog.Shell : GObject.TypeInstance {
  parent_instance: GObject
}

A shell managed a WebKit.WebView, the default URI that it will load, the view configuration, and keeps track of a number of registered CogRequestHandler instances.

Applications using a shell can handle the CogShell::create-view signal to customize the web view.

Constructors

cog_shell_new

Creates a new shell.

Instance methods

cog_shell_get_config_file

Obtains the additional configuration for this shell.

cog_shell_get_device_scale_factor
No description available.
cog_shell_get_name

Obtains the name of this shell.

cog_shell_get_web_context

Obtains the WebKit.WebContext for this shell.

cog_shell_get_web_settings

Obtains the WebKit.Settings for this shell.

cog_shell_get_web_view

Obtains the WebKit.WebView for this shell.

cog_shell_is_automated
No description available.
cog_shell_set_request_handler

Installs a handler for a custom URI scheme.

cog_shell_shutdown

Deinitialize the shell.

cog_shell_startup

Finish initializing the shell.

Properties

Cog.Shell:automated
No description available.
Cog.Shell:config-file

Optional configuration as a GKeyFile. This allows setting options which can be read elsewhere. This is typically used to provide additional options to platform modules.

Cog.Shell:device-scale-factor
No description available.
Cog.Shell:name

Name of the shell.

Cog.Shell:web-context

The WebKit.WebContext for this shell’s view.

Cog.Shell:web-data-manager

Optional WebKitWebsiteDataManager to be used by the shell. If specified at construction, then the CogShell:automated property will be ignored and the provided object should have WebKit.WebsiteDataManager:is-ephemeral enabled for running in automation mode.

Cog.Shell:web-settings

WebKit settings for this shell.

Cog.Shell:web-view

The WebKit.WebView managed by this shell.

Signals

Cog.Shell::create-view

The create-view signal is emitted when the shell needs to create a WebKit.WebView.

Class structure

struct CogShellClass {
  GObjectClass parent_class;
  WebKitWebView* (* create_view) (
    CogShell* arg0
  );
  void (* startup) (
    CogShell* arg0
  );
  void (* shutdown) (
    CogShell* arg0
  );
  
}
Class members
parent_class
GObjectClass
  No description available.
create_view
WebKitWebView* (* create_view) (
    CogShell* arg0
  )
  No description available.
startup
void (* startup) (
    CogShell* arg0
  )
  No description available.
shutdown
void (* shutdown) (
    CogShell* arg0
  )
  No description available.

Virtual methods

Cog.ShellClass.create_view
No description available.
Cog.ShellClass.shutdown

Deinitialize the shell.

Cog.ShellClass.startup

Finish initializing the shell.