Class

CogView

Description [src]

abstract class Cog.View : GObject.Object {
  parent_instance: WebKitWebView
}

Convenience base class for web views.

Most of the functionality dealing with web views when using the Cog core library uses CogView instead of WPEWebKit.WebView. The base class is extended to delegate the creation of its WPEWebKit.WebViewBackend to the current CogPlatform implementation. Optionally, platform plug-in implementations can provide their own view class implementation by overriding the CogPlatform.get_view_type method.

A number of utility functions are also provided.

Ancestors

Constructors

cog_view_new

Creates a new instance of a view implementation and sets its properties.

Functions

cog_view_get_impl_type

Get the type of the web view implementation in use.

Instance methods

cog_view_get_backend

Get the backend for the view.

cog_view_get_use_key_bindings

Gets whether the built-in key bindings are enabled.

Available since: 0.20

cog_view_get_viewport

Gets viewport where the view is attached.

Available since: 0.20

cog_view_handle_key_event

Sends a keyboard event to the web view.

Available since: 0.20

cog_view_is_visible

Gets whether the view is visible in a viewport.

Available since: 0.20

cog_view_set_use_key_bindings

Sets whether to enable usage of the built-in key bindings.

Available since: 0.20

cog_view_set_visible

Set the view as visible in its viewport.

Available since: 0.20

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Cog.View:use-key-bindings

Whether to use the built-in key binding handling.

Available since: 0.20

Cog.View:viewport

Viewport where the CogView belongs.

Available since: 0.20

Signals

Signals inherited from GObject (1)
GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct CogViewClass {
  WebKitWebViewBackend* (* create_backend) (
    CogView* arg0
  );
  
}
Class members
create_backend
WebKitWebViewBackend* (* create_backend) (
    CogView* arg0
  )
  No description available.

Virtual methods

Cog.ViewClass.create_backend
No description available.