home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / macfe / gui / CPatternedGrippyPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.9 KB  |  61 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. //
  20. // CPatternedGrippyPane.h
  21. //
  22. // Interface for class that draws a "grippy" pattern in the pane rectangle so users know
  23. // they can drag/click in this area. Also hilights when mouse enters (roll-over feedback).
  24. //
  25. // I didn't actually write this class, just moved it out of DragBar.h.
  26. // 
  27.  
  28. #pragma once 
  29.  
  30. class LPane;
  31. class LStream;
  32. class CSharedPatternWorld;
  33.  
  34.  
  35. class CPatternedGrippyPane : public LPane
  36. {
  37.     public:
  38.         
  39.         enum { class_ID = 'PgPn' };
  40.         
  41.                                 CPatternedGrippyPane(LStream* inStream);
  42.         virtual                    ~CPatternedGrippyPane();
  43.         
  44.         // for hilighting on mouse entry/exit
  45.         virtual void MouseEnter ( Point inPoint, const EventRecord & inEvent ) ;
  46.         virtual void MouseLeave ( ) ;
  47.         
  48.     protected:
  49.         
  50.         virtual    void            DrawSelf(void);
  51.  
  52.         CIconHandle                mTriangle;
  53.         CSharedPatternWorld*    mBackPattern;            // back pattern when mouse outside
  54.         CSharedPatternWorld*    mBackPatternHilite;    // back pattern when mouse inside
  55.         Boolean                    mMouseInside;
  56.         
  57.         CSharedPatternWorld*    mGrippy;                // grippy pattern (gray bg)
  58.         CSharedPatternWorld*    mGrippyHilite;            // grippy pattern hilite (purple bg)
  59.         
  60. }; // CPatternedGrippyPane
  61.