Suggestion

Constructors

this
this(DzlSuggestion* dzlSuggestion, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Members

Functions

addOnReplaceTypedText
gulong addOnReplaceTypedText(string delegate(string, Suggestion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnSuggestSuffix
gulong addOnSuggestSuffix(string delegate(string, Suggestion) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
getIcon
IconIF getIcon()

Gets the icon for the suggestion, if any.

getIconName
string getIconName()
getIconSurface
Surface getIconSurface(Widget widget)

This function allows subclasses to dynamicly generate content for the suggestion such as may be required when integrating with favicons or similar.

getId
string getId()
getStruct
void* getStruct()

the main Gtk struct as a void*

getSubtitle
string getSubtitle()
getSuggestionStruct
DzlSuggestion* getSuggestionStruct(bool transferOwnership = false)

Get the main Gtk struct

getTitle
string getTitle()
replaceTypedText
string replaceTypedText(string typedText)

This function is meant to be used to replace the text in the entry with text that represents the suggestion most accurately. This happens when the user presses tab while typing a suggestion. For example, if typing "gno" in the entry, you might have a suggest_suffix of "me.org" so that the user sees "gnome.org". But the replace_typed_text might include more data such as "https://gnome.org" as it more closely represents the suggestion.

setIconName
void setIconName(string iconName)
setId
void setId(string id)
setSubtitle
void setSubtitle(string subtitle)
setTitle
void setTitle(string title)
suggestSuffix
string suggestSuffix(string typedText)

This function requests potential text to append to @typed_text to make it more clear to the user what they will be activating by selecting this suggestion. For example, if they start typing "gno", a potential suggested suffix might be "me.org" to create "gnome.org".

Static functions

getType
GType getType()

Variables

dzlSuggestion
DzlSuggestion* dzlSuggestion;

the main Gtk struct

Meta