fz_outline

Struct fz_outline 

Source
#[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: u32

Implementations§

Source§

impl fz_outline

Source

pub fn is_open(&self) -> c_uint

Source

pub fn set_is_open(&mut self, val: c_uint)

Source

pub unsafe fn is_open_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_is_open_raw(this: *mut Self, val: c_uint)

Source

pub fn flags(&self) -> c_uint

Source

pub fn set_flags(&mut self, val: c_uint)

Source

pub unsafe fn flags_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_flags_raw(this: *mut Self, val: c_uint)

Source

pub fn r(&self) -> c_uint

Source

pub fn set_r(&mut self, val: c_uint)

Source

pub unsafe fn r_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_r_raw(this: *mut Self, val: c_uint)

Source

pub fn g(&self) -> c_uint

Source

pub fn set_g(&mut self, val: c_uint)

Source

pub unsafe fn g_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_g_raw(this: *mut Self, val: c_uint)

Source

pub fn b(&self) -> c_uint

Source

pub fn set_b(&mut self, val: c_uint)

Source

pub unsafe fn b_raw(this: *const Self) -> c_uint

Source

pub unsafe fn set_b_raw(this: *mut Self, val: c_uint)

Source

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

Source§

fn clone(&self) -> fz_outline

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for fz_outline

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for fz_outline

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.