[−][src]Struct orbtk::prelude::FontIconBlock
The FontIconBlock
widget is used to draw text. It is not interactive.
style: font-icon-block
Implementations
impl FontIconBlock
[src]
pub fn id(self, id: impl Into<String>) -> FontIconBlock
[src]
Sets the id selector.
pub fn style(self, style: impl Into<String>) -> FontIconBlock
[src]
Sets the style selector (replaces the old selector property).
pub fn position(self, position: impl IntoPropertySource<Point>) -> FontIconBlock
[src]
Sets or shares the position of the widget. (Be careful the position could be adjusted by layouts).
pub fn constraint(
self,
constraint: impl IntoPropertySource<Constraint>
) -> FontIconBlock
[src]
self,
constraint: impl IntoPropertySource<Constraint>
) -> FontIconBlock
Sets or shares the constraint property.
pub fn on_changed_filter(
self,
filter: impl IntoPropertySource<Filter>
) -> FontIconBlock
[src]
self,
filter: impl IntoPropertySource<Filter>
) -> FontIconBlock
Sets or shares the filter for the on_changed property callback.
pub fn v_align(
self,
v_align: impl IntoPropertySource<Alignment>
) -> FontIconBlock
[src]
self,
v_align: impl IntoPropertySource<Alignment>
) -> FontIconBlock
Sets or shares the vertical alignment property.
pub fn h_align(
self,
h_align: impl IntoPropertySource<Alignment>
) -> FontIconBlock
[src]
self,
h_align: impl IntoPropertySource<Alignment>
) -> FontIconBlock
Sets or shares the horizontal alignment property.
pub fn vertical_alignment(
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> FontIconBlock
[src]
self,
vertical_alignment: impl IntoPropertySource<Alignment>
) -> FontIconBlock
Use v_align instead
Sets or shares the vertical alignment property.
pub fn horizontal_alignment(
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> FontIconBlock
[src]
self,
horizontal_alignment: impl IntoPropertySource<Alignment>
) -> FontIconBlock
Use h_align instead
Sets or shares the horizontal alignment property.
pub fn visibility(
self,
visibility: impl IntoPropertySource<Visibility>
) -> FontIconBlock
[src]
self,
visibility: impl IntoPropertySource<Visibility>
) -> FontIconBlock
Sets or shares the visibility property.
pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> FontIconBlock
[src]
Sets or shares the margin property.
pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> FontIconBlock
[src]
Sets or shares the enabled property.
pub fn clip(self, clip: impl IntoPropertySource<bool>) -> FontIconBlock
[src]
Sets or shares the clip property.
pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> FontIconBlock
[src]
Sets or shares the opacity property.
pub fn width(self, width: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new width.
pub fn height(self, height: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new height.
pub fn size(
self,
width: impl Into<f64>,
height: impl Into<f64>
) -> FontIconBlock
[src]
self,
width: impl Into<f64>,
height: impl Into<f64>
) -> FontIconBlock
Inserts a new size.
pub fn min_width(self, min_width: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new min_width.
pub fn min_height(self, min_height: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new min_height.
pub fn min_size(
self,
min_width: impl Into<f64>,
min_height: impl Into<f64>
) -> FontIconBlock
[src]
self,
min_width: impl Into<f64>,
min_height: impl Into<f64>
) -> FontIconBlock
Inserts a new min_size.
pub fn max_width(self, max_width: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new max_width.
pub fn max_height(self, max_height: impl Into<f64>) -> FontIconBlock
[src]
Inserts a new max_height.
pub fn max_size(
self,
max_width: impl Into<f64>,
max_height: impl Into<f64>
) -> FontIconBlock
[src]
self,
max_width: impl Into<f64>,
max_height: impl Into<f64>
) -> FontIconBlock
Inserts a new min_size.
pub fn name<P>(self, name: P) -> FontIconBlock where
P: Into<String>,
[src]
P: Into<String>,
Sets the debug name of the widget.
pub fn icon<P>(self, icon: P) -> FontIconBlock where
P: IntoPropertySource<String>,
[src]
P: IntoPropertySource<String>,
Sets or shares the icon property.
pub fn icon_brush<P>(self, icon_brush: P) -> FontIconBlock where
P: IntoPropertySource<Brush>,
[src]
P: IntoPropertySource<Brush>,
Sets or shares the icon brush property.
pub fn icon_size<P>(self, icon_size: P) -> FontIconBlock where
P: IntoPropertySource<f64>,
[src]
P: IntoPropertySource<f64>,
Sets or share the icon font size property.
pub fn icon_font<P>(self, icon_font: P) -> FontIconBlock where
P: IntoPropertySource<String>,
[src]
P: IntoPropertySource<String>,
Sets or shares the icon font property.
impl FontIconBlock
[src]
pub fn get(ctx: WidgetContainer<'a>) -> FontIconBlockCtx<'a>
[src]
Gets a widget context that wraps the given widgets an provides access to the its properties.
Trait Implementations
impl ChangedHandler for FontIconBlock
[src]
fn on_changed<H>(self, handler: H) -> Self where
H: 'static + Fn(&mut StatesContext<'_>, Entity, &str),
[src]
H: 'static + Fn(&mut StatesContext<'_>, Entity, &str),
impl Default for FontIconBlock
[src]
fn default() -> FontIconBlock
[src]
impl Template for FontIconBlock
[src]
fn template(self, Entity, &mut BuildContext<'_>) -> FontIconBlock
[src]
fn render_object(&self) -> Box<dyn RenderObject + 'static>
[src]
fn layout(&self) -> Box<dyn Layout + 'static>
[src]
impl Widget for FontIconBlock
[src]
fn new() -> FontIconBlock
[src]
Creates a new widget.
fn attach<P>(self, property: AttachedProperty<P>) -> FontIconBlock where
P: Debug + Component,
[src]
P: Debug + Component,
fn insert_handler(
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> FontIconBlock
[src]
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> FontIconBlock
fn child(self, child: Entity) -> FontIconBlock
[src]
fn build(self, ctx: &mut BuildContext<'_>) -> Entity
[src]
fn create() -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FontIconBlock
impl !Send for FontIconBlock
impl !Sync for FontIconBlock
impl Unpin for FontIconBlock
impl !UnwindSafe for FontIconBlock
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> Component for E where
E: Any,
[src]
E: Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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.
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.
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>,