#[repr(C)]pub struct fz_outline {
pub refs: c_int,
pub title: *mut c_char,
pub uri: *mut c_char,
pub page: fz_location,
pub x: f32,
pub y: f32,
pub next: *mut fz_outline,
pub down: *mut fz_outline,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>,
pub __bindgen_padding_0: u32,
}Expand description
fz_outline is a tree of the outline of a document (also known
as table of contents).
title: Title of outline item using UTF-8 encoding. May be NULL
if the outline item has no text string.
uri: Destination in the document to be displayed when this
outline item is activated. May be an internal or external
link, or NULL if the outline item does not have a destination.
page: The page number of an internal link, or -1 for external
links or links with no destination.
next: The next outline item at the same level as this outline
item. May be NULL if no more outline items exist at this level.
down: The outline items immediate children in the hierarchy.
May be NULL if no children exist.
is_open: If zero, the outline element is closed in the UI. If
1, it should be open, showing any child elements.
flags: Bit 0 set -> Bold, Bit 1 set -> Italic. All other bits
reserved.
r, g, b: The RGB components of the color of this entry.
Fields§
§refs: c_int§title: *mut c_char§uri: *mut c_char§page: fz_location§x: f32§y: f32§next: *mut fz_outline§down: *mut fz_outline§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§__bindgen_padding_0: u32Implementations§
Source§impl fz_outline
impl fz_outline
pub fn is_open(&self) -> c_uint
pub fn set_is_open(&mut self, val: c_uint)
pub unsafe fn is_open_raw(this: *const Self) -> c_uint
pub unsafe fn set_is_open_raw(this: *mut Self, val: c_uint)
pub fn flags(&self) -> c_uint
pub fn set_flags(&mut self, val: c_uint)
pub unsafe fn flags_raw(this: *const Self) -> c_uint
pub unsafe fn set_flags_raw(this: *mut Self, val: c_uint)
pub fn r(&self) -> c_uint
pub fn set_r(&mut self, val: c_uint)
pub unsafe fn r_raw(this: *const Self) -> c_uint
pub unsafe fn set_r_raw(this: *mut Self, val: c_uint)
pub fn g(&self) -> c_uint
pub fn set_g(&mut self, val: c_uint)
pub unsafe fn g_raw(this: *const Self) -> c_uint
pub unsafe fn set_g_raw(this: *mut Self, val: c_uint)
pub fn b(&self) -> c_uint
pub fn set_b(&mut self, val: c_uint)
pub unsafe fn b_raw(this: *const Self) -> c_uint
pub unsafe fn set_b_raw(this: *mut Self, val: c_uint)
pub fn new_bitfield_1( is_open: c_uint, flags: c_uint, r: c_uint, g: c_uint, b: c_uint, ) -> __BindgenBitfieldUnit<[u8; 4]>
Trait Implementations§
Source§impl Clone for fz_outline
impl Clone for fz_outline
Source§fn clone(&self) -> fz_outline
fn clone(&self) -> fz_outline
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more