summaryrefslogtreecommitdiff
path: root/src/launcher-item.h
diff options
context:
space:
mode:
authorHannes Schulze <43932053+hannesschulze@users.noreply.github.com>2024-11-04 12:58:21 +0100
committerGitHub <noreply@github.com>2024-11-04 12:58:21 +0100
commit40efcf60a5f39674b5137f11de7bcfe37fb121b5 (patch)
tree29e89bf90cd56d26f7432a52bf4bc90c51c632ce /src/launcher-item.h
parentf82081215e1f29140ab9c70e897ac62e9b456919 (diff)
parent83d650b82e5209d2ca24cc1e6bf04e0644b3f615 (diff)
Merge pull request #4 from hannesschulze/3-calculator
Add a calculator to the launcher
Diffstat (limited to 'src/launcher-item.h')
-rw-r--r--src/launcher-item.h28
1 files changed, 28 insertions, 0 deletions
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 <glib-object.h>
+#include <gio/gio.h>
+
+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
+