API-Version: 1.9

Enums and Flags

All enums and flags are global, the type Enum just means that it is a number, the type Flag means that it is a number that can be used in a bitmask.

Source:

Example

 
signals.connect("loadStatus", function(wv) {
     if (wv.loadStatus == LoadStatus.finished)
     {
         ...
     }
});
signals.connect("keyPress", function(wv, event) {
     // Check if Control and Mod1 is pressed
     if (event.state & (Modifier.Control | Modifier.Mod1))
     {
         ...
     }
});

Members

<static, constant> ButtonContext :Object

ButtonContext flag

Properties:
Name Type Description
document Flag
link Flag
image Flag
media Flag
selection Flag
editable Flag
Source:

<static, constant> ChecksumType :Object

Type of checksum

Properties:
Name Type Description
md5 Enum
sha1 Enum
sha256 Enum
Source:

<static, constant> ClickType :Object

ClickType

Properties:
Name Type Description
click Enum
doubleClick Enum
tripleClick Enum
Source:

<static, constant> DownloadStatus :Object

Status of a download

Properties:
Name Type Description
error Enum
created Enum
started Enum
cancelled Enum
finished Enum
Source:

<static, constant> FileTest :Object

Filetest flag, multiple flags can be set on a file

Properties:
Name Type Description
regular Flag

regular file

symlink Flag

symbolic link

dir Flag

directory

executable Flag

executable File

exists Flag

Whether the file exists

Source:

<static, constant> LoadStatus :Object

Loadstatus of a WebKitWebView or WebKitWebFrame

Properties:
Name Type Description
provisional Enum
committed Enum
finished Enum
firstVisualLayout Enum
failed Enum
Source:

<static, constant> Modes :Object

A mode

Properties:
Name Type Description
NormalMode Flag

normal mode

InsertMode Flag

insert mode

CommandMode Flag

command mode

HintMode Flag

hint mode

CaretMode Flag

caret mode

Source:

<static, constant> Modifier :Object

Gdk modifier flag

Properties:
Name Type Description
Shift Flag
Lock Flag
Control Flag
Mod1 Flag
Mod2 Flag
Mod3 Flag
Mod4 Flag
Mod5 Flag
Button1 Flag
Button2 Flag
Button3 Flag
Button4 Flag
Button5 Flag
Super Flag
Hyper Flag
Meta Flag
Release Flag
Modifier Flag
Source:

NavigationReason

Properties:
Name Type Description
linkClicked Enum
formSubmitted Enum
backForward Enum
reload Enum
formResubmitted Enum
other Enum
Source:

<static, constant> OverrideKey :Object

Override certain conditions when binding a shortcut with bind

Properties:
Name Type Description
insertMode Flag

Executes a shortcut also in insertmode

entryFocus Flag

Executes a shortcut also when the entry has focus

all Flag

Always executes a shortcut

Source:

<static, constant> Selection :Object

Clipboard selection

Properties:
Name Type Description
primary Enum

The primary selection

clipboard Enum

The clipboard

Source: