Struct amethyst_ui::UiTransformBuilder [−][src]
pub struct UiTransformBuilder { /* fields omitted */ }
Loadable UiTransform
data
Methods
impl UiTransformBuilder
[src]
impl UiTransformBuilder
pub fn with_id<S>(self, id: S) -> Self where
S: ToString,
[src]
pub fn with_id<S>(self, id: S) -> Self where
S: ToString,
Set id
pub fn with_position(self, x: f32, y: f32, z: f32) -> Self
[src]
pub fn with_position(self, x: f32, y: f32, z: f32) -> Self
Set position
pub fn with_size(self, width: f32, height: f32) -> Self
[src]
pub fn with_size(self, width: f32, height: f32) -> Self
Set size
pub fn with_tab_order(self, tab_order: i32) -> Self
[src]
pub fn with_tab_order(self, tab_order: i32) -> Self
Set tab order
pub fn transparent(self) -> Self
[src]
pub fn transparent(self) -> Self
Set to event transparent
pub fn reactive(self) -> Self
[src]
pub fn reactive(self) -> Self
Add mouse reactive
pub fn with_anchor(self, anchor: Anchor) -> Self
[src]
pub fn with_anchor(self, anchor: Anchor) -> Self
Set anchor
pub fn with_stretch(self, stretch: Stretch) -> Self
[src]
pub fn with_stretch(self, stretch: Stretch) -> Self
Set stretch
Trait Implementations
impl Debug for UiTransformBuilder
[src]
impl Debug for UiTransformBuilder
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for UiTransformBuilder
[src]
impl Clone for UiTransformBuilder
fn clone(&self) -> UiTransformBuilder
[src]
fn clone(&self) -> UiTransformBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for UiTransformBuilder
[src]
impl Default for UiTransformBuilder
impl<'a> PrefabData<'a> for UiTransformBuilder
[src]
impl<'a> PrefabData<'a> for UiTransformBuilder
type SystemData = (WriteStorage<'a, UiTransform>, WriteStorage<'a, MouseReactive>)
SystemData
needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
Load the data for this prefab onto the given Entity
Read more
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>
[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>
Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl Send for UiTransformBuilder
impl Send for UiTransformBuilder
impl Sync for UiTransformBuilder
impl Sync for UiTransformBuilder