#[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
impl Clone for WbrInterface
Source§fn clone(&self) -> WbrInterface
fn clone(&self) -> WbrInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WbrInterface
impl Debug for WbrInterface
impl Copy for WbrInterface
Auto Trait Implementations§
impl Freeze for WbrInterface
impl RefUnwindSafe for WbrInterface
impl Send for WbrInterface
impl Sync for WbrInterface
impl Unpin for WbrInterface
impl UnwindSafe for WbrInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more