home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / feimage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  63 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. #ifndef _FEIMAGE_H_
  20. #define _FEIMAGE_H_
  21. #define OLDIMAGE 1
  22. #include "ni_pixmp.h"
  23. #include "il_types.h"
  24. #include "mimgcb.h"
  25.  
  26. struct FEBitmapInfo {
  27.     int width;
  28.     int height;
  29.     int targetWidth;
  30.     int targetHeight;
  31.     BOOL iconDisplayed;
  32.     BOOL imageDisplayed;
  33.     HBITMAP hBitmap;
  34.     BITMAPINFO *bmpInfo;
  35.     CAbstractCX *pContext;
  36.     BOOL    IsMask;
  37.     BOOL    IsTile; // True if we are currently tiling this image.
  38.     FEBitmapInfo(){
  39.         width = height = targetWidth = targetHeight = 0;
  40.         iconDisplayed = 0;
  41.         hBitmap = NULL;
  42.         bmpInfo = NULL;
  43.         pContext = NULL;
  44.         IsMask = FALSE;
  45.         IsTile = FALSE;
  46.         imageDisplayed = FALSE;
  47.     }
  48.     ~FEBitmapInfo() {
  49.         if (bmpInfo)
  50.             XP_FREE( bmpInfo);
  51.         if (hBitmap) 
  52.             ::DeleteObject(hBitmap);
  53.     }
  54. };
  55.  
  56. XP_BEGIN_PROTOS
  57. void    ImageGroupObserver(XP_Observable observable,
  58.             XP_ObservableMsg message,
  59.             void *message_data,
  60.             void *closure);
  61. XP_END_PROTOS
  62. #endif
  63.