Top | ![]() |
![]() |
![]() |
![]() |
GIcon * | ide_command_get_icon () |
gint | ide_command_get_priority () |
gchar * | ide_command_get_title () |
gchar * | ide_command_get_subtitle () |
void | ide_command_run_async () |
gboolean | ide_command_run_finish () |
GIcon *
ide_command_get_icon (IdeCommand *self
);
Gets the icon for the command to be displayed in UI if necessary.
Since: 3.34
gint
ide_command_get_priority (IdeCommand *self
);
Gets the priority for the command.
This is generally just useful when using the command bar so that the items may be sorted in a useful manner.
Command providers may want to use the typed_text for the query operation to calculate a score with fuzzy matching.
The lower the value, the higher priority.
Since: 3.34
gchar *
ide_command_get_title (IdeCommand *self
);
Gets the title for the command.
Since: 3.32
gchar *
ide_command_get_subtitle (IdeCommand *self
);
Gets the subtitle for the command.
Since: 3.32
void ide_command_run_async (IdeCommand *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Runs the command, asynchronously.
Use ide_command_run_finish()
to get the result of the operation.
self |
an IdeCommand |
|
cancellable |
a GCancellable. |
[nullable] |
callback |
a GAsyncReadyCallback to execute upon completion |
|
user_data |
closure data for |
Since: 3.32
gboolean ide_command_run_finish (IdeCommand *self
,GAsyncResult *result
,GError **error
);
self |
an IdeCommand |
|
result |
a GAsyncResult provided to callback |
|
error |
a location for a GError, or |
Since: 3.32
struct IdeCommandInterface { GTypeInterface parent_iface; gchar *(*get_title) (IdeCommand *self); gchar *(*get_subtitle) (IdeCommand *self); void (*run_async) (IdeCommand *self, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean (*run_finish) (IdeCommand *self, GAsyncResult *result, GError **error); gint (*get_priority) (IdeCommand *self); GIcon *(*get_icon) (IdeCommand *self); };