AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
adw_types.h
    1/*
    2 * AUI Framework - Declarative UI toolkit for modern C++20
    3 * Copyright (C) 2020-2025 Alex2772 and Contributors
    4 *
    5 * SPDX-License-Identifier: MPL-2.0
    6 *
    7 * This Source Code Form is subject to the terms of the Mozilla Public
    8 * License, v. 2.0. If a copy of the MPL was not distributed with this
    9 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
   10 */
   11
   12#pragma once
   13
   14#include <AUI/Platform/linux/gtk/gtk_types.h>
   15#include <AUI/Platform/linux/gtk/gtk_functions.h>
   16
   17namespace aui::adw1_fake {
   18using namespace aui::gtk4_fake;
   19extern "C" {
   20typedef enum {
   21    ADW_COLOR_SCHEME_DEFAULT,
   22    ADW_COLOR_SCHEME_FORCE_LIGHT,
   23    ADW_COLOR_SCHEME_PREFER_LIGHT,
   24    ADW_COLOR_SCHEME_PREFER_DARK,
   25    ADW_COLOR_SCHEME_FORCE_DARK,
   26} AdwColorScheme;
   27
   28using AdwApplication = struct _AdwApplication;
   29using AdwStyleManager = struct _AdwStyleManager;
   30#define ADW_TYPE_APPLICATION (adw_application_get_type())
   31
   32G_DECLARE_DERIVABLE_TYPE(AdwApplication, adw_application, ADW, APPLICATION, GtkApplication)
   33
   34
   35#define ADW_TYPE_APPLICATION_WINDOW (adw_application_window_get_type())
   36G_DECLARE_DERIVABLE_TYPE (AdwApplicationWindow, adw_application_window, ADW, APPLICATION_WINDOW, GtkApplicationWindow)
   37
   38
   39#define ADW_TYPE_TOOLBAR_VIEW (adw_toolbar_view_get_type())
   40
   41typedef enum {
   42    ADW_TOOLBAR_FLAT,
   43    ADW_TOOLBAR_RAISED,
   44    ADW_TOOLBAR_RAISED_BORDER,
   45} AdwToolbarStyle;
   46
   47G_DECLARE_FINAL_TYPE (AdwToolbarView, adw_toolbar_view, ADW, TOOLBAR_VIEW, GtkWidget)
   48
   49}
   50}