| 1 |
/* font-manager-string-set.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 |
#pragma once |
| 22 |
|
| 23 |
#include <glib.h> |
| 24 |
#include <glib-object.h> |
| 25 |
|
| 26 |
#define FONT_MANAGER_TYPE_STRING_SET (font_manager_string_set_get_type()) |
| 27 |
G_DECLARE_DERIVABLE_TYPE(FontManagerStringSet, font_manager_string_set, FONT_MANAGER, STRING_SET, GObject) |
| 28 |
|
| 29 |
struct _FontManagerStringSetClass |
| 30 |
{ |
| 31 |
GObjectClass parent_class; |
| 32 |
|
| 33 |
void (* changed) (FontManagerStringSet *self); |
| 34 |
}; |
| 35 |
|
| 36 |
FontManagerStringSet * font_manager_string_set_new (void); |
| 37 |
FontManagerStringSet * font_manager_string_set_new_from_strv (GStrv strv); |
| 38 |
guint font_manager_string_set_size (FontManagerStringSet *self); |
| 39 |
const gchar * font_manager_string_set_get (FontManagerStringSet *self, guint index); |
| 40 |
void font_manager_string_set_add (FontManagerStringSet *self, const gchar *str); |
| 41 |
void font_manager_string_set_add_all (FontManagerStringSet *self, FontManagerStringSet *add); |
| 42 |
gboolean font_manager_string_set_contains (FontManagerStringSet *self, const gchar *str); |
| 43 |
gboolean font_manager_string_set_contains_all (FontManagerStringSet *self, FontManagerStringSet *contents); |
| 44 |
void font_manager_string_set_remove (FontManagerStringSet *self, const gchar *str); |
| 45 |
void font_manager_string_set_remove_all (FontManagerStringSet *self, FontManagerStringSet *remove); |
| 46 |
void font_manager_string_set_retain_all (FontManagerStringSet *self, FontManagerStringSet *retain); |
| 47 |
GList * font_manager_string_set_list (FontManagerStringSet *self); |
| 48 |
void font_manager_string_set_foreach(FontManagerStringSet *self, GFunc func, gpointer user_data); |
| 49 |
void font_manager_string_set_sort(FontManagerStringSet *self); |
| 50 |
void font_manager_string_set_clear (FontManagerStringSet *self); |
| 51 |
GStrv font_manager_string_set_to_strv (FontManagerStringSet *self); |
| 52 |
|