1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3
* The contents of this file are subject to the Mozilla Public
4
* License Version 1.1 (the "License"); you may not use this file
5
* except in compliance with the License. You may obtain a copy of
6
* the License at http://www.mozilla.org/MPL/
8
* Software distributed under the License is distributed on an "AS
9
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
* implied. See the License for the specific language governing
11
* rights and limitations under the License.
13
* The Original Code is the Mozilla browser.
15
* The Initial Developer of the Original Code is Netscape
16
* Communications, Inc. Portions created by Netscape are
17
* Copyright (C) 1999, Mozilla. All Rights Reserved.
20
* Conrad Carlen <ccarlen@netscape.com>
23
#ifndef __CIconServicesIcon_h__
24
#define __CIconServicesIcon_h__
28
class CIconServicesIcon : public LControl
31
enum { class_ID = FOUR_CHAR_CODE('CISC') };
33
CIconServicesIcon(const SPaneInfo& inPaneInfo,
34
MessageT inValueMessage,
37
CIconServicesIcon(LStream* inStream);
39
virtual ~CIconServicesIcon();
42
virtual void DrawSelf();
43
virtual void EnableSelf();
44
virtual void DisableSelf();
47
SInt16 FindHotSpot(Point inPoint) const;
48
Boolean PointInHotSpot(Point inPoint,
49
SInt16 inHotSpot) const;
50
void HotSpotAction(SInt16 inHotSpot,
52
Boolean inPrevInside);
53
void HotSpotResult(SInt16 inHotSpot);
59
void AdjustIconRect(Rect& ioRect) const;
62
void ReleaseIconRef();
67
IconAlignmentType mAlignmentType;
72
static OSType mgAppCreator;
73
static FSSpec mgIconFileSpec;
76
#endif // __CIconServicesIcon_h__