WbrInterface

Struct WbrInterface 

Source
#[repr(C)]
pub struct WbrInterface {
Show 38 fields pub mandatory: WbrInterface__bindgen_ty_1, pub wbr_custom_function: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *mut c_void>, pub wbr_robot_battery_set_sampling_period: Option<unsafe extern "C" fn(sampling_period: c_int)>, pub wbr_set_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>, pub wbr_camera_set_fov: Option<unsafe extern "C" fn(tag: WbDeviceTag, fov: f64)>, pub wbr_camera_set_exposure: Option<unsafe extern "C" fn(tag: WbDeviceTag, exposure: f64)>, pub wbr_camera_set_focal_distance: Option<unsafe extern "C" fn(tag: WbDeviceTag, focal_distance: f64)>, pub wbr_led_set: Option<unsafe extern "C" fn(tag: WbDeviceTag, state: c_int)>, pub wbr_pen_set_ink_color: Option<unsafe extern "C" fn(tag: WbDeviceTag, color: c_int, density: f64)>, pub wbr_pen_write: Option<unsafe extern "C" fn(tag: WbDeviceTag, write: c_char)>, pub wbr_speaker_emit_sample: Option<unsafe extern "C" fn(tag: WbDeviceTag, data: *const c_void, size: c_int)>, pub wbr_motor_set_force_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>, pub wbr_motor_set_torque_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>, pub wbr_motor_set_position: Option<unsafe extern "C" fn(tag: WbDeviceTag, position: f64)>, pub wbr_motor_set_acceleration: Option<unsafe extern "C" fn(tag: WbDeviceTag, acceleration: f64)>, pub wbr_motor_set_velocity: Option<unsafe extern "C" fn(tag: WbDeviceTag, velocity: f64)>, pub wbr_motor_set_force: Option<unsafe extern "C" fn(tag: WbDeviceTag, force: f64)>, pub wbr_motor_set_torque: Option<unsafe extern "C" fn(tag: WbDeviceTag, torque: f64)>, pub wbr_motor_set_available_force: Option<unsafe extern "C" fn(tag: WbDeviceTag, available_force: f64)>, pub wbr_motor_set_available_torque: Option<unsafe extern "C" fn(tag: WbDeviceTag, available_torque: f64)>, pub wbr_motor_set_control_pid: Option<unsafe extern "C" fn(tag: WbDeviceTag, p: f64, i: f64, d: f64)>, pub wbr_display_set_color: Option<unsafe extern "C" fn(tag: WbDeviceTag, color: c_int)>, pub wbr_display_set_alpha: Option<unsafe extern "C" fn(tag: WbDeviceTag, alpha: f64)>, pub wbr_display_set_opacity: Option<unsafe extern "C" fn(tag: WbDeviceTag, opacity: f64)>, pub wbr_display_draw_pixel: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int)>, pub wbr_display_draw_line: Option<unsafe extern "C" fn(tag: WbDeviceTag, x1: c_int, y1: c_int, x2: c_int, y2: c_int)>, pub wbr_display_draw_rectangle: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int, width: c_int, height: c_int)>, pub wbr_display_draw_oval: Option<unsafe extern "C" fn(tag: WbDeviceTag, cx: c_int, cy: c_int, a: c_int, b: c_int)>, pub wbr_display_draw_polygon: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: *const c_int, y: *const c_int, size: c_int)>, pub wbr_display_draw_text: Option<unsafe extern "C" fn(tag: WbDeviceTag, txt: *const c_char, x: c_int, y: c_int)>, pub wbr_display_fill_rectangle: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int, width: c_int, height: c_int)>, pub wbr_display_fill_oval: Option<unsafe extern "C" fn(tag: WbDeviceTag, cx: c_int, cy: c_int, a: c_int, b: c_int)>, pub wbr_display_fill_polygon: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: *const c_int, y: *const c_int, size: c_int)>, pub wbr_display_image_new: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, width: c_int, height: c_int, data: *const c_void, format: c_int)>, pub wbr_display_image_copy: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, x: c_int, y: c_int, width: c_int, height: c_int)>, pub wbr_display_image_delete: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int)>, pub wbr_display_image_paste: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, x: c_int, y: c_int)>, pub wbr_display_image_save: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int)>,
}

Fields§

