|
Packit |
ff063f |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
Packit |
ff063f |
/*
|
|
Packit |
ff063f |
* ezfc-alias.h
|
|
Packit |
ff063f |
* Copyright (C) 2011-2012 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 |
#if !defined (__EZFC_H__INSIDE) && !defined (__EZFC_COMPILATION)
|
|
Packit |
ff063f |
#error "Only <libeasyfc/ezfc.h> can be included directly."
|
|
Packit |
ff063f |
#endif
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
#ifndef __EZFC_ALIAS_H__
|
|
Packit |
ff063f |
#define __EZFC_ALIAS_H__
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
#include <glib.h>
|
|
Packit |
ff063f |
#include <fontconfig/fontconfig.h>
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
G_BEGIN_DECLS
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
/**
|
|
Packit |
ff063f |
* ezfc_alias_t:
|
|
Packit |
ff063f |
*
|
|
Packit |
ff063f |
* All the fields in the <structname>ezfc_alias_t</structname>
|
|
Packit |
ff063f |
* structure are private to the #ezfc_alias_t implementation.
|
|
Packit |
ff063f |
*/
|
|
Packit |
ff063f |
typedef struct _ezfc_alias_t ezfc_alias_t;
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
ezfc_alias_t *ezfc_alias_new (const gchar *alias_name);
|
|
Packit |
ff063f |
ezfc_alias_t *ezfc_alias_ref (ezfc_alias_t *alias);
|
|
Packit |
ff063f |
void ezfc_alias_unref (ezfc_alias_t *alias);
|
|
Packit |
ff063f |
const gchar *ezfc_alias_get_name (ezfc_alias_t *alias);
|
|
Packit |
ff063f |
FcPattern *ezfc_alias_get_font_pattern (ezfc_alias_t *alias);
|
|
Packit |
ff063f |
gboolean ezfc_alias_set_font_pattern (ezfc_alias_t *alias,
|
|
Packit |
ff063f |
const FcPattern *pattern,
|
|
Packit |
ff063f |
GError **error);
|
|
Packit |
ff063f |
const gchar *ezfc_alias_get_font (ezfc_alias_t *alias);
|
|
Packit |
ff063f |
gboolean ezfc_alias_set_font (ezfc_alias_t *alias,
|
|
Packit |
ff063f |
const gchar *font_name,
|
|
Packit |
ff063f |
GError **error);
|
|
Packit |
ff063f |
void ezfc_alias_check_font_existence(ezfc_alias_t *alias,
|
|
Packit |
ff063f |
gboolean flag);
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
G_END_DECLS
|
|
Packit |
ff063f |
|
|
Packit |
ff063f |
#endif /* __EZFC_ALIAS_H__ */
|