| 1 |
/* font-manager-preview-pane.h |
| 2 |
* |
| 3 |
* Copyright (C) 2009-2025 Jerry Casiano |
| 4 |
* |
| 5 |
* This program is free software: you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation, either version 3 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program. |
| 17 |
* |
| 18 |
* If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#ifndef __FONT_MANAGER_PREVIEW_PANE_H__ |
| 22 |
#define __FONT_MANAGER_PREVIEW_PANE_H__ |
| 23 |
|
| 24 |
#include <glib.h> |
| 25 |
#include <glib/gi18n-lib.h> |
| 26 |
#include <gtk/gtk.h> |
| 27 |
#include <json-glib/json-glib.h> |
| 28 |
|
| 29 |
#include "font-manager-gtk-utils.h" |
| 30 |
#include "font-manager-database.h" |
| 31 |
#include "font-manager-fontconfig.h" |
| 32 |
#include "font-manager-preview-page.h" |
| 33 |
#include "font-manager-character-map.h" |
| 34 |
#include "font-manager-properties-page.h" |
| 35 |
#include "font-manager-license-page.h" |
| 36 |
|
| 37 |
G_BEGIN_DECLS |
| 38 |
|
| 39 |
typedef enum |
| 40 |
{ |
| 41 |
FONT_MANAGER_PREVIEW_PANE_PAGE_PREVIEW, |
| 42 |
FONT_MANAGER_PREVIEW_PANE_PAGE_CHARACTER_MAP, |
| 43 |
FONT_MANAGER_PREVIEW_PANE_PAGE_PROPERTIES, |
| 44 |
FONT_MANAGER_PREVIEW_PANE_PAGE_LICENSE |
| 45 |
} |
| 46 |
FontManagerPreviewPanePage; |
| 47 |
|
| 48 |
GType font_manager_preview_pane_page_get_type (void); |
| 49 |
#define FONT_MANAGER_TYPE_PREVIEW_PANE_PAGE (font_manager_preview_pane_page_get_type ()) |
| 50 |
|
| 51 |
const gchar * font_manager_preview_pane_page_to_string (FontManagerPreviewPanePage page); |
| 52 |
|
| 53 |
#define FONT_MANAGER_TYPE_PREVIEW_PANE (font_manager_preview_pane_get_type ()) |
| 54 |
G_DECLARE_FINAL_TYPE(FontManagerPreviewPane, font_manager_preview_pane, FONT_MANAGER, PREVIEW_PANE, GtkWidget) |
| 55 |
|
| 56 |
GtkWidget * font_manager_preview_pane_new (void); |
| 57 |
gboolean font_manager_preview_pane_show_uri (FontManagerPreviewPane *self, const gchar *uri); |
| 58 |
void font_manager_preview_pane_set_font (FontManagerPreviewPane *self, FontManagerFont *font); |
| 59 |
void font_manager_preview_pane_set_orthography (FontManagerPreviewPane *self, FontManagerOrthography *orthography); |
| 60 |
void font_manager_preview_pane_set_waterfall_size (FontManagerPreviewPane *self, gdouble min_size, gdouble max_size, gdouble ratio); |
| 61 |
void font_manager_preview_pane_restore_state (FontManagerPreviewPane *self, GSettings *settings); |
| 62 |
void font_manager_preview_pane_add_action_widget (FontManagerPreviewPane *self, GtkWidget *widget, GtkPackType pack_type); |
| 63 |
|
| 64 |
G_END_DECLS |
| 65 |
|
| 66 |
#endif /* __FONT_MANAGER_PREVIEW_PANE_H__ */ |
| 67 |
|