Skip to main content

AXDataAxisDescriptor

Trait AXDataAxisDescriptor 

Source
pub unsafe trait AXDataAxisDescriptor: NSCopying {
    // Provided methods
    unsafe fn title(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn setTitle(&self, title: &NSString)
       where Self: Sized + Message { ... }
    unsafe fn attributedTitle(&self) -> Retained<NSAttributedString>
       where Self: Sized + Message { ... }
    unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString)
       where Self: Sized + Message { ... }
}
Available on crate feature AXAudiograph only.
Expand description

Describes a data axis for the chart (e.g. X, Y, etc.) Each AXChart requires at least two AXDataAxis objects to describe, at minimum, and X and a Y axis.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn title(&self) -> Retained<NSString>
where Self: Sized + Message,

The name or title of this axis.

Source

unsafe fn setTitle(&self, title: &NSString)
where Self: Sized + Message,

Setter for title.

This is copied when set.

Source

unsafe fn attributedTitle(&self) -> Retained<NSAttributedString>
where Self: Sized + Message,

An attributed version of the title of this axis. When set, this will be used instead of title.

Source

unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString)
where Self: Sized + Message,

Setter for attributedTitle.

This is copied when set.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn AXDataAxisDescriptor

Source§

impl ProtocolType for dyn AXDataAxisDescriptor

Source§

const NAME: &'static str = "AXDataAxisDescriptor"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> AXDataAxisDescriptor for ProtocolObject<T>

Implementors§