Line
struct · ferroui-controls · v0.5.0
struct Line
Represents a straight line between two points.
Members
TYPEto_refstart_point_propertyend_point_propertyconstructnewstart_pointset_start_pointend_pointset_end_point
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Line>
Returns a strong reference to this object.
start_point_property
fn start_point_property() -> &'static StyledProperty<Point>
Defines the StartPoint property.
end_point_property
fn end_point_property() -> &'static StyledProperty<Point>
Defines the EndPoint property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
start_point
fn start_point(self: &Self) -> Point
The point at which the line starts.
set_start_point
fn set_start_point(self: &Self, value: Point)
end_point
fn end_point(self: &Self) -> Point
The point at which the line ends.
set_end_point
fn set_end_point(self: &Self, value: Point)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeShapeImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Line>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplShapeImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.