FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Contact

    struct · ferroui-controls · v0.5.0

    struct Contact
    

    A contact (the Windows Runtime's Contact, the members a person picture reads): its identifier, its names and its pictures.

    The Windows contact store has no counterpart off Windows, so an application fills the contact itself. The pictures are images (the Windows Runtime's are stream references, which the picture opens and decodes asynchronously); the display name is the override, or the first and last names joined by a space (the Windows Runtime composes it from every part of the name).

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

    Returns a strong reference to this object.

    Source

    id_property

    fn id_property() -> &'static StyledProperty<String>
    

    Defines the Id property: the identifier of the contact.

    Source

    first_name_property

    fn first_name_property() -> &'static StyledProperty<String>
    

    Defines the FirstName property.

    Source

    last_name_property

    fn last_name_property() -> &'static StyledProperty<String>
    

    Defines the LastName property.

    Source

    display_name_override_property

    fn display_name_override_property() -> &'static StyledProperty<String>
    

    Defines the DisplayNameOverride property: the display name, when it is not the first and the last names.

    Source

    small_display_picture_property

    fn small_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
    

    Defines the SmallDisplayPicture property.

    Source

    large_display_picture_property

    fn large_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
    

    Defines the LargeDisplayPicture property.

    Source

    source_display_picture_property

    fn source_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
    

    Defines the SourceDisplayPicture property.

    Source

    thumbnail_property

    fn thumbnail_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
    

    Defines the Thumbnail property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates an empty contact.

    Source

    id

    fn id(self: &Self) -> String
    

    Gets the identifier of the contact.

    Source

    set_id

    fn set_id(self: &Self, value: impl Into<String>)
    

    Sets the identifier of the contact.

    Source

    first_name

    fn first_name(self: &Self) -> String
    

    Gets the first name.

    Source

    set_first_name

    fn set_first_name(self: &Self, value: impl Into<String>)
    

    Sets the first name.

    Source

    last_name

    fn last_name(self: &Self) -> String
    

    Gets the last name.

    Source

    set_last_name

    fn set_last_name(self: &Self, value: impl Into<String>)
    

    Sets the last name.

    Source

    display_name_override

    fn display_name_override(self: &Self) -> String
    

    Gets the display name override.

    Source

    set_display_name_override

    fn set_display_name_override(self: &Self, value: impl Into<String>)
    

    Sets the display name override.

    Source

    display_name

    fn display_name(self: &Self) -> String
    

    Gets the display name: the override, or the first and the last names joined by a space.

    Source

    small_display_picture

    fn small_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
    

    Gets the small display picture.

    Source

    set_small_display_picture

    fn set_small_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
    

    Sets the small display picture.

    Source

    large_display_picture

    fn large_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
    

    Gets the large display picture.

    Source

    set_large_display_picture

    fn set_large_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
    

    Sets the large display picture.

    Source

    source_display_picture

    fn source_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
    

    Gets the source display picture.

    Source

    set_source_display_picture

    fn set_source_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
    

    Sets the source display picture.

    Source

    thumbnail

    fn thumbnail(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
    

    Gets the thumbnail.

    Source

    set_thumbnail

    fn set_thumbnail(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
    

    Sets the thumbnail.

    Source

    Trait implementations

    Availability

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