Blame libeasyfc/ezfc-font-config-private.h

Packit ff063f
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
Packit ff063f
/* 
Packit ff063f
 * ezfc-font-config-private.h
Packit ff063f
 * Copyright (C) 2011-2018 Akira TAGOH
Packit ff063f
 * 
Packit ff063f
 * Authors:
Packit ff063f
 *   Akira TAGOH  <akira@tagoh.org>
Packit ff063f
 * 
Packit ff063f
 * This library is free software: you can redistribute it and/or
Packit ff063f
 * modify it under the terms of the GNU Lesser General Public
Packit ff063f
 * License as published by the Free Software Foundation, either
Packit ff063f
 * version 3 of the License, or (at your option) any later version.
Packit ff063f
 * 
Packit ff063f
 * This library is distributed in the hope that it will be useful,
Packit ff063f
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ff063f
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit ff063f
 * GNU General Public License for more details.
Packit ff063f
 * 
Packit ff063f
 * You should have received a copy of the GNU General Public License
Packit ff063f
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit ff063f
 */
Packit ff063f
#ifndef __EZFC_FONT_CONFIG_PRIVATE_H__
Packit ff063f
#define __EZFC_FONT_CONFIG_PRIVATE_H__
Packit ff063f
Packit ff063f
#include <glib.h>
Packit ff063f
#include "ezfc-mem.h"
Packit ff063f
#include <fontconfig/fontconfig.h>
Packit ff063f
#include "ezfc-font-config.h"
Packit ff063f
Packit ff063f
G_BEGIN_DECLS
Packit ff063f
Packit ff063f
typedef enum _ezfc_font_config_type_t {
Packit ff063f
	EZFC_FONT_CONFIG_TYPE_SYSTEM	= 1 << 0,
Packit ff063f
	EZFC_FONT_CONFIG_TYPE_USER	= 1 << 1
Packit ff063f
} ezfc_font_config_type_t;
Packit ff063f
Packit ff063f
typedef struct _ezfc_font_config_private_t {
Packit ff063f
	ezfc_mem_t               parent;
Packit ff063f
	gchar                   *name;
Packit ff063f
	gchar                   *desc;
Packit ff063f
	gboolean                 is_enabled;
Packit ff063f
	gint                     type;
Packit ff063f
} ezfc_font_config_private_t;
Packit ff063f
Packit ff063f
ezfc_font_config_t *ezfc_font_config_new            (void);
Packit ff063f
gboolean            ezfc_font_config_set_name       (ezfc_font_config_t      *info,
Packit ff063f
                                                     const gchar             *name);
Packit ff063f
gboolean            ezfc_font_config_set_description(ezfc_font_config_t      *info,
Packit ff063f
                                                     const gchar             *desc);
Packit ff063f
gboolean            ezfc_font_config_set_enabled    (ezfc_font_config_t      *info,
Packit ff063f
                                                     gboolean                 is_enabled);
Packit ff063f
void                ezfc_font_config_set_config_type(ezfc_font_config_t      *info,
Packit ff063f
						     gint                     type);
Packit ff063f
Packit ff063f
G_END_DECLS
Packit ff063f
Packit ff063f
#endif /* __EZFC_FONT_CONFIG_PRIVATE_H__ */