2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / src / fontfamily.h
blob5afcdbca7b70d31b85288becd06f476cf262385c
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * fontfamily.h:
5 * Contact:
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2007 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
13 #ifndef __FONT_FAMILY_H__
14 #define __FONT_FAMILY_H__
16 #include <glib.h>
17 #include <string.h>
19 /* @IncludeInKinds */
20 struct FontFamily {
21 char *source;
23 FontFamily (const char *source)
25 this->source = g_strdup (source);
28 ~FontFamily ()
30 g_free (source);
33 bool operator== (const FontFamily &v) const
35 return strcmp (v.source, source) == 0;
38 bool operator!= (const FontFamily &v) const
40 return !(*this == v);
44 #endif /* __FONT_FAMILY_H__ */