1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/thebes/DrawMode.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef DrawMode_h 1.10 +#define DrawMode_h 1.11 + 1.12 +#include "mozilla/TypedEnum.h" 1.13 + 1.14 +// Options for how the text should be drawn 1.15 +MOZ_BEGIN_ENUM_CLASS(DrawMode, int) 1.16 + // GLYPH_FILL and GLYPH_STROKE draw into the current context 1.17 + // and may be used together with bitwise OR. 1.18 + GLYPH_FILL = 1, 1.19 + // Note: using GLYPH_STROKE will destroy the current path. 1.20 + GLYPH_STROKE = 2, 1.21 + // Appends glyphs to the current path. Can NOT be used with 1.22 + // GLYPH_FILL or GLYPH_STROKE. 1.23 + GLYPH_PATH = 4, 1.24 + // When GLYPH_FILL and GLYPH_STROKE are both set, draws the 1.25 + // stroke underneath the fill. 1.26 + GLYPH_STROKE_UNDERNEATH = 8 1.27 +MOZ_END_ENUM_CLASS(DrawMode) 1.28 + 1.29 +#endif 1.30 +