SuggestionEntry

class SuggestionEntry : Entry {}

Constructors

this
this(DzlSuggestionEntry* dzlSuggestionEntry, bool ownedRef = false)

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

this
this()

Members

Functions

addOnAction
gulong addOnAction(void delegate(string, string, string, SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnActivateSuggestion
gulong addOnActivateSuggestion(void delegate(SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnHideSuggestions
gulong addOnHideSuggestions(void delegate(SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnMoveSuggestion
gulong addOnMoveSuggestion(void delegate(int, SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

This moves the selected suggestion in the popover by the value provided. -1 moves up one row, 1, moves down a row.

addOnShowSuggestions
gulong addOnShowSuggestions(void delegate(SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnSuggestionActivated
gulong addOnSuggestionActivated(void delegate(Suggestion, SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnSuggestionSelected
gulong addOnSuggestionSelected(void delegate(Suggestion, SuggestionEntry) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

This signal is emitted when a selection has been specifically selected by the user, such as by clicking on the row or moving to the row with keyboard, such as with #DzlSuggestionEntry::move-suggestion

defaultPositionFunc
void defaultPositionFunc(GdkRectangle* area, bool* isAbsolute, void* userData)
getActivateOnSingleClick
bool getActivateOnSingleClick()
getCompact
bool getCompact()

Gets the #DzlSuggestionEntry:compact property.

getModel
ListModelIF getModel()

Gets the model being visualized.

getPopover
Widget getPopover()

Gets the result display widget for the entry. This is currently always a #DzlSuggestionPopover.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSuggestion
Suggestion getSuggestion()

Gets the currently selected suggestion.

getSuggestionEntryStruct
DzlSuggestionEntry* getSuggestionEntryStruct(bool transferOwnership = false)

Get the main Gtk struct

getTypedText
string getTypedText()
hideSuggestions
void hideSuggestions()
setActivateOnSingleClick
void setActivateOnSingleClick(bool activateOnSingleClick)
setCompact
void setCompact(bool compact)

Sets the #DzlSuggestionEntry:compact property.

setModel
void setModel(ListModelIF model)
setPositionFunc
void setPositionFunc(DzlSuggestionPositionFunc func, void* funcData, GDestroyNotify funcDataDestroy)

Sets a position func to position the popover.

setSuggestion
void setSuggestion(Suggestion suggestion)
windowPositionFunc
void windowPositionFunc(GdkRectangle* area, bool* isAbsolute, void* userData)

This is a #DzlSuggestionPositionFunc that can be used to make the suggestion popover the full width of the window. It is similar to what you might find in a web browser.

Static functions

getType
GType getType()

Variables

dzlSuggestionEntry
DzlSuggestionEntry* dzlSuggestionEntry;

the main Gtk struct

Meta