§mandatory: WbrInterface__bindgen_ty_1§wbr_custom_function: Option<unsafe extern "C" fn(arg1: *mut c_void) -> *mut c_void>§wbr_robot_battery_set_sampling_period: Option<unsafe extern "C" fn(sampling_period: c_int)>§wbr_set_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>§wbr_camera_set_fov: Option<unsafe extern "C" fn(tag: WbDeviceTag, fov: f64)>§wbr_camera_set_exposure: Option<unsafe extern "C" fn(tag: WbDeviceTag, exposure: f64)>§wbr_camera_set_focal_distance: Option<unsafe extern "C" fn(tag: WbDeviceTag, focal_distance: f64)>§wbr_led_set: Option<unsafe extern "C" fn(tag: WbDeviceTag, state: c_int)>§wbr_pen_set_ink_color: Option<unsafe extern "C" fn(tag: WbDeviceTag, color: c_int, density: f64)>§wbr_pen_write: Option<unsafe extern "C" fn(tag: WbDeviceTag, write: c_char)>§wbr_speaker_emit_sample: Option<unsafe extern "C" fn(tag: WbDeviceTag, data: *const c_void, size: c_int)>§wbr_motor_set_force_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>§wbr_motor_set_torque_sampling_period: Option<unsafe extern "C" fn(tag: WbDeviceTag, sampling_period: c_int)>§wbr_motor_set_position: Option<unsafe extern "C" fn(tag: WbDeviceTag, position: f64)>§wbr_motor_set_acceleration: Option<unsafe extern "C" fn(tag: WbDeviceTag, acceleration: f64)>§wbr_motor_set_velocity: Option<unsafe extern "C" fn(tag: WbDeviceTag, velocity: f64)>§wbr_motor_set_force: Option<unsafe extern "C" fn(tag: WbDeviceTag, force: f64)>§wbr_motor_set_torque: Option<unsafe extern "C" fn(tag: WbDeviceTag, torque: f64)>§wbr_motor_set_available_force: Option<unsafe extern "C" fn(tag: WbDeviceTag, available_force: f64)>§wbr_motor_set_available_torque: Option<unsafe extern "C" fn(tag: WbDeviceTag, available_torque: f64)>§wbr_motor_set_control_pid: Option<unsafe extern "C" fn(tag: WbDeviceTag, p: f64, i: f64, d: f64)>§wbr_display_set_color: Option<unsafe extern "C" fn(tag: WbDeviceTag, color: c_int)>§wbr_display_set_alpha: Option<unsafe extern "C" fn(tag: WbDeviceTag, alpha: f64)>§wbr_display_set_opacity: Option<unsafe extern "C" fn(tag: WbDeviceTag, opacity: f64)>§wbr_display_draw_pixel: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int)>§wbr_display_draw_line: Option<unsafe extern "C" fn(tag: WbDeviceTag, x1: c_int, y1: c_int, x2: c_int, y2: c_int)>§wbr_display_draw_rectangle: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int, width: c_int, height: c_int)>§wbr_display_draw_oval: Option<unsafe extern "C" fn(tag: WbDeviceTag, cx: c_int, cy: c_int, a: c_int, b: c_int)>§wbr_display_draw_polygon: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: *const c_int, y: *const c_int, size: c_int)>§wbr_display_draw_text: Option<unsafe extern "C" fn(tag: WbDeviceTag, txt: *const c_char, x: c_int, y: c_int)>§wbr_display_fill_rectangle: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: c_int, y: c_int, width: c_int, height: c_int)>§wbr_display_fill_oval: Option<unsafe extern "C" fn(tag: WbDeviceTag, cx: c_int, cy: c_int, a: c_int, b: c_int)>§wbr_display_fill_polygon: Option<unsafe extern "C" fn(tag: WbDeviceTag, x: *const c_int, y: *const c_int, size: c_int)>§wbr_display_image_new: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, width: c_int, height: c_int, data: *const c_void, format: c_int)>§wbr_display_image_copy: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, x: c_int, y: c_int, width: c_int, height: c_int)>§wbr_display_image_delete: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int)>§wbr_display_image_paste: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int, x: c_int, y: c_int)>§wbr_display_image_save: Option<unsafe extern "C" fn(tag: WbDeviceTag, id: c_int)>

Trait Implementations§

Source§

impl Clone for WbrInterface

Source§

fn clone(&self) -> WbrInterface

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 WbrInterface

Source§

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

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

impl Copy for WbrInterface

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.