/* myapp-application.h
 *
 * Copyright 2025 Giovanni
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#pragma once

#include <adwaita.h>
#include <gtk/gtk.h>
#include "meme-window.h"

G_BEGIN_DECLS

#define MEME_TYPE_APPLICATION (meme_application_get_type())

G_DECLARE_FINAL_TYPE (MemeApplication, meme_application, MEME, APPLICATION, AdwApplication)

MemeApplication *meme_application_new (const char        *application_id,
                                         GApplicationFlags  flags);

gboolean on_window_key_pressed (GtkEventControllerKey *controller,
                                guint keyval,
                                guint keycode,
                                GdkModifierType state,
                                MemeWindow *self);

G_END_DECLS
