GrafX2 2.9.3227
The ultimate 256-color painting program
T_Format Struct Reference

Data for an image file format. More...

#include <loadsave.h>

+ Collaboration diagram for T_Format:

Data Fields

enum FILE_FORMATS Identifier
 Identifier for this format. More...
 
const char * Label
 Five-letter label. More...
 
Func_IO_Test Test
 Function which tests if the file is of this format. More...
 
Func_IO Load
 Function which loads an image of this format. More...
 
Func_IO Save
 Function which saves an image of this format. More...
 
byte Palette_only
 Boolean, true if this format saves/loads only the palette. More...
 
byte Comment
 This file format allows a text comment. More...
 
byte Supports_layers
 Boolean, true if this format preserves layers on saving. More...
 
const char * Default_extension
 Default file extension. More...
 
const char * Extensions
 List of semicolon-separated file extensions. More...
 

Detailed Description

Data for an image file format.

Field Documentation

◆ Identifier

enum FILE_FORMATS T_Format::Identifier

Identifier for this format.

◆ Label

const char* T_Format::Label

Five-letter label.

Referenced by Button_Load_or_Save().

◆ Test

Func_IO_Test T_Format::Test

Function which tests if the file is of this format.

◆ Load

Func_IO T_Format::Load

Function which loads an image of this format.

◆ Save

Func_IO T_Format::Save

Function which saves an image of this format.

Referenced by Button_Load_or_Save().

◆ Palette_only

byte T_Format::Palette_only

Boolean, true if this format saves/loads only the palette.

Referenced by Button_Load_or_Save(), Load_image(), Load_picture(), and Pre_load().

◆ Comment

byte T_Format::Comment

This file format allows a text comment.

Referenced by Button_Load_or_Save().

◆ Supports_layers

byte T_Format::Supports_layers

Boolean, true if this format preserves layers on saving.

◆ Default_extension

const char* T_Format::Default_extension

Default file extension.

Referenced by Button_Load_or_Save().

◆ Extensions

const char* T_Format::Extensions

List of semicolon-separated file extensions.

Referenced by Read_list_of_files().


The documentation for this struct was generated from the following file: