Struct rute::auto::rect_ffi::RURectFuncs

source ·
#[repr(C)]
pub struct RURectFuncs {
Show 56 fields pub destroy: extern "C" fn(self_c: *const RUBase), pub is_null: extern "C" fn(self_c: *const RUBase) -> bool, pub is_empty: extern "C" fn(self_c: *const RUBase) -> bool, pub is_valid: extern "C" fn(self_c: *const RUBase) -> bool, pub left: extern "C" fn(self_c: *const RUBase) -> i32, pub top: extern "C" fn(self_c: *const RUBase) -> i32, pub right: extern "C" fn(self_c: *const RUBase) -> i32, pub bottom: extern "C" fn(self_c: *const RUBase) -> i32, pub normalized: extern "C" fn(self_c: *const RUBase) -> RURect, pub x: extern "C" fn(self_c: *const RUBase) -> i32, pub y: extern "C" fn(self_c: *const RUBase) -> i32, pub set_left: extern "C" fn(self_c: *const RUBase, pos: i32), pub set_top: extern "C" fn(self_c: *const RUBase, pos: i32), pub set_right: extern "C" fn(self_c: *const RUBase, pos: i32), pub set_bottom: extern "C" fn(self_c: *const RUBase, pos: i32), pub set_x: extern "C" fn(self_c: *const RUBase, x: i32), pub set_y: extern "C" fn(self_c: *const RUBase, y: i32), pub set_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub set_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub set_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub set_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub top_left: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub bottom_right: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub top_right: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub bottom_left: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub center: extern "C" fn(self_c: *const RUBase) -> RUPoint, pub move_left: extern "C" fn(self_c: *const RUBase, pos: i32), pub move_top: extern "C" fn(self_c: *const RUBase, pos: i32), pub move_right: extern "C" fn(self_c: *const RUBase, pos: i32), pub move_bottom: extern "C" fn(self_c: *const RUBase, pos: i32), pub move_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub move_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub move_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub move_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub move_center: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub move_to: extern "C" fn(self_c: *const RUBase, x: i32, t: i32), pub move_to_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase), pub set_rect: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, w: i32, h: i32), pub set_coords: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32), pub adjust: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32), pub adjusted: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32) -> RURect, pub size: extern "C" fn(self_c: *const RUBase) -> RUSize, pub width: extern "C" fn(self_c: *const RUBase) -> i32, pub height: extern "C" fn(self_c: *const RUBase) -> i32, pub set_width: extern "C" fn(self_c: *const RUBase, w: i32), pub set_height: extern "C" fn(self_c: *const RUBase, h: i32), pub set_size: extern "C" fn(self_c: *const RUBase, s: *const RUBase), pub contains: extern "C" fn(self_c: *const RUBase, r: *const RUBase, proper: bool) -> bool, pub contains_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase, proper: bool) -> bool, pub contains_3: extern "C" fn(self_c: *const RUBase, x: i32, y: i32) -> bool, pub contains_4: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, proper: bool) -> bool, pub united: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURect, pub intersected: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURect, pub intersects: extern "C" fn(self_c: *const RUBase, r: *const RUBase) -> bool, pub margins_added: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURect, pub margins_removed: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURect,
}

Fields

destroy: extern "C" fn(self_c: *const RUBase)is_null: extern "C" fn(self_c: *const RUBase) -> boolis_empty: extern "C" fn(self_c: *const RUBase) -> boolis_valid: extern "C" fn(self_c: *const RUBase) -> boolleft: extern "C" fn(self_c: *const RUBase) -> i32top: extern "C" fn(self_c: *const RUBase) -> i32right: extern "C" fn(self_c: *const RUBase) -> i32bottom: extern "C" fn(self_c: *const RUBase) -> i32normalized: extern "C" fn(self_c: *const RUBase) -> RURectx: extern "C" fn(self_c: *const RUBase) -> i32y: extern "C" fn(self_c: *const RUBase) -> i32set_left: extern "C" fn(self_c: *const RUBase, pos: i32)set_top: extern "C" fn(self_c: *const RUBase, pos: i32)set_right: extern "C" fn(self_c: *const RUBase, pos: i32)set_bottom: extern "C" fn(self_c: *const RUBase, pos: i32)set_x: extern "C" fn(self_c: *const RUBase, x: i32)set_y: extern "C" fn(self_c: *const RUBase, y: i32)set_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase)set_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase)set_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase)set_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase)top_left: extern "C" fn(self_c: *const RUBase) -> RUPointbottom_right: extern "C" fn(self_c: *const RUBase) -> RUPointtop_right: extern "C" fn(self_c: *const RUBase) -> RUPointbottom_left: extern "C" fn(self_c: *const RUBase) -> RUPointcenter: extern "C" fn(self_c: *const RUBase) -> RUPointmove_left: extern "C" fn(self_c: *const RUBase, pos: i32)move_top: extern "C" fn(self_c: *const RUBase, pos: i32)move_right: extern "C" fn(self_c: *const RUBase, pos: i32)move_bottom: extern "C" fn(self_c: *const RUBase, pos: i32)move_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase)move_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase)move_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase)move_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase)move_center: extern "C" fn(self_c: *const RUBase, p: *const RUBase)move_to: extern "C" fn(self_c: *const RUBase, x: i32, t: i32)move_to_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase)set_rect: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, w: i32, h: i32)set_coords: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32)adjust: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32)adjusted: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32) -> RURectsize: extern "C" fn(self_c: *const RUBase) -> RUSizewidth: extern "C" fn(self_c: *const RUBase) -> i32height: extern "C" fn(self_c: *const RUBase) -> i32set_width: extern "C" fn(self_c: *const RUBase, w: i32)set_height: extern "C" fn(self_c: *const RUBase, h: i32)set_size: extern "C" fn(self_c: *const RUBase, s: *const RUBase)contains: extern "C" fn(self_c: *const RUBase, r: *const RUBase, proper: bool) -> boolcontains_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase, proper: bool) -> boolcontains_3: extern "C" fn(self_c: *const RUBase, x: i32, y: i32) -> boolcontains_4: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, proper: bool) -> boolunited: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURectintersected: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURectintersects: extern "C" fn(self_c: *const RUBase, r: *const RUBase) -> boolmargins_added: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURectmargins_removed: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURect

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.