Avatar.this

Creates a new #HdyAvatar.

  1. this(HdyAvatar* hdyAvatar, bool ownedRef)
  2. this(int size, string text, bool showInitials)
    class Avatar
    this
    (
    int size
    ,
    string text
    ,)

Parameters

size int

The size of the avatar

text string

The text used to generate the color and initials if @show_initials is %TRUE. The color is selected at random if @text is empty.

showInitials bool

whether to show the initials or the fallback icon on top of the color generated based on @text.

Return Value

the newly created #HdyAvatar

Throws

ConstructionException GTK+ fails to create the object.

Meta