home *** CD-ROM | disk | FTP | other *** search
- /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
- *
- * The contents of this file are subject to the Netscape Public License
- * Version 1.0 (the "NPL"); you may not use this file except in
- * compliance with the NPL. You may obtain a copy of the NPL at
- * http://www.mozilla.org/NPL/
- *
- * Software distributed under the NPL is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
- * for the specific language governing rights and limitations under the
- * NPL.
- *
- * The Initial Developer of this code under the NPL is Netscape
- * Communications Corporation. Portions created by Netscape are
- * Copyright (C) 1998 Netscape Communications Corporation. All Rights
- * Reserved.
- */
- /*******************************************************************************
- * Source date: 9 Apr 1997 21:45:12 GMT
- * netscape/fonts/nff public interface
- * Generated by jmc version 1.8 -- DO NOT EDIT
- ******************************************************************************/
-
- #ifndef _Mnff_H_
- #define _Mnff_H_
-
- #include "jmc.h"
-
- #ifdef __cplusplus
- extern "C" {
- #endif /* __cplusplus */
-
- /*******************************************************************************
- * nff
- ******************************************************************************/
-
- /* The type of the nff interface. */
- struct nffInterface;
-
- /* The public type of a nff instance. */
- typedef struct nff {
- const struct nffInterface* vtable;
- } nff;
-
- /* The inteface ID of the nff interface. */
- #ifndef JMC_INIT_nff_ID
- extern EXTERN_C_WITHOUT_EXTERN const JMCInterfaceID nff_ID;
- #else
- EXTERN_C const JMCInterfaceID nff_ID = { 0x4f477462, 0x12081671, 0x50135b6a, 0x37743b64 };
- #endif /* JMC_INIT_nff_ID */
- /*******************************************************************************
- * nff Operations
- ******************************************************************************/
-
- #define nff_getInterface(self, a, exception) \
- (((self)->vtable->getInterface)(self, nff_getInterface_op, a, exception))
-
- #define nff_addRef(self, exception) \
- (((self)->vtable->addRef)(self, nff_addRef_op, exception))
-
- #define nff_release(self, exception) \
- (((self)->vtable->release)(self, nff_release_op, exception))
-
- #define nff_hashCode(self, exception) \
- (((self)->vtable->hashCode)(self, nff_hashCode_op, exception))
-
- #define nff_equals(self, a, exception) \
- (((self)->vtable->equals)(self, nff_equals_op, a, exception))
-
- #define nff_clone(self, exception) \
- (((self)->vtable->clone)(self, nff_clone_op, exception))
-
- #define nff_toString(self, exception) \
- (((self)->vtable->toString)(self, nff_toString_op, exception))
-
- #define nff_finalize(self, exception) \
- (((self)->vtable->finalize)(self, nff_finalize_op, exception))
-
- #define nff_GetState(self, exception) \
- (((self)->vtable->GetState)(self, nff_GetState_op, exception))
-
- #define nff_EnumerateSizes(self, a, exception) \
- (((self)->vtable->EnumerateSizes)(self, nff_EnumerateSizes_op, a, exception))
-
- #define nff_GetRenderableFont(self, a, b, exception) \
- (((self)->vtable->GetRenderableFont)(self, nff_GetRenderableFont_op, a, b, exception))
-
- #define nff_GetMatchInfo(self, a, b, exception) \
- (((self)->vtable->GetMatchInfo)(self, nff_GetMatchInfo_op, a, b, exception))
-
- #define nff_GetRcMajorType(self, exception) \
- (((self)->vtable->GetRcMajorType)(self, nff_GetRcMajorType_op, exception))
-
- #define nff_GetRcMinorType(self, exception) \
- (((self)->vtable->GetRcMinorType)(self, nff_GetRcMinorType_op, exception))
-
- /*******************************************************************************
- * nff Interface
- ******************************************************************************/
-
- struct netscape_jmc_JMCInterfaceID;
- struct java_lang_Object;
- struct java_lang_String;
- struct netscape_fonts_nfrc;
- struct netscape_fonts_nfrf;
- struct netscape_fonts_nffmi;
-
- struct nffInterface {
- void* (*getInterface)(struct nff* self, jint op, const JMCInterfaceID* a, JMCException* *exception);
- void (*addRef)(struct nff* self, jint op, JMCException* *exception);
- void (*release)(struct nff* self, jint op, JMCException* *exception);
- jint (*hashCode)(struct nff* self, jint op, JMCException* *exception);
- jbool (*equals)(struct nff* self, jint op, void* a, JMCException* *exception);
- void* (*clone)(struct nff* self, jint op, JMCException* *exception);
- const char* (*toString)(struct nff* self, jint op, JMCException* *exception);
- void (*finalize)(struct nff* self, jint op, JMCException* *exception);
- jint (*GetState)(struct nff* self, jint op, JMCException* *exception);
- void* (*EnumerateSizes)(struct nff* self, jint op, struct nfrc* a, JMCException* *exception);
- struct nfrf* (*GetRenderableFont)(struct nff* self, jint op, struct nfrc* a, jdouble b, JMCException* *exception);
- struct nffmi* (*GetMatchInfo)(struct nff* self, jint op, struct nfrc* a, jint b, JMCException* *exception);
- jint (*GetRcMajorType)(struct nff* self, jint op, JMCException* *exception);
- jint (*GetRcMinorType)(struct nff* self, jint op, JMCException* *exception);
- };
-
- /*******************************************************************************
- * nff Operation IDs
- ******************************************************************************/
-
- typedef enum nffOperations {
- nff_getInterface_op,
- nff_addRef_op,
- nff_release_op,
- nff_hashCode_op,
- nff_equals_op,
- nff_clone_op,
- nff_toString_op,
- nff_finalize_op,
- nff_GetState_op,
- nff_EnumerateSizes_op,
- nff_GetRenderableFont_op,
- nff_GetMatchInfo_op,
- nff_GetRcMajorType_op,
- nff_GetRcMinorType_op
- } nffOperations;
-
- /******************************************************************************/
-
- #ifdef __cplusplus
- } /* extern "C" */
- #endif /* __cplusplus */
-
- #endif /* _Mnff_H_ */
-