1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef _WWPalette_h_INCLUDED_
- #define _WWPalette_h_INCLUDED_
- /*****************************************************************************/
- /* ここから */
- /*****************************************************************************/
- #include <stdio.h>
- #include <stdlib.h>
- /*****************************************************************************/
- /* クラスの定義 */
- /*****************************************************************************/
- typedef struct _WWPalette * WWPalette;
- /*****************************************************************************/
- /* メンバ関数の宣言 */
- /*****************************************************************************/
- int WWPalette_GetNumber(WWPalette p);
- int WWPalette_SetNumber(WWPalette p, int n);
- int WWPalette_GetTransparent(WWPalette palette);
- int WWPalette_SetTransparent(WWPalette palette, int f);
- WWPalette WWPalette_Create(int number, int * mapped_colors, int transparent);
- WWPalette WWPalette_Destroy(WWPalette palette);
- int * WWPalette_GetMappedColors(WWPalette palette, int * mapped_colors);
- int WWPalette_SetMappedColors(WWPalette palette, int * mapped_colors);
- int WWPalette_GetMappedColor(WWPalette palette, int color);
- int WWPalette_SetMappedColor(WWPalette palette, int color, int mapped_color);
- int WWPalette_PrintData(WWPalette p, FILE * f);
- /*****************************************************************************/
- /* ここまで */
- /*****************************************************************************/
- #endif
- /*****************************************************************************/
- /* End of File. */
- /*****************************************************************************/
|