layout/inspector/inFlasher.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef __inFlasher_h__
     6 #define __inFlasher_h__
     8 #include "inIFlasher.h"
     9 #include "nsCoord.h"
    10 #include "nsColor.h"
    12 class nsRenderingContext;
    14 #define BOUND_INNER 0
    15 #define BOUND_OUTER 1
    17 #define DIR_VERTICAL 0
    18 #define DIR_HORIZONTAL 1
    20 class inFlasher : public inIFlasher
    21 {
    22 public:
    23   NS_DECL_ISUPPORTS
    24   NS_DECL_INIFLASHER
    26   inFlasher();
    27   virtual ~inFlasher();
    29 protected:
    30   void DrawOutline(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight,
    31                    nsRenderingContext* aRenderContext,
    32                    bool aDrawBegin, bool aDrawEnd);
    33   void DrawLine(nscoord aX, nscoord aY, nscoord aLength,
    34                 bool aDir, bool aBounds,
    35                 nsRenderingContext* aRenderContext);
    37   nscolor mColor;
    39   uint16_t mThickness;
    40   bool mInvert;
    41 };
    43 // {9286E71A-621A-4b91-851E-9984C1A2E81A}
    44 #define IN_FLASHER_CID \
    45 { 0x9286e71a, 0x621a, 0x4b91, { 0x85, 0x1e, 0x99, 0x84, 0xc1, 0xa2, 0xe8, 0x1a } }
    47 #endif // __inFlasher_h__

mercurial