home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / LogoP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.1 KB  |  117 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. /* Name:        <Xfe/LogoP.h>                                            */
  21. /* Description:    XfeLogo widget private header file.                        */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeLogoP_h_                            /* start LogoP.h        */
  28. #define _XfeLogoP_h_
  29.  
  30. #include <Xfe/Logo.h>
  31. #include <Xfe/ButtonP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeLogoClassPart                                                        */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */
  45. } XfeLogoClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeLogoClassRec                                                        */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeLogoClassRec
  53. {
  54.     CoreClassPart            core_class;
  55.     XmPrimitiveClassPart    primitive_class;
  56.     XfePrimitiveClassPart    xfe_primitive_class;
  57.     XfeLabelClassPart        xfe_label_class;
  58.     XfeButtonClassPart        xfe_button_class;
  59.     XfeLogoClassPart        xfe_logo_class;
  60. } XfeLogoClassRec;
  61.  
  62. externalref XfeLogoClassRec xfeLogoClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeLogoPart                                                            */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeLogoPart
  70. {
  71.     /* Callback resources */
  72.     XtCallbackList        animation_callback;        /* Animation callback    */
  73.  
  74.     /* Pixmap resources */
  75.     Cardinal            current_pixmap_index;    /* Current pixmap index    */
  76.     XfePixmapTable        animation_pixmaps;        /* Logo pixmaps            */
  77.     Cardinal            num_animation_pixmaps;    /* Num logo pixmaps        */
  78.     int                    animation_interval;        /* Animation interval    */
  79.     Boolean                animation_running;        /* Animation running    */
  80.     Boolean                reset_when_idle;        /* Reset when idle        */
  81.  
  82.     /* Private Data Members */
  83.     GC                    copy_GC;                /* Copy gc                */
  84.     Dimension            animation_width;        /* Animation width        */
  85.     Dimension            animation_height;        /* Animation height        */
  86.  
  87.     XtIntervalId        timer_id;                /* Timer id                */
  88. } XfeLogoPart;
  89.  
  90. /*----------------------------------------------------------------------*/
  91. /*                                                                        */
  92. /* XfeLogoRec                                                            */
  93. /*                                                                        */
  94. /*----------------------------------------------------------------------*/
  95. typedef struct _XfeLogoRec
  96. {
  97.     CorePart            core;                    /* Core Part            */
  98.     XmPrimitivePart        primitive;                /* XmPrimitive Part        */
  99.     XfePrimitivePart    xfe_primitive;            /* XfePrimitive Part    */
  100.     XfeLabelPart        xfe_label;                /* XfeLabel Part        */
  101.     XfeButtonPart        xfe_button;                /* XfeButton Part        */
  102.     XfeLogoPart            xfe_logo;                /* XfeLogo Part            */
  103. } XfeLogoRec;
  104.  
  105. /*----------------------------------------------------------------------*/
  106. /*                                                                        */
  107. /* XfeLogoPart Access Macro                                                */
  108. /*                                                                        */
  109. /*----------------------------------------------------------------------*/
  110. #define _XfeLogoPart(w) &(((XfeLogoWidget) w) -> xfe_logo)
  111.  
  112. #ifdef __cplusplus                                /* end C++                */
  113. }
  114. #endif
  115.  
  116. #endif                                            /* end LogoP.h            */
  117.