Struct webots_bindings::WbrInterface[][src]

#[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_1wbr_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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.