Skip to main content

cef_context_menu_params_t

Type Alias cef_context_menu_params_t 

Source
pub type cef_context_menu_params_t = _cef_context_menu_params_t;
Expand description

Provides information about the context menu state. The functions of this structure can only be accessed on browser process the UI thread.

NOTE: This struct is allocated DLL-side.

Aliased Type§

#[repr(C)]
pub struct cef_context_menu_params_t {
Show 21 fields pub base: _cef_base_ref_counted_t, pub get_xcoord: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>, pub get_ycoord: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>, pub get_type_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_type_flags_t>, pub get_link_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_unfiltered_link_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_source_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub has_image_contents: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>, pub get_title_text: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_page_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_frame_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_frame_charset: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_media_type: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_media_type_t>, pub get_media_state_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_media_state_flags_t>, pub get_selection_text: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_misspelled_word: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>, pub get_dictionary_suggestions: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t, *mut _cef_string_list_t) -> i32>, pub is_editable: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>, pub is_spell_check_enabled: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>, pub get_edit_state_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_edit_state_flags_t>, pub is_custom_menu: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>,
}

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§get_xcoord: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns the X coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView’s origin.

§get_ycoord: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns the Y coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView’s origin.

§get_type_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_type_flags_t>

Returns flags representing the type of node that the context menu was invoked on.

§get_link_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the URL of the link, if any, that encloses the node that the context menu was invoked on.

§get_unfiltered_link_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the link URL, if any, to be used ONLY for “copy link address”. We don’t validate this field in the frontend process.

§get_source_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the source URL, if any, for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video.

§has_image_contents: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns true (1) if the context menu was invoked on an image which has non-NULL contents.

§get_title_text: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the title text or the alt text if the context menu was invoked on an image.

§get_page_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the URL of the top level page that the context menu was invoked on.

§get_frame_url: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the URL of the subframe that the context menu was invoked on.

§get_frame_charset: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the character encoding of the subframe that the context menu was invoked on.

§get_media_type: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_media_type_t>

Returns the type of context node that the context menu was invoked on.

§get_media_state_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_media_state_flags_t>

Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on.

§get_selection_text: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the text of the selection, if any, that the context menu was invoked on.

§get_misspelled_word: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> *mut _cef_string_utf16_t>

Returns the text of the misspelled word, if any, that the context menu was invoked on.

§get_dictionary_suggestions: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t, *mut _cef_string_list_t) -> i32>

Returns true (1) if suggestions exist, false (0) otherwise. Fills in |suggestions| from the spell check service for the misspelled word if there is one.

§is_editable: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns true (1) if the context menu was invoked on an editable node.

§is_spell_check_enabled: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns true (1) if the context menu was invoked on an editable node where spell-check is enabled.

§get_edit_state_flags: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> cef_context_menu_edit_state_flags_t>

Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on.

§is_custom_menu: Option<unsafe extern "C" fn(*mut _cef_context_menu_params_t) -> i32>

Returns true (1) if the context menu contains items specified by the renderer process.