-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfontweight.h
More file actions
39 lines (32 loc) · 702 Bytes
/
fontweight.h
File metadata and controls
39 lines (32 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* fontweight.h:
*
* Contact:
* Moonlight List (moonlight-list@lists.ximian.com)
*
* Copyright 2009 Novell, Inc. (http://www.novell.com)
*
* See the LICENSE file included with the distribution for details.
*/
#ifndef __FONT_WEIGHT_H__
#define __FONT_WEIGHT_H__
namespace Moonlight {
/* @IncludeInKinds */
struct FontWeight {
FontWeights weight;
FontWeight (FontWeights weight)
{
this->weight = weight;
}
bool operator== (const FontWeight &v) const
{
return v.weight == weight;
}
bool operator!= (const FontWeight &v) const
{
return !(*this == v);
}
};
};
#endif /* __FONT_WEIGHT_H__ */