home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / libfont / jmcgen / include / Mnff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.8 KB  |  153 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.  * Source date: 9 Apr 1997 21:45:12 GMT
  20.  * netscape/fonts/nff public interface
  21.  * Generated by jmc version 1.8 -- DO NOT EDIT
  22.  ******************************************************************************/
  23.  
  24. #ifndef _Mnff_H_
  25. #define _Mnff_H_
  26.  
  27. #include "jmc.h"
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif /* __cplusplus */
  32.  
  33. /*******************************************************************************
  34.  * nff
  35.  ******************************************************************************/
  36.  
  37. /* The type of the nff interface. */
  38. struct nffInterface;
  39.  
  40. /* The public type of a nff instance. */
  41. typedef struct nff {
  42.     const struct nffInterface*    vtable;
  43. } nff;
  44.  
  45. /* The inteface ID of the nff interface. */
  46. #ifndef JMC_INIT_nff_ID
  47. extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nff_ID;
  48. #else
  49. EXTERN_C const JMCInterfaceID nff_ID = { 0x4f477462, 0x12081671, 0x50135b6a, 0x37743b64 };
  50. #endif /* JMC_INIT_nff_ID */
  51. /*******************************************************************************
  52.  * nff Operations
  53.  ******************************************************************************/
  54.  
  55. #define nff_getInterface(self, a, exception)    \
  56.     (((self)->vtable->getInterface)(self, nff_getInterface_op, a, exception))
  57.  
  58. #define nff_addRef(self, exception)    \
  59.     (((self)->vtable->addRef)(self, nff_addRef_op, exception))
  60.  
  61. #define nff_release(self, exception)    \
  62.     (((self)->vtable->release)(self, nff_release_op, exception))
  63.  
  64. #define nff_hashCode(self, exception)    \
  65.     (((self)->vtable->hashCode)(self, nff_hashCode_op, exception))
  66.  
  67. #define nff_equals(self, a, exception)    \
  68.     (((self)->vtable->equals)(self, nff_equals_op, a, exception))
  69.  
  70. #define nff_clone(self, exception)    \
  71.     (((self)->vtable->clone)(self, nff_clone_op, exception))
  72.  
  73. #define nff_toString(self, exception)    \
  74.     (((self)->vtable->toString)(self, nff_toString_op, exception))
  75.  
  76. #define nff_finalize(self, exception)    \
  77.     (((self)->vtable->finalize)(self, nff_finalize_op, exception))
  78.  
  79. #define nff_GetState(self, exception)    \
  80.     (((self)->vtable->GetState)(self, nff_GetState_op, exception))
  81.  
  82. #define nff_EnumerateSizes(self, a, exception)    \
  83.     (((self)->vtable->EnumerateSizes)(self, nff_EnumerateSizes_op, a, exception))
  84.  
  85. #define nff_GetRenderableFont(self, a, b, exception)    \
  86.     (((self)->vtable->GetRenderableFont)(self, nff_GetRenderableFont_op, a, b, exception))
  87.  
  88. #define nff_GetMatchInfo(self, a, b, exception)    \
  89.     (((self)->vtable->GetMatchInfo)(self, nff_GetMatchInfo_op, a, b, exception))
  90.  
  91. #define nff_GetRcMajorType(self, exception)    \
  92.     (((self)->vtable->GetRcMajorType)(self, nff_GetRcMajorType_op, exception))
  93.  
  94. #define nff_GetRcMinorType(self, exception)    \
  95.     (((self)->vtable->GetRcMinorType)(self, nff_GetRcMinorType_op, exception))
  96.  
  97. /*******************************************************************************
  98.  * nff Interface
  99.  ******************************************************************************/
  100.  
  101. struct netscape_jmc_JMCInterfaceID;
  102. struct java_lang_Object;
  103. struct java_lang_String;
  104. struct netscape_fonts_nfrc;
  105. struct netscape_fonts_nfrf;
  106. struct netscape_fonts_nffmi;
  107.  
  108. struct nffInterface {
  109.     void*    (*getInterface)(struct nff* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
  110.     void    (*addRef)(struct nff* self, jint op, JMCException* *exception);
  111.     void    (*release)(struct nff* self, jint op, JMCException* *exception);
  112.     jint    (*hashCode)(struct nff* self, jint op, JMCException* *exception);
  113.     jbool    (*equals)(struct nff* self, jint op, void* a, JMCException* *exception);
  114.     void*    (*clone)(struct nff* self, jint op, JMCException* *exception);
  115.     const char*    (*toString)(struct nff* self, jint op, JMCException* *exception);
  116.     void    (*finalize)(struct nff* self, jint op, JMCException* *exception);
  117.     jint    (*GetState)(struct nff* self, jint op, JMCException* *exception);
  118.     void*    (*EnumerateSizes)(struct nff* self, jint op, struct nfrc* a, JMCException* *exception);
  119.     struct nfrf*    (*GetRenderableFont)(struct nff* self, jint op, struct nfrc* a, jdouble b, JMCException* *exception);
  120.     struct nffmi*    (*GetMatchInfo)(struct nff* self, jint op, struct nfrc* a, jint b, JMCException* *exception);
  121.     jint    (*GetRcMajorType)(struct nff* self, jint op, JMCException* *exception);
  122.     jint    (*GetRcMinorType)(struct nff* self, jint op, JMCException* *exception);
  123. };
  124.  
  125. /*******************************************************************************
  126.  * nff Operation IDs
  127.  ******************************************************************************/
  128.  
  129. typedef enum nffOperations {
  130.     nff_getInterface_op,
  131.     nff_addRef_op,
  132.     nff_release_op,
  133.     nff_hashCode_op,
  134.     nff_equals_op,
  135.     nff_clone_op,
  136.     nff_toString_op,
  137.     nff_finalize_op,
  138.     nff_GetState_op,
  139.     nff_EnumerateSizes_op,
  140.     nff_GetRenderableFont_op,
  141.     nff_GetMatchInfo_op,
  142.     nff_GetRcMajorType_op,
  143.     nff_GetRcMinorType_op
  144. } nffOperations;
  145.  
  146. /******************************************************************************/
  147.  
  148. #ifdef __cplusplus
  149. } /* extern "C" */
  150. #endif /* __cplusplus */
  151.  
  152. #endif /* _Mnff_H_ */
  153.