Struct fui_controls::DefaultTextStyle
source · pub struct DefaultTextStyle { /* private fields */ }
Implementations§
source§impl DefaultTextStyle
impl DefaultTextStyle
pub fn new(params: DefaultTextStyleParams) -> Self
Trait Implementations§
source§impl Style<Text> for DefaultTextStyle
impl Style<Text> for DefaultTextStyle
fn setup(&mut self, data: &mut Text, control_context: &mut ControlContext)
fn handle_event( &mut self, _data: &mut Text, _control_context: &mut ControlContext, _drawing_context: &mut dyn DrawingContext, _event_context: &mut dyn EventContext, _event: ControlEvent )
fn measure( &mut self, data: &mut Text, _control_context: &mut ControlContext, drawing_context: &mut dyn DrawingContext, _size: Size ) -> Size
fn set_rect( &mut self, _data: &mut Text, _control_context: &mut ControlContext, _drawing_context: &mut dyn DrawingContext, _rect: Rect )
fn hit_test( &self, _data: &Text, control_context: &ControlContext, point: Point ) -> Option<Rc<RefCell<dyn ControlObject>>>
fn to_primitives( &self, data: &Text, control_context: &ControlContext, drawing_context: &mut dyn DrawingContext ) -> (Vec<Primitive>, Vec<Primitive>)
Auto Trait Implementations§
impl Freeze for DefaultTextStyle
impl RefUnwindSafe for DefaultTextStyle
impl Send for DefaultTextStyle
impl Sync for DefaultTextStyle
impl Unpin for DefaultTextStyle
impl UnwindSafe for DefaultTextStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more