FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LineGeometry

    struct · ferroui-base · v0.5.0

    struct LineGeometry
    

    Represents the geometry of a line.

    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<LineGeometry>
    

    Returns a strong reference to this object.

    Source

    start_point_property

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

    Source

    end_point_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_points

    fn with_points(start_point: Point, end_point: Point) -> Ref<Self>
    

    Creates a line geometry between the given points.

    Source

    start_point

    fn start_point(self: &Self) -> Point
    

    The start point of the line.

    Source

    set_start_point

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

    Source

    end_point

    fn end_point(self: &Self) -> Point
    

    The end point of the line.

    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.