1
2
3
/* automatically generated by rust-bindgen */

# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _cairo { _unused : [ u8 ; 0 ] , } # [ doc = " cairo_t:" ] # [ doc = "" ] # [ doc = " A #cairo_t contains the current state of the rendering device," ] # [ doc = " including coordinates of yet to be drawn shapes." ] # [ doc = "" ] # [ doc = " Cairo contexts, as #cairo_t objects are named, are central to" ] # [ doc = " cairo and all drawing with cairo is always done to a #cairo_t" ] # [ doc = " object." ] # [ doc = "" ] # [ doc = " Memory management of #cairo_t is done with" ] # [ doc = " cairo_reference() and cairo_destroy()." ] # [ doc = "" ] # [ doc = " Since: 1.0" ] pub type cairo_t = _cairo ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct _cairo_surface { _unused : [ u8 ; 0 ] , } # [ doc = " cairo_surface_t:" ] # [ doc = "" ] # [ doc = " A #cairo_surface_t represents an image, either as the destination" ] # [ doc = " of a drawing operation or as source when drawing onto another" ] # [ doc = " surface.  To draw to a #cairo_surface_t, create a cairo context" ] # [ doc = " with the surface as the target, using cairo_create()." ] # [ doc = "" ] # [ doc = " There are different subtypes of #cairo_surface_t for" ] # [ doc = " different drawing backends; for example, cairo_image_surface_create()" ] # [ doc = " creates a bitmap image in memory." ] # [ doc = " The type of a surface can be queried with cairo_surface_get_type()." ] # [ doc = "" ] # [ doc = " The initial contents of a surface after creation depend upon the manner" ] # [ doc = " of its creation. If cairo creates the surface and backing storage for" ] # [ doc = " the user, it will be initially cleared; for example," ] # [ doc = " cairo_image_surface_create() and cairo_surface_create_similar()." ] # [ doc = " Alternatively, if the user passes in a reference to some backing storage" ] # [ doc = " and asks cairo to wrap that in a #cairo_surface_t, then the contents are" ] # [ doc = " not modified; for example, cairo_image_surface_create_for_data() and" ] # [ doc = " cairo_xlib_surface_create()." ] # [ doc = "" ] # [ doc = " Memory management of #cairo_surface_t is done with" ] # [ doc = " cairo_surface_reference() and cairo_surface_destroy()." ] # [ doc = "" ] # [ doc = " Since: 1.0" ] pub type cairo_surface_t = _cairo_surface ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct girara_tree_node_s { _unused : [ u8 ; 0 ] , } pub type girara_tree_node_t = girara_tree_node_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct girara_list_s { _unused : [ u8 ; 0 ] , } pub type girara_list_t = girara_list_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_document_s { _unused : [ u8 ; 0 ] , } # [ doc = " Document" ] pub type zathura_document_t = zathura_document_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_page_s { _unused : [ u8 ; 0 ] , } # [ doc = " Page" ] pub type zathura_page_t = zathura_page_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_page_widget_s { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_page_widget_class_s { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_s { _unused : [ u8 ; 0 ] , } # [ doc = " Zathura" ] pub type zathura_t = zathura_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_plugin_manager_s { _unused : [ u8 ; 0 ] , } # [ doc = " Plugin manager" ] pub type zathura_plugin_manager_t = zathura_plugin_manager_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_renderer_s { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_render_request_s { _unused : [ u8 ; 0 ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_dbus_s { _unused : [ u8 ; 0 ] , } # [ doc = "< No error occurred" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_OK : zathura_plugin_error_e = 0 ; # [ doc = "< An unknown error occurred" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_UNKNOWN : zathura_plugin_error_e = 1 ; # [ doc = "< Out of memory" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_OUT_OF_MEMORY : zathura_plugin_error_e = 2 ; # [ doc = "< The called function has not been implemented" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_NOT_IMPLEMENTED : zathura_plugin_error_e = 3 ; # [ doc = "< Invalid arguments have been passed" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_INVALID_ARGUMENTS : zathura_plugin_error_e = 4 ; # [ doc = "< The provided password is invalid" ] pub const zathura_plugin_error_e_ZATHURA_ERROR_INVALID_PASSWORD : zathura_plugin_error_e = 5 ; # [ doc = " Error types" ] pub type zathura_plugin_error_e = u32 ; pub use self :: zathura_plugin_error_e as zathura_error_t ; # [ doc = "< Title of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_TITLE : zathura_document_information_type_e = 0 ; # [ doc = "< Author of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_AUTHOR : zathura_document_information_type_e = 1 ; # [ doc = "< Subject of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_SUBJECT : zathura_document_information_type_e = 2 ; # [ doc = "< Keywords of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_KEYWORDS : zathura_document_information_type_e = 3 ; # [ doc = "< Creator of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_CREATOR : zathura_document_information_type_e = 4 ; # [ doc = "< Producer of the document" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_PRODUCER : zathura_document_information_type_e = 5 ; # [ doc = "< Creation data" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_CREATION_DATE : zathura_document_information_type_e = 6 ; # [ doc = "< Modification data" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_MODIFICATION_DATE : zathura_document_information_type_e = 7 ; # [ doc = "< Any other information" ] pub const zathura_document_information_type_e_ZATHURA_DOCUMENT_INFORMATION_OTHER : zathura_document_information_type_e = 8 ; # [ doc = " Possible information entry types" ] pub type zathura_document_information_type_e = u32 ; pub use self :: zathura_document_information_type_e as zathura_document_information_type_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_plugin_s { _unused : [ u8 ; 0 ] , } # [ doc = " Plugin" ] pub type zathura_plugin_t = zathura_plugin_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_document_information_entry_s { _unused : [ u8 ; 0 ] , } # [ doc = " Document information entry" ] # [ doc = "" ] # [ doc = " Represents a single entry in the returned list from the \\ref" ] # [ doc = " zathura_document_get_information function" ] pub type zathura_document_information_entry_t = zathura_document_information_entry_s ; # [ doc = " Image buffer" ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_image_buffer_s { # [ doc = "< Image buffer data" ] pub data : * mut :: std :: os :: raw :: c_uchar , # [ doc = "< Height of the image" ] pub height : :: std :: os :: raw :: c_uint , # [ doc = "< Width of the image" ] pub width : :: std :: os :: raw :: c_uint , # [ doc = "< Rowstride of the image" ] pub rowstride : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_zathura_image_buffer_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_image_buffer_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( zathura_image_buffer_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_image_buffer_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_image_buffer_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_buffer_s > ( ) ) ) . data as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_buffer_s ) , "::" , stringify ! ( data ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_buffer_s > ( ) ) ) . height as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_buffer_s ) , "::" , stringify ! ( height ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_buffer_s > ( ) ) ) . width as * const _ as usize } , 12usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_buffer_s ) , "::" , stringify ! ( width ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_buffer_s > ( ) ) ) . rowstride as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_buffer_s ) , "::" , stringify ! ( rowstride ) ) ) ; } pub type zathura_image_buffer_t = zathura_image_buffer_s ; # [ doc = "< No adjustment" ] pub const zathura_adjust_mode_e_ZATHURA_ADJUST_NONE : zathura_adjust_mode_e = 0 ; # [ doc = "< Adjust to best-fit" ] pub const zathura_adjust_mode_e_ZATHURA_ADJUST_BESTFIT : zathura_adjust_mode_e = 1 ; # [ doc = "< Adjust to width" ] pub const zathura_adjust_mode_e_ZATHURA_ADJUST_WIDTH : zathura_adjust_mode_e = 2 ; # [ doc = "< Focusing the inputbar" ] pub const zathura_adjust_mode_e_ZATHURA_ADJUST_INPUTBAR : zathura_adjust_mode_e = 3 ; # [ doc = "< Number of adjust modes" ] pub const zathura_adjust_mode_e_ZATHURA_ADJUST_MODE_NUMBER : zathura_adjust_mode_e = 4 ; # [ doc = " Adjust mode" ] pub type zathura_adjust_mode_e = u32 ; pub use self :: zathura_adjust_mode_e as zathura_adjust_mode_t ; extern "C" { # [ doc = " Creates an image buffer" ] # [ doc = "" ] # [ doc = " @param width Width of the image stored in the buffer" ] # [ doc = " @param height Height of the image stored in the buffer" ] # [ doc = " @return Image buffer or NULL if an error occurred" ] pub fn zathura_image_buffer_create ( width : :: std :: os :: raw :: c_uint , height : :: std :: os :: raw :: c_uint ) -> * mut zathura_image_buffer_t ; } extern "C" { # [ doc = " Frees the image buffer" ] # [ doc = "" ] # [ doc = " @param buffer The image buffer" ] pub fn zathura_image_buffer_free ( buffer : * mut zathura_image_buffer_t ) ; } # [ doc = " Rectangle structure." ] # [ doc = " The coordinate system has its origin in the left upper corner. The x axes" ] # [ doc = " goes to the right, the y access goes down." ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_rectangle_s { # [ doc = "< X coordinate of point 1" ] pub x1 : f64 , # [ doc = "< Y coordinate of point 1" ] pub y1 : f64 , # [ doc = "< X coordinate of point 2" ] pub x2 : f64 , # [ doc = "< Y coordinate of point 2" ] pub y2 : f64 , } # [ test ] fn bindgen_test_layout_zathura_rectangle_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_rectangle_s > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( zathura_rectangle_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_rectangle_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_rectangle_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_rectangle_s > ( ) ) ) . x1 as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_rectangle_s ) , "::" , stringify ! ( x1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_rectangle_s > ( ) ) ) . y1 as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_rectangle_s ) , "::" , stringify ! ( y1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_rectangle_s > ( ) ) ) . x2 as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( zathura_rectangle_s ) , "::" , stringify ! ( x2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_rectangle_s > ( ) ) ) . y2 as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( zathura_rectangle_s ) , "::" , stringify ! ( y2 ) ) ) ; } pub type zathura_rectangle_t = zathura_rectangle_s ; # [ doc = " Image structure" ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_image_s { # [ doc = "< Coordinates of the image" ] pub position : zathura_rectangle_t , # [ doc = "< Custom data of the plugin" ] pub data : * mut :: std :: os :: raw :: c_void , } # [ test ] fn bindgen_test_layout_zathura_image_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_image_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( zathura_image_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_image_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_image_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_s > ( ) ) ) . position as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_s ) , "::" , stringify ! ( position ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_image_s > ( ) ) ) . data as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( zathura_image_s ) , "::" , stringify ! ( data ) ) ) ; } pub type zathura_image_t = zathura_image_s ; # [ doc = "< Invalid type" ] pub const zathura_link_type_e_ZATHURA_LINK_INVALID : zathura_link_type_e = 0 ; # [ doc = "< No action" ] pub const zathura_link_type_e_ZATHURA_LINK_NONE : zathura_link_type_e = 1 ; # [ doc = "< Links to a page" ] pub const zathura_link_type_e_ZATHURA_LINK_GOTO_DEST : zathura_link_type_e = 2 ; # [ doc = "< Links to a page" ] pub const zathura_link_type_e_ZATHURA_LINK_GOTO_REMOTE : zathura_link_type_e = 3 ; # [ doc = "< Links to an external source" ] pub const zathura_link_type_e_ZATHURA_LINK_URI : zathura_link_type_e = 4 ; # [ doc = "< Links to an external source" ] pub const zathura_link_type_e_ZATHURA_LINK_LAUNCH : zathura_link_type_e = 5 ; # [ doc = "< Links to an external source" ] pub const zathura_link_type_e_ZATHURA_LINK_NAMED : zathura_link_type_e = 6 ; # [ doc = " Possible link types" ] pub type zathura_link_type_e = u32 ; pub use self :: zathura_link_type_e as zathura_link_type_t ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_UNKNOWN : zathura_link_destination_type_e = 0 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_XYZ : zathura_link_destination_type_e = 1 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FIT : zathura_link_destination_type_e = 2 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITH : zathura_link_destination_type_e = 3 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITV : zathura_link_destination_type_e = 4 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITR : zathura_link_destination_type_e = 5 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITB : zathura_link_destination_type_e = 6 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITBH : zathura_link_destination_type_e = 7 ; pub const zathura_link_destination_type_e_ZATHURA_LINK_DESTINATION_FITBV : zathura_link_destination_type_e = 8 ; pub type zathura_link_destination_type_e = u32 ; pub use self :: zathura_link_destination_type_e as zathura_link_destination_type_t ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_link_target_s { pub destination_type : zathura_link_destination_type_t , # [ doc = "< Value" ] pub value : * mut :: std :: os :: raw :: c_char , # [ doc = "< Page number" ] pub page_number : :: std :: os :: raw :: c_uint , # [ doc = "< Left coordinate" ] pub left : f64 , # [ doc = "< Right coordinate" ] pub right : f64 , # [ doc = "< Top coordinate" ] pub top : f64 , # [ doc = "< Bottom coordinate" ] pub bottom : f64 , # [ doc = "< Zoom" ] pub zoom : f64 , } # [ test ] fn bindgen_test_layout_zathura_link_target_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_link_target_s > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( zathura_link_target_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_link_target_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_link_target_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . destination_type as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( destination_type ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . value as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . page_number as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( page_number ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . left as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( left ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . right as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( right ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . top as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( top ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . bottom as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( bottom ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_link_target_s > ( ) ) ) . zoom as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( zathura_link_target_s ) , "::" , stringify ! ( zoom ) ) ) ; } pub type zathura_link_target_t = zathura_link_target_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_link_s { _unused : [ u8 ; 0 ] , } # [ doc = " Link" ] pub type zathura_link_t = zathura_link_s ; # [ doc = " Index element" ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_index_element_s { # [ doc = "< Title of the element" ] pub title : * mut :: std :: os :: raw :: c_char , pub link : * mut zathura_link_t , } # [ test ] fn bindgen_test_layout_zathura_index_element_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_index_element_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( zathura_index_element_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_index_element_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_index_element_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_index_element_s > ( ) ) ) . title as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_index_element_s ) , "::" , stringify ! ( title ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_index_element_s > ( ) ) ) . link as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_index_element_s ) , "::" , stringify ! ( link ) ) ) ; } pub type zathura_index_element_t = zathura_index_element_s ; # [ doc = "< Checkbox" ] pub const zathura_form_type_e_ZATHURA_FORM_CHECKBOX : zathura_form_type_e = 0 ; # [ doc = "< Textfield" ] pub const zathura_form_type_e_ZATHURA_FORM_TEXTFIELD : zathura_form_type_e = 1 ; # [ doc = " Form type" ] pub type zathura_form_type_e = u32 ; pub use self :: zathura_form_type_e as zathura_form_type_t ; # [ doc = " Form element" ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_form_s { # [ doc = "< Position" ] pub position : zathura_rectangle_t , # [ doc = "< Type" ] pub type_ : zathura_form_type_t , } # [ test ] fn bindgen_test_layout_zathura_form_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_form_s > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( zathura_form_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_form_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_form_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_form_s > ( ) ) ) . position as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_form_s ) , "::" , stringify ! ( position ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_form_s > ( ) ) ) . type_ as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( zathura_form_s ) , "::" , stringify ! ( type_ ) ) ) ; } pub type zathura_form_t = zathura_form_s ; # [ doc = " Jump" ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_jump_s { pub page : :: std :: os :: raw :: c_uint , pub x : f64 , pub y : f64 , } # [ test ] fn bindgen_test_layout_zathura_jump_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_jump_s > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( zathura_jump_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_jump_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_jump_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_jump_s > ( ) ) ) . page as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_jump_s ) , "::" , stringify ! ( page ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_jump_s > ( ) ) ) . x as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_jump_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_jump_s > ( ) ) ) . y as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( zathura_jump_s ) , "::" , stringify ! ( y ) ) ) ; } pub type zathura_jump_t = zathura_jump_s ; extern "C" { # [ doc = " Create new index element" ] # [ doc = "" ] # [ doc = " @param title Title of the index element" ] # [ doc = " @return Index element" ] pub fn zathura_index_element_new ( title : * const :: std :: os :: raw :: c_char ) -> * mut zathura_index_element_t ; } extern "C" { # [ doc = " Free index element" ] # [ doc = "" ] # [ doc = " @param index The index element" ] pub fn zathura_index_element_free ( index : * mut zathura_index_element_t ) ; } extern "C" { # [ doc = " Creates a list that should be used to store \\ref" ] # [ doc = " zathura_document_information_entry_t entries" ] # [ doc = "" ] # [ doc = " @return A list or NULL if an error occurred" ] pub fn zathura_document_information_entry_list_new ( ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Creates a new document information entry" ] # [ doc = "" ] # [ doc = " @param type The type" ] # [ doc = " @param value The value" ] # [ doc = "" ] # [ doc = " @return A new entry or NULL if an error occurred" ] pub fn zathura_document_information_entry_new ( type_ : zathura_document_information_type_t , value : * const :: std :: os :: raw :: c_char ) -> * mut zathura_document_information_entry_t ; } extern "C" { # [ doc = " Frees a document information entry" ] # [ doc = "" ] # [ doc = " @param entry The entry that should be freed" ] pub fn zathura_document_information_entry_free ( entry : * mut zathura_document_information_entry_t ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_content_type_context_s { _unused : [ u8 ; 0 ] , } # [ doc = " Context for MIME type detection" ] pub type zathura_content_type_context_t = zathura_content_type_context_s ; # [ doc = " Device scaling structure." ] # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_device_factors_s { pub x : f64 , pub y : f64 , } # [ test ] fn bindgen_test_layout_zathura_device_factors_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_device_factors_s > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( zathura_device_factors_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_device_factors_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_device_factors_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_device_factors_s > ( ) ) ) . x as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_device_factors_s ) , "::" , stringify ! ( x ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_device_factors_s > ( ) ) ) . y as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_device_factors_s ) , "::" , stringify ! ( y ) ) ) ; } pub type zathura_device_factors_t = zathura_device_factors_s ; extern "C" { # [ doc = " Get the page object" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param index Page number" ] # [ doc = " @param error Optional error" ] # [ doc = " @return Page object or NULL if an error occurred" ] pub fn zathura_page_new ( document : * mut zathura_document_t , index : :: std :: os :: raw :: c_uint , error : * mut zathura_error_t ) -> * mut zathura_page_t ; } extern "C" { # [ doc = " Frees the page object" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_page_free ( page : * mut zathura_page_t ) -> zathura_error_t ; } extern "C" { # [ doc = " Returns the associated document" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return The associated document" ] # [ doc = " @return NULL if an error occurred" ] pub fn zathura_page_get_document ( page : * mut zathura_page_t ) -> * mut zathura_document_t ; } extern "C" { # [ doc = " Returns the set id of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return The id of the page" ] pub fn zathura_page_get_index ( page : * mut zathura_page_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Returns the width of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return Width of the page" ] # [ doc = " @return -1 If an error occurred" ] pub fn zathura_page_get_width ( page : * mut zathura_page_t ) -> f64 ; } extern "C" { # [ doc = " Sets the new width of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param width The new width of the page" ] pub fn zathura_page_set_width ( page : * mut zathura_page_t , width : f64 ) ; } extern "C" { # [ doc = " Returns the height of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return Height of the page" ] # [ doc = " @return -1 If an error occurred" ] pub fn zathura_page_get_height ( page : * mut zathura_page_t ) -> f64 ; } extern "C" { # [ doc = " Sets the new height of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param height The new height of the page" ] pub fn zathura_page_set_height ( page : * mut zathura_page_t , height : f64 ) ; } extern "C" { # [ doc = " Returns the visibility of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return true if the page is visible" ] # [ doc = " @return false if the page is hidden" ] pub fn zathura_page_get_visibility ( page : * mut zathura_page_t ) -> bool ; } extern "C" { # [ doc = " Sets the visibility of the page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param visibility The new visibility value" ] pub fn zathura_page_set_visibility ( page : * mut zathura_page_t , visibility : bool ) ; } extern "C" { # [ doc = " Returns the custom data" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @return The custom data or NULL" ] pub fn zathura_page_get_data ( page : * mut zathura_page_t ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { # [ doc = " Sets the custom data" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param data The custom data" ] pub fn zathura_page_set_data ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { # [ doc = " Search page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param text Search item" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of results" ] pub fn zathura_page_search_text ( page : * mut zathura_page_t , text : * const :: std :: os :: raw :: c_char , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Get page links" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of links" ] pub fn zathura_page_links_get ( page : * mut zathura_page_t , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Free page links" ] # [ doc = "" ] # [ doc = " @param list List of links" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_page_links_free ( list : * mut girara_list_t ) -> zathura_error_t ; } extern "C" { # [ doc = " Get list of form fields" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of form fields" ] pub fn zathura_page_form_fields_get ( page : * mut zathura_page_t , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Free list of form fields" ] # [ doc = "" ] # [ doc = " @param list List of form fields" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_page_form_fields_free ( list : * mut girara_list_t ) -> zathura_error_t ; } extern "C" { # [ doc = " Get list of images" ] # [ doc = "" ] # [ doc = " @param page Page" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of images or NULL if an error occurred" ] pub fn zathura_page_images_get ( page : * mut zathura_page_t , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Get image" ] # [ doc = "" ] # [ doc = " @param page Page" ] # [ doc = " @param image Image identifier" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return The cairo image surface or NULL if an error occurred" ] pub fn zathura_page_image_get_cairo ( page : * mut zathura_page_t , image : * mut zathura_image_t , error : * mut zathura_error_t ) -> * mut cairo_surface_t ; } extern "C" { # [ doc = " Get text for selection" ] # [ doc = " @param page Page" ] # [ doc = " @param rectangle Selection" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an error" ] # [ doc = " occurred" ] # [ doc = " @return The selected text (needs to be deallocated with g_free)" ] pub fn zathura_page_get_text ( page : * mut zathura_page_t , rectangle : zathura_rectangle_t , error : * mut zathura_error_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Render page" ] # [ doc = "" ] # [ doc = " @param page The page object" ] # [ doc = " @param cairo Cairo object" ] # [ doc = " @param printing render for printing" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_page_render ( page : * mut zathura_page_t , cairo : * mut cairo_t , printing : bool ) -> zathura_error_t ; } extern "C" { # [ doc = " Get page label. Note that the page label might not exist, in this case NULL" ] # [ doc = " is returned." ] # [ doc = "" ] # [ doc = " @param page Page" ] # [ doc = " @param error Set to an error value (see \\ref zathura_Error_t) if an error" ] # [ doc = "    occurred." ] # [ doc = " @return Page label" ] pub fn zathura_page_get_label ( page : * mut zathura_page_t , error : * mut zathura_error_t ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Open the document" ] # [ doc = "" ] # [ doc = " @param plugin_manager The zathura instance" ] # [ doc = " @param path Path to the document" ] # [ doc = " @param password Password of the document or NULL" ] # [ doc = " @param error Optional error parameter" ] # [ doc = " @return The document object and NULL if an error occurs" ] pub fn zathura_document_open ( zathura : * mut zathura_t , path : * const :: std :: os :: raw :: c_char , uri : * const :: std :: os :: raw :: c_char , password : * const :: std :: os :: raw :: c_char , error : * mut zathura_error_t ) -> * mut zathura_document_t ; } extern "C" { # [ doc = " Free the document" ] # [ doc = "" ] # [ doc = " @param document" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_document_free ( document : * mut zathura_document_t ) -> zathura_error_t ; } extern "C" { # [ doc = " Returns the path of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The file path of the document" ] pub fn zathura_document_get_path ( document : * mut zathura_document_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Returns the URI of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The URI of the document" ] pub fn zathura_document_get_uri ( document : * mut zathura_document_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Returns the basename of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The basename of the document" ] pub fn zathura_document_get_basename ( document : * mut zathura_document_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Returns the password of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return Returns the password of the document" ] pub fn zathura_document_get_password ( document : * mut zathura_document_t ) -> * const :: std :: os :: raw :: c_char ; } extern "C" { # [ doc = " Returns the page at the given index" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param index The index of the page" ] # [ doc = " @return The page or NULL if an error occurred" ] pub fn zathura_document_get_page ( document : * mut zathura_document_t , index : :: std :: os :: raw :: c_uint ) -> * mut zathura_page_t ; } extern "C" { # [ doc = " Returns the number of pages" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return Number of pages" ] pub fn zathura_document_get_number_of_pages ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Sets the number of pages" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param number_of_pages Number of pages" ] pub fn zathura_document_set_number_of_pages ( document : * mut zathura_document_t , number_of_pages : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Returns the current page number" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return Current page" ] pub fn zathura_document_get_current_page_number ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Sets the number of pages" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param current_page The current page number" ] pub fn zathura_document_set_current_page_number ( document : * mut zathura_document_t , current_page : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Returns the X position, as a value relative to the document width (0=left," ] # [ doc = " 1=right)." ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return X adjustment" ] pub fn zathura_document_get_position_x ( document : * mut zathura_document_t ) -> f64 ; } extern "C" { # [ doc = " Returns the Y position as value relative to the document height (0=top," ] # [ doc = " 1=bottom)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return Y adjustment" ] pub fn zathura_document_get_position_y ( document : * mut zathura_document_t ) -> f64 ; } extern "C" { # [ doc = " Sets the X position as a value relative to the document width (0=left," ] # [ doc = " 1=right)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param position_x the X adjustment" ] pub fn zathura_document_set_position_x ( document : * mut zathura_document_t , position_x : f64 ) ; } extern "C" { # [ doc = " Sets the Y position as a value relative to the document height (0=top," ] # [ doc = " 1=bottom)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param position_y the Y adjustment" ] pub fn zathura_document_set_position_y ( document : * mut zathura_document_t , position_y : f64 ) ; } extern "C" { # [ doc = " Returns the current zoom value of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The current zoom value" ] pub fn zathura_document_get_zoom ( document : * mut zathura_document_t ) -> f64 ; } extern "C" { # [ doc = " Returns the current scale value of the document (based on zoom and screen" ] # [ doc = " PPI)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The current scale value, in pixels per point" ] pub fn zathura_document_get_scale ( document : * mut zathura_document_t ) -> f64 ; } extern "C" { # [ doc = " Sets the new zoom value of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param zoom The new zoom value" ] pub fn zathura_document_set_zoom ( document : * mut zathura_document_t , zoom : f64 ) ; } extern "C" { # [ doc = " Returns the rotation value of zathura (0..360)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The current rotation value" ] pub fn zathura_document_get_rotation ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Sets the new rotation value" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param rotation The new rotation value" ] pub fn zathura_document_set_rotation ( document : * mut zathura_document_t , rotation : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Returns the adjust mode of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The adjust mode" ] pub fn zathura_document_get_adjust_mode ( document : * mut zathura_document_t ) -> zathura_adjust_mode_t ; } extern "C" { # [ doc = " Sets the new adjust mode of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param mode The new adjust mode" ] pub fn zathura_document_set_adjust_mode ( document : * mut zathura_document_t , mode : zathura_adjust_mode_t ) ; } extern "C" { # [ doc = " Returns the page offset of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The page offset" ] pub fn zathura_document_get_page_offset ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_int ; } extern "C" { # [ doc = " Sets the new page offset of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param page_offset The new page offset" ] pub fn zathura_document_set_page_offset ( document : * mut zathura_document_t , page_offset : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Returns the private data of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The private data or NULL" ] pub fn zathura_document_get_data ( document : * mut zathura_document_t ) -> * mut :: std :: os :: raw :: c_void ; } extern "C" { # [ doc = " Sets the private data of the document" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @param data The new private data" ] pub fn zathura_document_set_data ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void ) ; } extern "C" { # [ doc = " Sets the width of the viewport in pixels." ] # [ doc = "" ] # [ doc = " @param[in] document     The document instance" ] # [ doc = " @param[in] width        The width of the viewport" ] pub fn zathura_document_set_viewport_width ( document : * mut zathura_document_t , width : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Sets the height of the viewport in pixels." ] # [ doc = "" ] # [ doc = " @param[in] document     The document instance" ] # [ doc = " @param[in] height       The height of the viewport" ] pub fn zathura_document_set_viewport_height ( document : * mut zathura_document_t , height : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Return the size of the viewport in pixels." ] # [ doc = "" ] # [ doc = " @param[in]  document     The document instance" ] # [ doc = " @param[out] height,width The width and height of the viewport" ] pub fn zathura_document_get_viewport_size ( document : * mut zathura_document_t , height : * mut :: std :: os :: raw :: c_uint , width : * mut :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = "Sets the viewport PPI (pixels per inch: the resolution of the monitor, after" ] # [ doc = "scaling with the device factor)." ] # [ doc = "" ] # [ doc = " @param[in] document     The document instance" ] # [ doc = " @param[in] height       The viewport PPI" ] pub fn zathura_document_set_viewport_ppi ( document : * mut zathura_document_t , ppi : f64 ) ; } extern "C" { # [ doc = " Return the viewport PPI (pixels per inch: the resolution of the monitor," ] # [ doc = " after scaling with the device factor)." ] # [ doc = "" ] # [ doc = " @param[in] document     The document instance" ] # [ doc = " @return    The viewport PPI" ] pub fn zathura_document_get_viewport_ppi ( document : * mut zathura_document_t ) -> f64 ; } extern "C" { # [ doc = " Set the device scale factors (e.g. for HiDPI). These are generally integers" ] # [ doc = " and equal for x and y. These scaling factors are only used when rendering to" ] # [ doc = " the screen." ] # [ doc = "" ] # [ doc = " @param[in] x_factor,yfactor The x and y scale factors" ] pub fn zathura_document_set_device_factors ( document : * mut zathura_document_t , x_factor : f64 , y_factor : f64 ) ; } extern "C" { # [ doc = " Return the current device scale factors (guaranteed to be non-zero)." ] # [ doc = "" ] # [ doc = " @return The x and y device scale factors" ] pub fn zathura_document_get_device_factors ( document : * mut zathura_document_t ) -> zathura_device_factors_t ; } extern "C" { # [ doc = " Return the size of a cell from the document's layout table in pixels. Assumes" ] # [ doc = " that the table is homogeneous (i.e. every cell has the same dimensions). It" ] # [ doc = " takes the current scale into account." ] # [ doc = "" ] # [ doc = " @param[in]  document     The document instance" ] # [ doc = " @param[out] height,width The computed height and width of the cell" ] pub fn zathura_document_get_cell_size ( document : * mut zathura_document_t , height : * mut :: std :: os :: raw :: c_uint , width : * mut :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Compute the size of the entire document to be displayed in pixels. Takes into" ] # [ doc = " account the scale, the layout of the pages, and the padding between them. It" ] # [ doc = " should be equal to the allocation of zathura->ui.page_widget once it's shown." ] # [ doc = "" ] # [ doc = " @param[in]  document               The document" ] # [ doc = " @param[out] height,width           The height and width of the document" ] pub fn zathura_document_get_document_size ( document : * mut zathura_document_t , height : * mut :: std :: os :: raw :: c_uint , width : * mut :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Sets the layout of the pages in the document" ] # [ doc = "" ] # [ doc = " @param[in]  document          The document instance" ] # [ doc = " @param[in]  page_padding      pixels of padding between pages" ] # [ doc = " @param[in]  pages_per_row     number of pages per row" ] # [ doc = " @param[in]  first_page_column column of the first page (first column is 1)" ] pub fn zathura_document_set_page_layout ( document : * mut zathura_document_t , page_padding : :: std :: os :: raw :: c_uint , pages_per_row : :: std :: os :: raw :: c_uint , first_page_column : :: std :: os :: raw :: c_uint ) ; } extern "C" { # [ doc = " Returns the padding in pixels between pages" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The padding in pixels between pages" ] pub fn zathura_document_get_page_padding ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Returns the number of pages per row" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The number of pages per row" ] pub fn zathura_document_get_pages_per_row ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Returns the column for the first page (first column = 1)" ] # [ doc = "" ] # [ doc = " @param document The document" ] # [ doc = " @return The column for the first page" ] pub fn zathura_document_get_first_page_column ( document : * mut zathura_document_t ) -> :: std :: os :: raw :: c_uint ; } extern "C" { # [ doc = " Save the document" ] # [ doc = "" ] # [ doc = " @param document The document object" ] # [ doc = " @param path Path for the saved file" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_document_save_as ( document : * mut zathura_document_t , path : * const :: std :: os :: raw :: c_char ) -> zathura_error_t ; } extern "C" { # [ doc = " Generate the document index" ] # [ doc = "" ] # [ doc = " @param document The document object" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return Generated index" ] pub fn zathura_document_index_generate ( document : * mut zathura_document_t , error : * mut zathura_error_t ) -> * mut girara_tree_node_t ; } extern "C" { # [ doc = " Get list of attachments" ] # [ doc = "" ] # [ doc = " @param document The document object" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of attachments" ] pub fn zathura_document_attachments_get ( document : * mut zathura_document_t , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Save document attachment" ] # [ doc = "" ] # [ doc = " @param document The document objects" ] # [ doc = " @param attachment name of the attachment" ] # [ doc = " @param file the target filename" ] # [ doc = " @return ZATHURA_ERROR_OK when no error occurred, otherwise see" ] # [ doc = "    zathura_error_t" ] pub fn zathura_document_attachment_save ( document : * mut zathura_document_t , attachment : * const :: std :: os :: raw :: c_char , file : * const :: std :: os :: raw :: c_char ) -> zathura_error_t ; } extern "C" { # [ doc = " Returns a string of the requested information" ] # [ doc = "" ] # [ doc = " @param document The zathura document" ] # [ doc = " @param error Set to an error value (see \\ref zathura_error_t) if an" ] # [ doc = "   error occurred" ] # [ doc = " @return List of document information entries or NULL if information could not be retrieved" ] pub fn zathura_document_get_information ( document : * mut zathura_document_t , error : * mut zathura_error_t ) -> * mut girara_list_t ; } extern "C" { # [ doc = " Creates a new zathura link" ] # [ doc = "" ] # [ doc = " @param type Type of the link" ] # [ doc = " @param position Position of the link" ] # [ doc = " @param target Target" ] # [ doc = " @return New zathura link" ] pub fn zathura_link_new ( type_ : zathura_link_type_t , position : zathura_rectangle_t , target : zathura_link_target_t ) -> * mut zathura_link_t ; } extern "C" { # [ doc = " Free link" ] # [ doc = "" ] # [ doc = " @param link The link" ] pub fn zathura_link_free ( link : * mut zathura_link_t ) ; } extern "C" { # [ doc = " Returns the type of the link" ] # [ doc = "" ] # [ doc = " @param link The link" ] # [ doc = " @return The target type of the link" ] pub fn zathura_link_get_type ( link : * mut zathura_link_t ) -> zathura_link_type_t ; } extern "C" { # [ doc = " Returns the position of the link" ] # [ doc = "" ] # [ doc = " @param link The link" ] # [ doc = " @return The position of the link" ] pub fn zathura_link_get_position ( link : * mut zathura_link_t ) -> zathura_rectangle_t ; } extern "C" { # [ doc = " The target value of the link" ] # [ doc = "" ] # [ doc = " @param link The link" ] # [ doc = " @return Returns the target of the link (depends on the link type)" ] pub fn zathura_link_get_target ( link : * mut zathura_link_t ) -> zathura_link_target_t ; } extern "C" { # [ doc = " Evaluate link" ] # [ doc = "" ] # [ doc = " @param zathura Zathura instance" ] # [ doc = " @param link The link" ] pub fn zathura_link_evaluate ( zathura : * mut zathura_t , link : * mut zathura_link_t ) ; } extern "C" { # [ doc = " Display a link using girara_notify" ] # [ doc = "" ] # [ doc = " @param zathura Zathura instance" ] # [ doc = " @param link The link" ] pub fn zathura_link_display ( zathura : * mut zathura_t , link : * mut zathura_link_t ) ; } pub type zathura_plugin_functions_t = zathura_plugin_functions_s ; # [ doc = " Opens a document" ] pub type zathura_plugin_document_open_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t ) -> zathura_error_t > ; # [ doc = " Frees the document" ] pub type zathura_plugin_document_free_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void ) -> zathura_error_t > ; # [ doc = " Generates the document index" ] pub type zathura_plugin_document_index_generate_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_tree_node_t > ; # [ doc = " Save the document" ] pub type zathura_plugin_document_save_as_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void , path : * const :: std :: os :: raw :: c_char ) -> zathura_error_t > ; # [ doc = " Get list of attachments" ] pub type zathura_plugin_document_attachments_get_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Save attachment to a file" ] pub type zathura_plugin_document_attachment_save_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void , attachment : * const :: std :: os :: raw :: c_char , file : * const :: std :: os :: raw :: c_char ) -> zathura_error_t > ; # [ doc = " Get document information" ] pub type zathura_plugin_document_get_information_t = :: std :: option :: Option < unsafe extern "C" fn ( document : * mut zathura_document_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Gets the page object" ] pub type zathura_plugin_page_init_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t ) -> zathura_error_t > ; # [ doc = " Free page" ] pub type zathura_plugin_page_clear_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void ) -> zathura_error_t > ; # [ doc = " Search text" ] pub type zathura_plugin_page_search_text_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , text : * const :: std :: os :: raw :: c_char , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Get links on a page" ] pub type zathura_plugin_page_links_get_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Get form fields" ] pub type zathura_plugin_page_form_fields_get_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Get list of images" ] pub type zathura_plugin_page_images_get_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut girara_list_t > ; # [ doc = " Get the image" ] pub type zathura_plugin_page_image_get_cairo_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , image : * mut zathura_image_t , error : * mut zathura_error_t ) -> * mut cairo_surface_t > ; # [ doc = " Get text for selection" ] pub type zathura_plugin_page_get_text_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , rectangle : zathura_rectangle_t , error : * mut zathura_error_t ) -> * mut :: std :: os :: raw :: c_char > ; # [ doc = " Renders the page" ] pub type zathura_plugin_page_render_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , error : * mut zathura_error_t ) -> * mut zathura_image_buffer_t > ; # [ doc = " Renders the page to a cairo surface." ] pub type zathura_plugin_page_render_cairo_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , cairo : * mut cairo_t , printing : bool ) -> zathura_error_t > ; # [ doc = " Get page label." ] pub type zathura_plugin_page_get_label_t = :: std :: option :: Option < unsafe extern "C" fn ( page : * mut zathura_page_t , data : * mut :: std :: os :: raw :: c_void , label : * mut * mut :: std :: os :: raw :: c_char ) -> zathura_error_t > ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_plugin_functions_s { # [ doc = " Opens a document" ] pub document_open : zathura_plugin_document_open_t , # [ doc = " Frees the document" ] pub document_free : zathura_plugin_document_free_t , # [ doc = " Generates the document index" ] pub document_index_generate : zathura_plugin_document_index_generate_t , # [ doc = " Save the document" ] pub document_save_as : zathura_plugin_document_save_as_t , # [ doc = " Get list of attachments" ] pub document_attachments_get : zathura_plugin_document_attachments_get_t , # [ doc = " Save attachment to a file" ] pub document_attachment_save : zathura_plugin_document_attachment_save_t , # [ doc = " Get document information" ] pub document_get_information : zathura_plugin_document_get_information_t , # [ doc = " Gets the page object" ] pub page_init : zathura_plugin_page_init_t , # [ doc = " Free page" ] pub page_clear : zathura_plugin_page_clear_t , # [ doc = " Search text" ] pub page_search_text : zathura_plugin_page_search_text_t , # [ doc = " Get links on a page" ] pub page_links_get : zathura_plugin_page_links_get_t , # [ doc = " Get form fields" ] pub page_form_fields_get : zathura_plugin_page_form_fields_get_t , # [ doc = " Get list of images" ] pub page_images_get : zathura_plugin_page_images_get_t , # [ doc = " Get the image" ] pub page_image_get_cairo : zathura_plugin_page_image_get_cairo_t , # [ doc = " Get text for selection" ] pub page_get_text : zathura_plugin_page_get_text_t , # [ doc = " Renders the page" ] pub page_render : zathura_plugin_page_render_t , # [ doc = " Renders the page to a cairo surface." ] pub page_render_cairo : zathura_plugin_page_render_cairo_t , # [ doc = " Get page label." ] pub page_get_label : zathura_plugin_page_get_label_t , } # [ test ] fn bindgen_test_layout_zathura_plugin_functions_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_plugin_functions_s > ( ) , 144usize , concat ! ( "Size of: " , stringify ! ( zathura_plugin_functions_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_plugin_functions_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_plugin_functions_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_open as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_open ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_free as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_free ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_index_generate as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_index_generate ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_save_as as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_save_as ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_attachments_get as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_attachments_get ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_attachment_save as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_attachment_save ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . document_get_information as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( document_get_information ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_init as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_init ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_clear as * const _ as usize } , 64usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_clear ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_search_text as * const _ as usize } , 72usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_search_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_links_get as * const _ as usize } , 80usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_links_get ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_form_fields_get as * const _ as usize } , 88usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_form_fields_get ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_images_get as * const _ as usize } , 96usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_images_get ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_image_get_cairo as * const _ as usize } , 104usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_image_get_cairo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_get_text as * const _ as usize } , 112usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_get_text ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_render as * const _ as usize } , 120usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_render ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_render_cairo as * const _ as usize } , 128usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_render_cairo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_functions_s > ( ) ) ) . page_get_label as * const _ as usize } , 136usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_functions_s ) , "::" , stringify ! ( page_get_label ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_plugin_version_s { # [ doc = "< Major" ] pub major : :: std :: os :: raw :: c_uint , # [ doc = "< Minor" ] pub minor : :: std :: os :: raw :: c_uint , # [ doc = "< Revision" ] pub rev : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_zathura_plugin_version_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_plugin_version_s > ( ) , 12usize , concat ! ( "Size of: " , stringify ! ( zathura_plugin_version_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_plugin_version_s > ( ) , 4usize , concat ! ( "Alignment of " , stringify ! ( zathura_plugin_version_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_version_s > ( ) ) ) . major as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_version_s ) , "::" , stringify ! ( major ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_version_s > ( ) ) ) . minor as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_version_s ) , "::" , stringify ! ( minor ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_version_s > ( ) ) ) . rev as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_version_s ) , "::" , stringify ! ( rev ) ) ) ; } pub type zathura_plugin_version_t = zathura_plugin_version_s ; # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct zathura_plugin_definition_s { pub name : * const :: std :: os :: raw :: c_char , pub version : zathura_plugin_version_t , pub functions : zathura_plugin_functions_t , pub mime_types_size : usize , pub mime_types : * mut * const :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_zathura_plugin_definition_s ( ) { assert_eq ! ( :: std :: mem :: size_of :: < zathura_plugin_definition_s > ( ) , 184usize , concat ! ( "Size of: " , stringify ! ( zathura_plugin_definition_s ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < zathura_plugin_definition_s > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( zathura_plugin_definition_s ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_definition_s > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_definition_s ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_definition_s > ( ) ) ) . version as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_definition_s ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_definition_s > ( ) ) ) . functions as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_definition_s ) , "::" , stringify ! ( functions ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_definition_s > ( ) ) ) . mime_types_size as * const _ as usize } , 168usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_definition_s ) , "::" , stringify ! ( mime_types_size ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < zathura_plugin_definition_s > ( ) ) ) . mime_types as * const _ as usize } , 176usize , concat ! ( "Offset of field: " , stringify ! ( zathura_plugin_definition_s ) , "::" , stringify ! ( mime_types ) ) ) ; } pub type zathura_plugin_definition_t = zathura_plugin_definition_s ;