From 16483d65744488146e96d149b41f5869a2597a4c Mon Sep 17 00:00:00 2001 From: Hannes Schulze Date: Mon, 1 Jul 2024 17:00:08 +0200 Subject: add quick answers --- src/launcher-item.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/launcher-item.h (limited to 'src/launcher-item.h') diff --git a/src/launcher-item.h b/src/launcher-item.h new file mode 100644 index 0000000..b2d274a --- /dev/null +++ b/src/launcher-item.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include + +G_BEGIN_DECLS + +#define FOOBAR_TYPE_LAUNCHER_ITEM foobar_launcher_item_get_type( ) + +G_DECLARE_INTERFACE( FoobarLauncherItem, foobar_launcher_item, FOOBAR, LAUNCHER_ITEM, GObject ) + +struct _FoobarLauncherItemInterface +{ + GTypeInterface parent_interface; + + gchar const* ( *get_title ) ( FoobarLauncherItem* self ); + gchar const* ( *get_description )( FoobarLauncherItem* self ); + GIcon* ( *get_icon ) ( FoobarLauncherItem* self ); + void ( *activate ) ( FoobarLauncherItem* self ); +}; + +gchar const* foobar_launcher_item_get_title ( FoobarLauncherItem* self ); +gchar const* foobar_launcher_item_get_description( FoobarLauncherItem* self ); +GIcon* foobar_launcher_item_get_icon ( FoobarLauncherItem* self ); +void foobar_launcher_item_activate ( FoobarLauncherItem* self ); + +G_END_DECLS + -- cgit v1.3.1