michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef DrawMode_h michael@0: #define DrawMode_h michael@0: michael@0: #include "mozilla/TypedEnum.h" michael@0: michael@0: // Options for how the text should be drawn michael@0: MOZ_BEGIN_ENUM_CLASS(DrawMode, int) michael@0: // GLYPH_FILL and GLYPH_STROKE draw into the current context michael@0: // and may be used together with bitwise OR. michael@0: GLYPH_FILL = 1, michael@0: // Note: using GLYPH_STROKE will destroy the current path. michael@0: GLYPH_STROKE = 2, michael@0: // Appends glyphs to the current path. Can NOT be used with michael@0: // GLYPH_FILL or GLYPH_STROKE. michael@0: GLYPH_PATH = 4, michael@0: // When GLYPH_FILL and GLYPH_STROKE are both set, draws the michael@0: // stroke underneath the fill. michael@0: GLYPH_STROKE_UNDERNEATH = 8 michael@0: MOZ_END_ENUM_CLASS(DrawMode) michael@0: michael@0: #endif michael@0: