SourceCompletionItem.from_stock
Description:
[ CCode ( has_construct_function = false ) ]
[ Version ( deprecated = true , deprecated_since = "3.10" ) ]
public SourceCompletionItem.from_stock (string? label, string text, string stock, string? info)
[ 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.
Note:
Use new2 instead.
If label is null, the stock label will be used.
Parameters:
| label |
The item label. |
| text |
The item text. |
| stock |
The stock icon. |
| info |
The item extra information. |
Returns:
|
a new SourceCompletionItem. |