webkit6/auto/constants.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from webkit-gir-files
4// DO NOT EDIT
5
6use crate::ffi;
7use glib::GStr;
8
9/// The copy clipboard command. Copies the current selection inside
10/// a [`WebView`][crate::WebView] to the clipboard.
11/// You can check whether it's possible to execute the command with
12/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. In general it's
13/// possible to copy to the clipboard when there is an active selection
14/// inside the [`WebView`][crate::WebView].
15#[doc(alias = "WEBKIT_EDITING_COMMAND_COPY")]
16pub static EDITING_COMMAND_COPY: &GStr =
17 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_COPY) };
18/// The create link command. Creates a link element that is inserted at
19/// the current cursor position. If there's a selection, the selected text
20/// will be used as the link text, otherwise the URL itself will be used.
21/// It receives the link URL as argument. This command should be executed
22/// with [`WebViewExt::execute_editing_command_with_argument()`][crate::prelude::WebViewExt::execute_editing_command_with_argument()]
23#[doc(alias = "WEBKIT_EDITING_COMMAND_CREATE_LINK")]
24pub static EDITING_COMMAND_CREATE_LINK: &GStr =
25 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_CREATE_LINK) };
26/// The cut clipboard command. Copies the current selection inside
27/// a [`WebView`][crate::WebView] to the clipboard and deletes the selected content.
28/// You can check whether it's possible to execute the command with
29/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. In general it's
30/// possible to cut to the clipboard when the [`WebView`][crate::WebView] content is
31/// editable and there is an active selection.
32#[doc(alias = "WEBKIT_EDITING_COMMAND_CUT")]
33pub static EDITING_COMMAND_CUT: &GStr =
34 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_CUT) };
35/// The insert image command. Creates an image element that is inserted at
36/// the current cursor position. It receives an URI as argument,
37/// that is used as the image source. This command should be executed with
38/// [`WebViewExt::execute_editing_command_with_argument()`][crate::prelude::WebViewExt::execute_editing_command_with_argument()].
39#[doc(alias = "WEBKIT_EDITING_COMMAND_INSERT_IMAGE")]
40pub static EDITING_COMMAND_INSERT_IMAGE: &GStr =
41 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_INSERT_IMAGE) };
42/// The paste clipboard command. Pastes the contents of the clipboard to
43/// a [`WebView`][crate::WebView].
44/// You can check whether it's possible to execute the command with
45/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. In general it's possible
46/// to paste from the clipboard when the [`WebView`][crate::WebView] content is editable
47/// and clipboard is not empty.
48#[doc(alias = "WEBKIT_EDITING_COMMAND_PASTE")]
49pub static EDITING_COMMAND_PASTE: &GStr =
50 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_PASTE) };
51/// The paste as plaintext clipboard command. Pastes the contents of the
52/// clipboard to a [`WebView`][crate::WebView], with formatting removed.
53/// You can check whether it's possible to execute the command with
54/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. In general it's possible
55/// to paste from the clipboard when the [`WebView`][crate::WebView] content is editable
56/// and clipboard is not empty.
57#[doc(alias = "WEBKIT_EDITING_COMMAND_PASTE_AS_PLAIN_TEXT")]
58pub static EDITING_COMMAND_PASTE_AS_PLAIN_TEXT: &GStr =
59 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_PASTE_AS_PLAIN_TEXT) };
60/// The redo command. Redoes a previously undone editing command in
61/// a [`WebView`][crate::WebView].
62/// You can check whether it's possible to execute the command with
63/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. It's only possible
64/// to redo a command when it has been previously undone.
65#[doc(alias = "WEBKIT_EDITING_COMMAND_REDO")]
66pub static EDITING_COMMAND_REDO: &GStr =
67 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_REDO) };
68/// The select all command. Selects all the content of the current text field in
69/// a [`WebView`][crate::WebView].
70/// It is always possible to select all text, no matter whether the
71/// [`WebView`][crate::WebView] content is editable or not. You can still check it
72/// with [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()].
73#[doc(alias = "WEBKIT_EDITING_COMMAND_SELECT_ALL")]
74pub static EDITING_COMMAND_SELECT_ALL: &GStr =
75 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_SELECT_ALL) };
76/// The undo command. Undoes the last editing command in a [`WebView`][crate::WebView].
77/// You can check whether it's possible to execute the command with
78/// [`WebViewExt::can_execute_editing_command()`][crate::prelude::WebViewExt::can_execute_editing_command()]. It's only possible
79/// to undo a command after a previously executed editing operation.
80#[doc(alias = "WEBKIT_EDITING_COMMAND_UNDO")]
81pub static EDITING_COMMAND_UNDO: &GStr =
82 unsafe { GStr::from_utf8_with_nul_unchecked(ffi::WEBKIT_EDITING_COMMAND_UNDO) };