Struct basalt::interface::bin::style::BinStyle [−][src]
pub struct BinStyle {}Show 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 pass_events: Option<bool>, 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<Coords>, pub back_image_raw: Option<Arc<BstImageView>>, pub back_image_raw_coords: Option<Coords>, pub back_srgb_yuv: Option<bool>, pub back_image_effect: Option<ImageEffect>, pub text: String, pub text_color: Option<Color>, pub text_height: Option<f32>, 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 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.
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.
pass_events: Option<bool>
If set to true bin hook events will be passed to children instead of this bin.
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<Coords>
back_image_raw: Option<Arc<BstImageView>>
back_image_raw_coords: Option<Coords>
back_srgb_yuv: Option<bool>
back_image_effect: Option<ImageEffect>
text: String
text_color: Option<Color>
text_height: Option<f32>
line_spacing: Option<f32>
line_limit: Option<usize>
text_wrap: Option<ImtTextWrap>
text_vert_align: Option<ImtVertAlign>
text_hori_align: Option<ImtHoriAlign>
custom_verts: Vec<BinVert>
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for BinStyle
impl Send for BinStyle
impl Sync for BinStyle
impl Unpin for BinStyle
impl !UnwindSafe for BinStyle
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]
pub fn ref_from_ptr(ptr: *mut c_void, size: usize) -> Option<*mut T>
[src]Builds a pointer to this type from a raw pointer.
pub fn is_size_suitable(size: usize) -> bool
[src]
pub fn is_size_suitable(size: usize) -> bool
[src]Returns true if the size is suitable to store a type like this.
pub fn indiv_size() -> usize
[src]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,