FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Line

    struct · ferroui-controls · v0.5.0

    struct Line
    

    Represents a straight line between two points.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Line>
    

    Returns a strong reference to this object.

    Source

    start_point_property

    fn start_point_property() -> &'static StyledProperty<Point>
    

    Defines the StartPoint property.

    Source

    end_point_property

    fn end_point_property() -> &'static StyledProperty<Point>
    

    Defines the EndPoint property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    start_point

    fn start_point(self: &Self) -> Point
    

    The point at which the line starts.

    Source

    set_start_point

    fn set_start_point(self: &Self, value: Point)
    

    Source

    end_point

    fn end_point(self: &Self) -> Point
    

    The point at which the line ends.

    Source

    set_end_point

    fn set_end_point(self: &Self, value: Point)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.