Brush

Struct Brush 

Source
#[repr(C, packed(4))]
pub struct Brush {
Show 118 fields pub id: ID, pub clone: BrushClone, pub curve: Pointer<CurveMapping>, pub mtex: MTex, pub mask_mtex: MTex, pub toggle_brush: Pointer<Brush>, pub icon_imbuf: Pointer<Nothing>, pub preview: Pointer<PreviewImage>, pub gradient: Pointer<ColorBand>, pub paint_curve: Pointer<PaintCurve>, pub icon_filepath: [i8; 1024], pub normal_weight: f32, pub rake_factor: f32, pub blend: i16, pub ob_mode: i16, pub weight: f32, pub size: i32, pub flag: i32, pub flag2: i32, pub sampling_flag: i32, pub mask_pressure: i32, pub jitter: f32, pub jitter_absolute: i32, pub overlay_flags: i32, pub spacing: i32, pub smooth_stroke_radius: i32, pub smooth_stroke_factor: f32, pub rate: f32, pub rgb: [f32; 3], pub alpha: f32, pub hardness: f32, pub flow: f32, pub wet_mix: f32, pub wet_persistence: f32, pub density: f32, pub paint_flags: i32, pub tip_roundness: f32, pub tip_scale_x: f32, pub secondary_rgb: [f32; 3], pub dash_ratio: f32, pub dash_samples: i32, pub sculpt_plane: i32, pub plane_offset: f32, pub gradient_spacing: i32, pub gradient_stroke_mode: i8, pub gradient_fill_mode: i8, pub _pad0: [i8; 5], pub falloff_shape: i8, pub falloff_angle: f32, pub sculpt_tool: i8, pub uv_sculpt_tool: i8, pub vertexpaint_tool: i8, pub weightpaint_tool: i8, pub imagepaint_tool: i8, pub mask_tool: i8, pub gpencil_tool: i8, pub gpencil_vertex_tool: i8, pub gpencil_sculpt_tool: i8, pub gpencil_weight_tool: i8, pub curves_sculpt_tool: i8, pub _pad1: [i8; 5], pub autosmooth_factor: f32, pub tilt_strength_factor: f32, pub topology_rake_factor: f32, pub crease_pinch_factor: f32, pub normal_radius_factor: f32, pub area_radius_factor: f32, pub wet_paint_radius_factor: f32, pub plane_trim: f32, pub height: f32, pub texture_sample_bias: f32, pub curve_preset: i32, pub disconnected_distance_max: f32, pub deform_target: i32, pub automasking_flags: i32, pub automasking_boundary_edges_propagation_steps: i32, pub elastic_deform_type: i32, pub elastic_deform_volume_preservation: f32, pub snake_hook_deform_type: i32, pub pose_deform_type: i32, pub pose_offset: f32, pub pose_smooth_iterations: i32, pub pose_ik_segments: i32, pub pose_origin_type: i32, pub boundary_deform_type: i32, pub boundary_falloff_type: i32, pub boundary_offset: f32, pub cloth_deform_type: i32, pub cloth_force_falloff_type: i32, pub cloth_simulation_area_type: i32, pub cloth_mass: f32, pub cloth_damping: f32, pub cloth_sim_limit: f32, pub cloth_sim_falloff: f32, pub cloth_constraint_softbody_strength: f32, pub smooth_deform_type: i32, pub surface_smooth_shape_preservation: f32, pub surface_smooth_current_vertex: f32, pub surface_smooth_iterations: i32, pub multiplane_scrape_angle: f32, pub smear_deform_type: i32, pub slide_deform_type: i32, pub texture_overlay_alpha: i32, pub mask_overlay_alpha: i32, pub cursor_overlay_alpha: i32, pub unprojected_radius: f32, pub sharp_threshold: f32, pub blur_kernel_radius: i32, pub blur_mode: i32, pub fill_threshold: f32, pub add_col: [f32; 4], pub sub_col: [f32; 4], pub stencil_pos: [f32; 2], pub stencil_dimension: [f32; 2], pub mask_stencil_pos: [f32; 2], pub mask_stencil_dimension: [f32; 2], pub gpencil_settings: Pointer<BrushGpencilSettings>, pub curves_sculpt_settings: Pointer<BrushCurvesSculptSettings>,
}

