Struct rg3d_ui::widget::WidgetBuilder [−][src]
Fields
name: String
width: f32
height: f32
desired_position: Vector2<f32>
vertical_alignment: VerticalAlignment
horizontal_alignment: HorizontalAlignment
max_size: Option<Vector2<f32>>
min_size: Option<Vector2<f32>>
background: Option<Brush>
foreground: Option<Brush>
row: usize
column: usize
margin: Thickness
children: Vec<Handle<UINode<M, C>>>
is_hit_test_visible: bool
visibility: bool
z_index: usize
allow_drag: bool
allow_drop: bool
user_data: Option<Rc<dyn Any>>
draw_on_top: bool
enabled: bool
cursor: Option<CursorIcon>
opacity: f32
tooltip: Handle<UINode<M, C>>
tooltip_time: f32
Implementations
impl<M: MessageData, C: Control<M, C>> WidgetBuilder<M, C>
[src]
pub fn new() -> Self
[src]
pub fn with_width(self, width: f32) -> Self
[src]
pub fn with_height(self, height: f32) -> Self
[src]
pub fn with_enabled(self, enabled: bool) -> Self
[src]
pub fn with_vertical_alignment(self, valign: VerticalAlignment) -> Self
[src]
pub fn with_horizontal_alignment(self, halign: HorizontalAlignment) -> Self
[src]
pub fn with_max_size(self, max_size: Vector2<f32>) -> Self
[src]
pub fn with_min_size(self, min_size: Vector2<f32>) -> Self
[src]
pub fn with_background(self, brush: Brush) -> Self
[src]
pub fn with_foreground(self, brush: Brush) -> Self
[src]
pub fn on_row(self, row: usize) -> Self
[src]
pub fn on_column(self, column: usize) -> Self
[src]
pub fn with_margin(self, margin: Thickness) -> Self
[src]
pub fn with_desired_position(self, desired_position: Vector2<f32>) -> Self
[src]
pub fn with_z_index(self, z_index: usize) -> Self
[src]
pub fn with_child(self, handle: Handle<UINode<M, C>>) -> Self
[src]
pub fn with_draw_on_top(self, draw_on_top: bool) -> Self
[src]
pub fn with_children<'a, I: IntoIterator<Item = &'a Handle<UINode<M, C>>>>(
self,
children: I
) -> Self
[src]
self,
children: I
) -> Self
pub fn with_name(self, name: &str) -> Self
[src]
pub fn with_hit_test_visibility(self, state: bool) -> Self
[src]
pub fn with_visibility(self, visibility: bool) -> Self
[src]
pub fn with_allow_drop(self, allow_drop: bool) -> Self
[src]
pub fn with_allow_drag(self, allow_drag: bool) -> Self
[src]
pub fn with_user_data(self, user_data: Rc<dyn Any>) -> Self
[src]
pub fn with_cursor(self, cursor: Option<CursorIcon>) -> Self
[src]
pub fn with_opacity(self, opacity: f32) -> Self
[src]
pub fn with_tooltip(self, tooltip: Handle<UINode<M, C>>) -> Self
[src]
pub fn with_tooltip_time(self, tooltip_time: f32) -> Self
[src]
pub fn with_context_menu(self, context_menu: Handle<UINode<M, C>>) -> Self
[src]
The context menu receives PopupMessage
s for being displayed, and so should support those.
pub fn build(self) -> Widget<M, C>
[src]
Trait Implementations
impl<M: MessageData, C: Control<M, C>> Default for WidgetBuilder<M, C>
[src]
Auto Trait Implementations
impl<M, C> !RefUnwindSafe for WidgetBuilder<M, C>
impl<M, C> !Send for WidgetBuilder<M, C>
impl<M, C> !Sync for WidgetBuilder<M, C>
impl<M, C> Unpin for WidgetBuilder<M, C> where
C: Unpin,
M: Unpin,
C: Unpin,
M: Unpin,
impl<M, C> !UnwindSafe for WidgetBuilder<M, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,