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.

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.

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: Stringtext_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

impl BinStyle[src]

Trait Implementations

impl Clone for BinStyle[src]

fn clone(&self) -> BinStyle[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for BinStyle[src]

fn default() -> BinStyle[src]

Returns the “default value” for a type. Read more

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> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for 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]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V