⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libmng_chunk_xs.c

📁 Linux下的基于X11的图形开发环境。
💻 C
📖 第 1 页 / 共 5 页
字号:
                                            mng_int32  *iBoundaryr,                                            mng_int32  *iBoundaryt,                                            mng_int32  *iBoundaryb){  mng_datap        pData;  mng_pastp        pChunk;  mng_past_sourcep pEntry;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_PAST_SRC, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_pastp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_PAST)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  if (iEntry >= pChunk->iCount)        /* valid index ? */    MNG_ERROR (pData, MNG_INVALIDENTRYIX)                                       /* address the entry */  pEntry         = pChunk->pSources + iEntry;  *iSourceid     = pEntry->iSourceid;  /* fill the fields */  *iComposition  = pEntry->iComposition;  *iOrientation  = pEntry->iOrientation;  *iOffsettype   = pEntry->iOffsettype;  *iOffsetx      = pEntry->iOffsetx;  *iOffsety      = pEntry->iOffsety;  *iBoundarytype = pEntry->iBoundarytype;  *iBoundaryl    = pEntry->iBoundaryl;  *iBoundaryr    = pEntry->iBoundaryr;  *iBoundaryt    = pEntry->iBoundaryt;  *iBoundaryb    = pEntry->iBoundaryb;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_PAST_SRC, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_disc (mng_handle  hHandle,                                        mng_handle  hChunk,                                        mng_uint32  *iCount,                                        mng_uint16p *pObjectids){  mng_datap pData;  mng_discp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_DISC, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_discp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_DISC)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iCount     = pChunk->iCount;        /* fill the fields */  *pObjectids = pChunk->pObjectids;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_DISC, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_back (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iRed,                                        mng_uint16 *iGreen,                                        mng_uint16 *iBlue,                                        mng_uint8  *iMandatory,                                        mng_uint16 *iImageid,                                        mng_uint8  *iTile){  mng_datap pData;  mng_backp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_BACK, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_backp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_BACK)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iRed       = pChunk->iRed;          /* fill the fields */  *iGreen     = pChunk->iGreen;  *iBlue      = pChunk->iBlue;  *iMandatory = pChunk->iMandatory;  *iImageid   = pChunk->iImageid;  *iTile      = pChunk->iTile;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_BACK, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_fram (mng_handle  hHandle,                                        mng_handle  hChunk,                                        mng_bool    *bEmpty,                                        mng_uint8   *iMode,                                        mng_uint32  *iNamesize,                                        mng_pchar   *zName,                                        mng_uint8   *iChangedelay,                                        mng_uint8   *iChangetimeout,                                        mng_uint8   *iChangeclipping,                                        mng_uint8   *iChangesyncid,                                        mng_uint32  *iDelay,                                        mng_uint32  *iTimeout,                                        mng_uint8   *iBoundarytype,                                        mng_int32   *iBoundaryl,                                        mng_int32   *iBoundaryr,                                        mng_int32   *iBoundaryt,                                        mng_int32   *iBoundaryb,                                        mng_uint32  *iCount,                                        mng_uint32p *pSyncids){  mng_datap pData;  mng_framp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_FRAM, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_framp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_FRAM)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *bEmpty          = pChunk->bEmpty;   /* fill the fields */        *iMode           = pChunk->iMode;  *iNamesize       = pChunk->iNamesize;  *zName           = pChunk->zName;  *iChangedelay    = pChunk->iChangedelay;  *iChangetimeout  = pChunk->iChangetimeout;  *iChangeclipping = pChunk->iChangeclipping;  *iChangesyncid   = pChunk->iChangesyncid;  *iDelay          = pChunk->iDelay;  *iTimeout        = pChunk->iTimeout;  *iBoundarytype   = pChunk->iBoundarytype;  *iBoundaryl      = pChunk->iBoundaryl;  *iBoundaryr      = pChunk->iBoundaryr;  *iBoundaryt      = pChunk->iBoundaryt;  *iBoundaryb      = pChunk->iBoundaryb;  *iCount          = pChunk->iCount;  *pSyncids        = pChunk->pSyncids;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_FRAM, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_move (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iFirstid,                                        mng_uint16 *iLastid,                                        mng_uint8  *iMovetype,                                        mng_int32  *iMovex,                                        mng_int32  *iMovey){  mng_datap pData;  mng_movep pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_MOVE, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_movep)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_MOVE)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iFirstid  = pChunk->iFirstid;       /* fill the fields */  *iLastid   = pChunk->iLastid;  *iMovetype = pChunk->iMovetype;  *iMovex    = pChunk->iMovex;  *iMovey    = pChunk->iMovey;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_MOVE, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_clip (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint16 *iFirstid,                                        mng_uint16 *iLastid,                                        mng_uint8  *iCliptype,                                        mng_int32  *iClipl,                                        mng_int32  *iClipr,                                        mng_int32  *iClipt,                                        mng_int32  *iClipb){  mng_datap pData;  mng_clipp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_CLIP, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_clipp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_CLIP)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iFirstid  = pChunk->iFirstid;       /* fill the fields */  *iLastid   = pChunk->iLastid;  *iCliptype = pChunk->iCliptype;  *iClipl    = pChunk->iClipl;  *iClipr    = pChunk->iClipr;  *iClipt    = pChunk->iClipt;  *iClipb    = pChunk->iClipb;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_CLIP, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_show (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_bool   *bEmpty,                                        mng_uint16 *iFirstid,                                        mng_uint16 *iLastid,                                        mng_uint8  *iMode){  mng_datap pData;  mng_showp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_SHOW, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_showp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_SHOW)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *bEmpty   = pChunk->bEmpty;          /* fill the fields */  *iFirstid = pChunk->iFirstid;  *iLastid  = pChunk->iLastid;  *iMode    = pChunk->iMode;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_SHOW, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_term (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_uint8  *iTermaction,                                        mng_uint8  *iIteraction,                                        mng_uint32 *iDelay,                                        mng_uint32 *iItermax){  mng_datap pData;  mng_termp pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_TERM, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_termp)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_TERM)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *iTermaction = pChunk->iTermaction;  /* fill the fields */  *iIteraction = pChunk->iIteraction;  *iDelay      = pChunk->iDelay;  *iItermax    = pChunk->iItermax;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_TERM, MNG_LC_END)#endif  return MNG_NOERROR;}/* ************************************************************************** */mng_retcode MNG_DECL mng_getchunk_save (mng_handle hHandle,                                        mng_handle hChunk,                                        mng_bool   *bEmpty,                                        mng_uint8  *iOffsettype,                                        mng_uint32 *iCount){  mng_datap pData;  mng_savep pChunk;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_SAVE, MNG_LC_START)#endif  MNG_VALIDHANDLE (hHandle)            /* check validity handle */  pData  = (mng_datap)hHandle;         /* and make it addressable */  pChunk = (mng_savep)hChunk;          /* address the chunk */  if (pChunk->sHeader.iChunkname != MNG_UINT_SAVE)    MNG_ERROR (pData, MNG_WRONGCHUNK)  /* ouch */  *bEmpty      = pChunk->bEmpty;       /* fill the fields */  *iOffsettype = pChunk->iOffsettype;  *iCount      = pChunk->iCount;#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (((mng_datap)hHandle), MNG_FN_GETCHUNK_SAVE, MNG_LC_END)#endif  return MNG_NOERROR;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -