diff options
Diffstat (limited to 'poppler-glib/src/color.ccg')
-rw-r--r-- | poppler-glib/src/color.ccg | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/poppler-glib/src/color.ccg b/poppler-glib/src/color.ccg new file mode 100644 index 0000000..50e9d2d --- /dev/null +++ b/poppler-glib/src/color.ccg @@ -0,0 +1,32 @@ +/* Copyright (c) 2010 Glenn Rice <glennricster@gmail.com> + * + * This file is part of poppler-glibmm. + * + * poppler-glibmm is free software: you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published + * by the Free Software Foundation, either version 2.1 of the License, + * or (at your option) any later version. + * + * poppler-glibmm is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +namespace Poppler +{ + +Color::Color(guint16 red, guint16 green, guint16 blue) +: + gobject_(poppler_color_new()) +{ + gobj()->red = red; + gobj()->green = green; + gobj()->blue = blue; +} + + +} // namespace Poppler |