1 /**************************************************************************** 2 * Copyright (C) 2008 by Matteo Franchin * 3 * * 4 * This file is part of Box. * 5 * * 6 * Box is free software: you can redistribute it and/or modify it * 7 * under the terms of the GNU Lesser General Public License as published * 8 * by the Free Software Foundation, either version 3 of the License, or * 9 * (at your option) any later version. * 10 * * 11 * Box is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU Lesser General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU Lesser General Public * 17 * License along with Box. If not, see <http://www.gnu.org/licenses/>. * 18 ****************************************************************************/ 19 20 #ifndef _I_STYLE_H 21 # define _I_STYLE_H 22 23 # include "types.h" 24 # include "g.h" 25 26 typedef struct { 27 GStyle style; 28 int have[G_STYLE_ATTR_NUM]; 29 buff dashes; 30 int dash_offset_contest; /**< -1: before ';' (offset not accepted) 31 0: just after ';' (waiting for offset) 32 1: got offset (offset not accepted) */ 33 BoxReal dash_offset; 34 } IStyle; 35 36 typedef IStyle *IStylePtr; 37 38 #endif 39