[ CCode ( has_construct_function = false ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public SourceCompletionItem.from_stock (string? label, string text, string stock, string? info)
Warning: SourceCompletionItem.from_stock is deprecated since 3.10.
Creates a new SourceCompletionItem from a stock item.
Use new2 instead.
If label
is null
, the stock label will be used.
label |
The item label. |
text |
The item text. |
stock |
The stock icon. |
info |
The item extra information. |
a new SourceCompletionItem. |