pub struct RatingControl { /* private fields */ }Implementations§
Source§impl RatingControl
impl RatingControl
pub fn new() -> Self
pub fn element_ref(self, reference: &ElementRef<Self>) -> Self
pub fn max_rating(self, value: impl Into<Option<i32>>) -> Self
pub fn value(self, value: impl Into<Option<f64>>) -> Self
pub fn caption(self, value: impl Into<String>) -> Self
pub fn caption_optional<T>(self, value: Option<T>) -> Self
pub fn is_read_only(self, value: impl Into<Option<bool>>) -> Self
pub fn on_value_changed( self, callback: impl IntoPayloadCallback<Option<f64>>, ) -> Self
Trait Implementations§
Source§impl Clone for RatingControl
impl Clone for RatingControl
Source§fn clone(&self) -> RatingControl
fn clone(&self) -> RatingControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RatingControl
impl Debug for RatingControl
Source§impl Default for RatingControl
impl Default for RatingControl
Source§fn default() -> RatingControl
fn default() -> RatingControl
Returns the “default value” for a type. Read more
impl FocusControl for RatingControl
Source§impl From<RatingControl> for View
impl From<RatingControl> for View
Source§fn from(value: RatingControl) -> Self
fn from(value: RatingControl) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for RatingControl
impl LayoutControl for RatingControl
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RatingControl
impl PartialEq for RatingControl
impl ReferenceControl for RatingControl
impl StructuralPartialEq for RatingControl
Auto Trait Implementations§
impl !RefUnwindSafe for RatingControl
impl !Send for RatingControl
impl !Sync for RatingControl
impl !UnwindSafe for RatingControl
impl Freeze for RatingControl
impl Unpin for RatingControl
impl UnsafeUnpin for RatingControl
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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