pub struct BinStyle {
Show 67 fields pub position: Option<BinPosition>, pub z_index: Option<i16>, pub add_z_index: Option<i16>, pub hidden: Option<bool>, pub opacity: Option<f32>, pub pos_from_t: Option<f32>, pub pos_from_b: Option<f32>, pub pos_from_l: Option<f32>, pub pos_from_r: Option<f32>, pub pos_from_t_pct: Option<f32>, pub pos_from_b_pct: Option<f32>, pub pos_from_l_pct: Option<f32>, pub pos_from_r_pct: Option<f32>, pub pos_from_l_offset: Option<f32>, pub pos_from_t_offset: Option<f32>, pub pos_from_r_offset: Option<f32>, pub pos_from_b_offset: Option<f32>, pub width: Option<f32>, pub width_pct: Option<f32>, pub width_offset: Option<f32>, pub height: Option<f32>, pub height_pct: Option<f32>, pub height_offset: Option<f32>, pub margin_t: Option<f32>, pub margin_b: Option<f32>, pub margin_l: Option<f32>, pub margin_r: Option<f32>, pub pad_t: Option<f32>, pub pad_b: Option<f32>, pub pad_l: Option<f32>, pub pad_r: Option<f32>, pub scroll_y: Option<f32>, pub scroll_x: Option<f32>, pub overflow_y: Option<bool>, pub overflow_x: Option<bool>, pub border_size_t: Option<f32>, pub border_size_b: Option<f32>, pub border_size_l: Option<f32>, pub border_size_r: Option<f32>, pub border_color_t: Option<Color>, pub border_color_b: Option<Color>, pub border_color_l: Option<Color>, pub border_color_r: Option<Color>, pub border_radius_tl: Option<f32>, pub border_radius_tr: Option<f32>, pub border_radius_bl: Option<f32>, pub border_radius_br: Option<f32>, pub back_color: Option<Color>, pub back_image: Option<String>, pub back_image_url: Option<String>, pub back_image_atlas: Option<AtlasCoords>, pub back_image_raw: Option<Arc<BstImageView>>, pub back_image_raw_coords: Option<AtlasCoords>, pub back_image_cache: Option<AtlasCacheCtrl>, pub back_image_effect: Option<ImageEffect>, pub text: String, pub text_color: Option<Color>, pub text_height: Option<f32>, pub text_secret: Option<bool>, pub line_spacing: Option<f32>, pub line_limit: Option<usize>, pub text_wrap: Option<ImtTextWrap>, pub text_vert_align: Option<ImtVertAlign>, pub text_hori_align: Option<ImtHoriAlign>, pub font_family: Option<String>, pub font_weight: Option<ImtWeight>, pub custom_verts: Vec<BinVert>,
}

Fields§

§position: Option<BinPosition>

Determines the positioning type

§z_index: Option<i16>

Overrides the z-index automatically calculated.

§add_z_index: Option<i16>

Offsets the z-index automatically calculated.

§hidden: Option<bool>

Hides the bin, with None set parent will decide the visiblity, setting this explictely will ignore the parents visiblity.

§opacity: Option<f32>

Set the opacity of the bin’s content.

§pos_from_t: Option<f32>§pos_from_b: Option<f32>§pos_from_l: Option<f32>§pos_from_r: Option<f32>§pos_from_t_pct: Option<f32>§pos_from_b_pct: Option<f32>§pos_from_l_pct: Option<f32>§pos_from_r_pct: Option<f32>§pos_from_l_offset: Option<f32>§pos_from_t_offset: Option<f32>§pos_from_r_offset: Option<f32>§pos_from_b_offset: Option<f32>§width: Option<f32>§width_pct: Option<f32>§width_offset: Option<f32>

Used in conjunction with width_pct to provide additional flexibility

§height: Option<f32>§height_pct: Option<f32>§height_offset: Option<f32>

Used in conjunction with height_pct to provide additional flexibility

§margin_t: Option<f32>§margin_b: Option<f32>§margin_l: Option<f32>§margin_r: Option<f32>§pad_t: Option<f32>§pad_b: Option<f32>§pad_l: Option<f32>§pad_r: Option<f32>§scroll_y: Option<f32>§scroll_x: Option<f32>§overflow_y: Option<bool>§overflow_x: Option<bool>§border_size_t: Option<f32>§border_size_b: Option<f32>§border_size_l: Option<f32>§border_size_r: Option<f32>§border_color_t: Option<Color>§border_color_b: Option<Color>§border_color_l: Option<Color>§border_color_r: Option<Color>§border_radius_tl: Option<f32>§border_radius_tr: Option<f32>§border_radius_bl: Option<f32>§border_radius_br: Option<f32>§back_color: Option<Color>§back_image: Option<String>§back_image_url: Option<String>§back_image_atlas: Option<AtlasCoords>§back_image_raw: Option<Arc<BstImageView>>§back_image_raw_coords: Option<AtlasCoords>§back_image_cache: Option<AtlasCacheCtrl>§back_image_effect: Option<ImageEffect>§text: String§text_color: Option<Color>§text_height: Option<f32>§text_secret: Option<bool>§line_spacing: Option<f32>§line_limit: Option<usize>§text_wrap: Option<ImtTextWrap>§text_vert_align: Option<ImtVertAlign>§text_hori_align: Option<ImtHoriAlign>§font_family: Option<String>§font_weight: Option<ImtWeight>§custom_verts: Vec<BinVert>

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. 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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
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.