2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2006-05-17 02:21:49 +00:00
|
|
|
|
|
|
|
#ifndef __inFlasher_h__
|
|
|
|
#define __inFlasher_h__
|
|
|
|
|
|
|
|
#include "inIFlasher.h"
|
2011-04-08 01:04:40 +00:00
|
|
|
#include "nsCoord.h"
|
|
|
|
#include "nsColor.h"
|
2006-05-17 02:21:49 +00:00
|
|
|
|
2011-04-08 01:04:40 +00:00
|
|
|
class nsRenderingContext;
|
2006-05-17 02:37:47 +00:00
|
|
|
|
2006-05-17 02:21:49 +00:00
|
|
|
#define BOUND_INNER 0
|
|
|
|
#define BOUND_OUTER 1
|
|
|
|
|
|
|
|
#define DIR_VERTICAL 0
|
2011-04-08 01:04:40 +00:00
|
|
|
#define DIR_HORIZONTAL 1
|
2006-05-17 02:21:49 +00:00
|
|
|
|
|
|
|
class inFlasher : public inIFlasher
|
|
|
|
{
|
|
|
|
public:
|
2006-05-17 02:22:15 +00:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_INIFLASHER
|
|
|
|
|
2006-05-17 02:21:49 +00:00
|
|
|
inFlasher();
|
2006-05-17 02:22:15 +00:00
|
|
|
virtual ~inFlasher();
|
2006-05-17 02:21:49 +00:00
|
|
|
|
|
|
|
protected:
|
2006-05-17 02:37:48 +00:00
|
|
|
void DrawOutline(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight,
|
2011-04-08 01:04:40 +00:00
|
|
|
nsRenderingContext* aRenderContext,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aDrawBegin, bool aDrawEnd);
|
2006-05-17 02:37:48 +00:00
|
|
|
void DrawLine(nscoord aX, nscoord aY, nscoord aLength,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aDir, bool aBounds,
|
2011-04-08 01:04:40 +00:00
|
|
|
nsRenderingContext* aRenderContext);
|
2006-05-17 02:33:55 +00:00
|
|
|
|
2006-05-17 02:37:48 +00:00
|
|
|
nscolor mColor;
|
|
|
|
|
2012-08-22 15:56:38 +00:00
|
|
|
uint16_t mThickness;
|
2011-09-29 06:19:26 +00:00
|
|
|
bool mInvert;
|
2006-05-17 02:21:49 +00:00
|
|
|
};
|
|
|
|
|
2006-05-19 18:59:39 +00:00
|
|
|
// {9286E71A-621A-4b91-851E-9984C1A2E81A}
|
|
|
|
#define IN_FLASHER_CID \
|
|
|
|
{ 0x9286e71a, 0x621a, 0x4b91, { 0x85, 0x1e, 0x99, 0x84, 0xc1, 0xa2, 0xe8, 0x1a } }
|
|
|
|
|
2006-05-17 02:22:14 +00:00
|
|
|
#endif // __inFlasher_h__
|