Fields§

§id: ID§clone: BrushClone§curve: Pointer<CurveMapping>§mtex: MTex§mask_mtex: MTex§toggle_brush: Pointer<Brush>§icon_imbuf: Pointer<Nothing>§preview: Pointer<PreviewImage>§gradient: Pointer<ColorBand>§paint_curve: Pointer<PaintCurve>§icon_filepath: [i8; 1024]§normal_weight: f32§rake_factor: f32§blend: i16§ob_mode: i16§weight: f32§size: i32§flag: i32§flag2: i32§sampling_flag: i32§mask_pressure: i32§jitter: f32§jitter_absolute: i32§overlay_flags: i32§spacing: i32§smooth_stroke_radius: i32§smooth_stroke_factor: f32§rate: f32§rgb: [f32; 3]§alpha: f32§hardness: f32§flow: f32§wet_mix: f32§wet_persistence: f32§density: f32§paint_flags: i32§tip_roundness: f32§tip_scale_x: f32§secondary_rgb: [f32; 3]§dash_ratio: f32§dash_samples: i32§sculpt_plane: i32§plane_offset: f32§gradient_spacing: i32§gradient_stroke_mode: i8§gradient_fill_mode: i8§_pad0: [i8; 5]§falloff_shape: i8§falloff_angle: f32§sculpt_tool: i8§uv_sculpt_tool: i8§vertexpaint_tool: i8§weightpaint_tool: i8§imagepaint_tool: i8§mask_tool: i8§gpencil_tool: i8§gpencil_vertex_tool: i8§gpencil_sculpt_tool: i8§gpencil_weight_tool: i8§curves_sculpt_tool: i8§_pad1: [i8; 5]§autosmooth_factor: f32§tilt_strength_factor: f32§topology_rake_factor: f32§crease_pinch_factor: f32§normal_radius_factor: f32§area_radius_factor: f32§wet_paint_radius_factor: f32§plane_trim: f32§height: f32§texture_sample_bias: f32§curve_preset: i32§disconnected_distance_max: f32§deform_target: i32§automasking_flags: i32§automasking_boundary_edges_propagation_steps: i32§elastic_deform_type: i32§elastic_deform_volume_preservation: f32§snake_hook_deform_type: i32§pose_deform_type: i32§pose_offset: f32§pose_smooth_iterations: i32§pose_ik_segments: i32§pose_origin_type: i32§boundary_deform_type: i32§boundary_falloff_type: i32§boundary_offset: f32§cloth_deform_type: i32§cloth_force_falloff_type: i32§cloth_simulation_area_type: i32§cloth_mass: f32§cloth_damping: f32§cloth_sim_limit: f32§cloth_sim_falloff: f32§cloth_constraint_softbody_strength: f32§smooth_deform_type: i32§surface_smooth_shape_preservation: f32§surface_smooth_current_vertex: f32§surface_smooth_iterations: i32§multiplane_scrape_angle: f32§smear_deform_type: i32§slide_deform_type: i32§texture_overlay_alpha: i32§mask_overlay_alpha: i32§cursor_overlay_alpha: i32§unprojected_radius: f32§sharp_threshold: f32§blur_kernel_radius: i32§blur_mode: i32§fill_threshold: f32§add_col: [f32; 4]§sub_col: [f32; 4]§stencil_pos: [f32; 2]§stencil_dimension: [f32; 2]§mask_stencil_pos: [f32; 2]§mask_stencil_dimension: [f32; 2]§gpencil_settings: Pointer<BrushGpencilSettings>§curves_sculpt_settings: Pointer<BrushCurvesSculptSettings>

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for Brush

§

impl RefUnwindSafe for Brush

§

impl Send for Brush

§

impl Sync for Brush

§

impl Unpin for Brush

§

impl UnwindSafe for Brush

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> 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, 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.