layout/inspector/inFlasher.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:a030c0c0fb6b
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/. */
4
5 #ifndef __inFlasher_h__
6 #define __inFlasher_h__
7
8 #include "inIFlasher.h"
9 #include "nsCoord.h"
10 #include "nsColor.h"
11
12 class nsRenderingContext;
13
14 #define BOUND_INNER 0
15 #define BOUND_OUTER 1
16
17 #define DIR_VERTICAL 0
18 #define DIR_HORIZONTAL 1
19
20 class inFlasher : public inIFlasher
21 {
22 public:
23 NS_DECL_ISUPPORTS
24 NS_DECL_INIFLASHER
25
26 inFlasher();
27 virtual ~inFlasher();
28
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);
36
37 nscolor mColor;
38
39 uint16_t mThickness;
40 bool mInvert;
41 };
42
43 // {9286E71A-621A-4b91-851E-9984C1A2E81A}
44 #define IN_FLASHER_CID \
45 { 0x9286e71a, 0x621a, 0x4b91, { 0x85, 0x1e, 0x99, 0x84, 0xc1, 0xa2, 0xe8, 0x1a } }
46
47 #endif // __inFlasher_h__

mercurial