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).
Members
TYPEto_refid_propertyfirst_name_propertylast_name_propertydisplay_name_override_propertysmall_display_picture_propertylarge_display_picture_propertysource_display_picture_propertythumbnail_propertyconstructnewidset_idfirst_nameset_first_namelast_nameset_last_namedisplay_name_overrideset_display_name_overridedisplay_namesmall_display_pictureset_small_display_picturelarge_display_pictureset_large_display_picturesource_display_pictureset_source_display_picturethumbnailset_thumbnail
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Contact>
Returns a strong reference to this object.
id_property
fn id_property() -> &'static StyledProperty<String>
Defines the Id property: the identifier of the contact.
first_name_property
fn first_name_property() -> &'static StyledProperty<String>
Defines the FirstName property.
last_name_property
fn last_name_property() -> &'static StyledProperty<String>
Defines the LastName property.
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.
small_display_picture_property
fn small_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
Defines the SmallDisplayPicture property.
large_display_picture_property
fn large_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
Defines the LargeDisplayPicture property.
source_display_picture_property
fn source_display_picture_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
Defines the SourceDisplayPicture property.
thumbnail_property
fn thumbnail_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
Defines the Thumbnail property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an empty contact.
id
fn id(self: &Self) -> String
Gets the identifier of the contact.
set_id
fn set_id(self: &Self, value: impl Into<String>)
Sets the identifier of the contact.
first_name
fn first_name(self: &Self) -> String
Gets the first name.
set_first_name
fn set_first_name(self: &Self, value: impl Into<String>)
Sets the first name.
last_name
fn last_name(self: &Self) -> String
Gets the last name.
set_last_name
fn set_last_name(self: &Self, value: impl Into<String>)
Sets the last name.
display_name_override
fn display_name_override(self: &Self) -> String
Gets the display name override.
set_display_name_override
fn set_display_name_override(self: &Self, value: impl Into<String>)
Sets the display name override.
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.
small_display_picture
fn small_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
Gets the small display picture.
set_small_display_picture
fn set_small_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
Sets the small display picture.
large_display_picture
fn large_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
Gets the large display picture.
set_large_display_picture
fn set_large_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
Sets the large display picture.
source_display_picture
fn source_display_picture(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
Gets the source display picture.
set_source_display_picture
fn set_source_display_picture(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
Sets the source display picture.
thumbnail
fn thumbnail(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
Gets the thumbnail.
set_thumbnail
fn set_thumbnail(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
Sets the thumbnail.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Contact>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.