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

This structure holds all the settings saved and loaded as gfx2.ini. More...

#include <struct.h>

+ Collaboration diagram for T_Config:

Data Fields

char * Font_file
 Name of the font used in the menus. Matches file skins/font_*.png (Case-sensitive on some filesystems) More...
 
char * Skin_file
 String, name of the file where all the graphic data is stored. More...
 
int Show_hidden_files
 Boolean, true to show hidden files in fileselectors. More...
 
int Show_hidden_directories
 Boolean, true to show hidden directories in fileselectors. More...
 
byte Display_image_limits
 Boolean, true to display a dotted line at the borders of the image if it's smaller than screen. More...
 
byte Cursor
 Mouse cursor aspect: 1 Solid, 2 Transparent, 3 Thin. More...
 
byte Maximize_preview
 Boolean, true to make previews in fileselector fit the whole rectangle. More...
 
byte Auto_set_res
 Boolean, true to make grafx2 switch to a new resolution whenever you load an image. More...
 
byte Coords_rel
 Boolean, true to display coordinates as relative (instead of absolute) More...
 
byte Backup
 Boolean, true to backup the original file whenever you save an image. More...
 
byte Adjust_brush_pick
 Boolean, true to omit the right and bottom edges when grabbing a brush in Grid mode. More...
 
byte Auto_save
 Boolean, true to save configuration when exiting program. More...
 
byte Max_undo_pages
 Number of steps to memorize for Undo/Redo. More...
 
byte Mouse_sensitivity_index_x
 Mouse sensitivity in X axis. More...
 
byte Mouse_sensitivity_index_y
 Mouse sensitivity in Y axis. More...
 
byte Mouse_merge_movement
 Number of SDL mouse events that are merged into a single change of mouse coordinates. More...
 
byte Mouse_motion_debounce
 Number of milliseconds to "debounce" mouse motion handling. More...
 
byte Delay_left_click_on_slider
 Delay (in 1/100s) between two activations of a repeatable button when you hold left-click. More...
 
byte Delay_right_click_on_slider
 Delay (in 1/100s) between two activations of a repeatable button when you hold left-click. More...
 
long Timer_delay
 Delay (in 1/55s) before showing a preview in a fileselector. More...
 
T_Components Fav_menu_colors [4]
 Favorite colors to use for the menu. More...
 
int Nb_max_vertices_per_polygon
 Limit for the number of vertices in polygon tools. More...
 
byte Clear_palette
 Boolean, true to reset the palette (to black) before loading an image. More...
 
byte Set_resolution_according_to
 When Auto_set_res is on, this determines if the mode should be chosen according to the "original screen" information in the file (1) or the picture dimensons (2) More...
 
int8_t Ratio
 Determines the scaling of menu and windows: 0 no scaling, 1 scaling, 2 slight scaling, negative= opposite of max scaling. More...
 
byte Fast_zoom
 Boolean, true if the magnifier shortcut should automatically view the mouse area. More...
 
byte Find_file_fast
 In fileselectors, this determines which entries should be sought when typing letters: 0 all, 1 files only, 2 directories only. More...
 
byte Separate_colors
 Boolean, true if the menu palette should separate color cells with a black outline. More...
 
word Palette_cells_X
 Number of colors to show in a row of the menu palette. More...
 
word Palette_cells_Y
 Number of colors to show in a column of the menu palette. More...
 
byte Palette_vertical
 Boolean, true if the menu palette should go top to bottom instead of left to right. More...
 
byte FX_Feedback
 Boolean, true if drawing effects should read the image being modified (instead of the image before clicking) More...
 
byte Safety_colors
 Boolean, true to make the palette automatically re-create menu colors if needed after a "Zap" or color reduction. More...
 
byte Opening_message
 Boolean, true to display the splash screen on strtup. More...
 
byte Clear_with_stencil
 Boolean, true to take the stencil into effect (if active) when using the Clear function. More...
 
byte Auto_discontinuous
 Boolean, true to automatically switch to the discontinuous freehand draw after grabbing a brush. More...
 
byte Screen_size_in_GIF
 Boolean, true to store current resolution in GIF files. More...
 
byte Auto_nb_used
 Boolean, true to count colors in Palette screen. More...
 
byte Default_resolution
 Default video mode to use on startup. Index in Video_mode. More...
 
char * Bookmark_directory [NB_BOOKMARKS]
 Bookmarked directories in fileselectors: This is the full directory name. More...
 
char Bookmark_label [NB_BOOKMARKS][24]
 Bookmarked directories in fileselectors: This is the displayed name. More...
 
int Window_pos_x
 Last window x position (9999 if unsupportd/irrelevant for the platform) More...
 
int Window_pos_y
 Last window y position (9999 if unsupportd/irrelevant for the platform) More...
 
word Double_click_speed
 Maximum delay for double-click, in ms. More...
 
word Double_key_speed
 Maximum delay for double-keypress, in ms. More...
 
byte Right_click_colorpick
 Boolean, true to enable a "tablet" mode, where RMB acts as instant colorpicker. More...
 
byte Sync_views
 Boolean, true when the Main and Spare should share their viewport settings. More...
 
byte Stylus_mode
 Boolean, true to tweak some tools (eg:Curve) for single-button stylus. More...
 
word Swap_buttons
 Sets which key swaps mouse buttons : 0=none, or GFX2_MOD_CTRL, or GFX2_MOD_ALT. More...
 
char * Scripts_directory
 Full pathname of directory for Lua scripts. More...
 
byte Allow_multi_shortcuts
 Boolean, true if the same key combination can trigger multiple shortcuts. More...
 
byte Tilemap_allow_flipped_x
 Boolean, true if the Tilemap tool should detect x-flipped tiles. More...
 
byte Tilemap_allow_flipped_y
 Boolean, true if the Tilemap tool should detect y-flipped tiles. More...
 
byte Tilemap_show_count
 Boolean, true if the Tilemap tool should display tile count after analysis. More...
 
byte Use_virtual_keyboard
 0: Auto, 1: On, 2: Off More...
 
byte Default_mode_layers
 Indicates if default new image has layers (alternative is animation) More...
 
byte MOTO_gamma
 Number, 10 x the Gamma used for converting MO6/TO8/TO9 palette. More...
 

Detailed Description

This structure holds all the settings saved and loaded as gfx2.ini.

Field Documentation

◆ Font_file

char* T_Config::Font_file

Name of the font used in the menus. Matches file skins/font_*.png (Case-sensitive on some filesystems)

Referenced by Button_Skins(), Init_program(), Load_INI(), Program_shutdown(), and Save_INI().

◆ Skin_file

char* T_Config::Skin_file

String, name of the file where all the graphic data is stored.

Referenced by Analyze_command_line(), Button_Skins(), Init_program(), Load_INI(), Program_shutdown(), Save_INI(), and Set_current_skin().

◆ Show_hidden_files

int T_Config::Show_hidden_files

Boolean, true to show hidden files in fileselectors.

Referenced by Button_Settings(), Load_INI(), Read_dir_callback(), and Save_INI().

◆ Show_hidden_directories

int T_Config::Show_hidden_directories

Boolean, true to show hidden directories in fileselectors.

Referenced by Button_Settings(), Load_INI(), Read_dir_callback(), and Save_INI().

◆ Display_image_limits

byte T_Config::Display_image_limits

Boolean, true to display a dotted line at the borders of the image if it's smaller than screen.

Referenced by Button_Reload(), Button_Settings(), Button_Skins(), Display_all_screen(), Init_program(), Load_INI(), Main_handler(), and Save_INI().

◆ Cursor

byte T_Config::Cursor

Mouse cursor aspect: 1 Solid, 2 Transparent, 3 Thin.

Referenced by Button_Skins(), Display_cursor(), Hide_cursor(), Load_INI(), and Save_INI().

◆ Maximize_preview

byte T_Config::Maximize_preview

Boolean, true to make previews in fileselector fit the whole rectangle.

Referenced by Button_Settings(), Load_INI(), Pre_load(), and Save_INI().

◆ Auto_set_res

byte T_Config::Auto_set_res

Boolean, true to make grafx2 switch to a new resolution whenever you load an image.

Referenced by Button_Reload(), Button_Settings(), Load_INI(), Load_picture(), and Save_INI().

◆ Coords_rel

◆ Backup

byte T_Config::Backup

Boolean, true to backup the original file whenever you save an image.

Referenced by Button_Autosave(), Button_Settings(), Load_INI(), Save_INI(), and Save_picture().

◆ Adjust_brush_pick

byte T_Config::Adjust_brush_pick

Boolean, true to omit the right and bottom edges when grabbing a brush in Grid mode.

Referenced by Brush_0_5(), Button_Settings(), Load_INI(), Polybrush_12_8(), Save_INI(), and Stretch_brush_1_7().

◆ Auto_save

byte T_Config::Auto_save

Boolean, true to save configuration when exiting program.

Referenced by Button_Settings(), Load_INI(), Program_shutdown(), Save_INI(), and Settings_display_config().

◆ Max_undo_pages

byte T_Config::Max_undo_pages

Number of steps to memorize for Undo/Redo.

Referenced by Button_Settings(), Create_new_page(), Load_INI(), Process_backups(), and Save_INI().

◆ Mouse_sensitivity_index_x

byte T_Config::Mouse_sensitivity_index_x

Mouse sensitivity in X axis.

Referenced by Load_INI(), and Save_INI().

◆ Mouse_sensitivity_index_y

byte T_Config::Mouse_sensitivity_index_y

Mouse sensitivity in Y axis.

Referenced by Load_INI(), and Save_INI().

◆ Mouse_merge_movement

byte T_Config::Mouse_merge_movement

Number of SDL mouse events that are merged into a single change of mouse coordinates.

Referenced by Button_Settings(), Load_INI(), Move_cursor_with_constraints(), and Save_INI().

◆ Mouse_motion_debounce

byte T_Config::Mouse_motion_debounce

Number of milliseconds to "debounce" mouse motion handling.

Referenced by Button_Settings(), Get_input(), Load_INI(), and Save_INI().

◆ Delay_left_click_on_slider

byte T_Config::Delay_left_click_on_slider

Delay (in 1/100s) between two activations of a repeatable button when you hold left-click.

Referenced by Button_Settings(), Load_INI(), Save_INI(), and Window_get_clicked_button().

◆ Delay_right_click_on_slider

byte T_Config::Delay_right_click_on_slider

Delay (in 1/100s) between two activations of a repeatable button when you hold left-click.

Referenced by Button_Settings(), Load_INI(), Save_INI(), Window_get_button_shortcut(), and Window_get_clicked_button().

◆ Timer_delay

long T_Config::Timer_delay

Delay (in 1/55s) before showing a preview in a fileselector.

Referenced by Button_Load_or_Save(), Button_Settings(), Load_INI(), and Save_INI().

◆ Fav_menu_colors

T_Components T_Config::Fav_menu_colors[4]

Favorite colors to use for the menu.

Referenced by Init_program(), Load_INI(), and Save_INI().

◆ Nb_max_vertices_per_polygon

int T_Config::Nb_max_vertices_per_polygon

Limit for the number of vertices in polygon tools.

Referenced by Button_Settings(), Filled_polyform_12_0(), Filled_polyform_12_8(), Load_INI(), Polybrush_12_8(), Polyfill_0_8(), Polyfill_12_0(), and Save_INI().

◆ Clear_palette

◆ Set_resolution_according_to

byte T_Config::Set_resolution_according_to

When Auto_set_res is on, this determines if the mode should be chosen according to the "original screen" information in the file (1) or the picture dimensons (2)

Referenced by Best_video_mode(), Button_Settings(), Load_INI(), and Save_INI().

◆ Ratio

int8_t T_Config::Ratio

Determines the scaling of menu and windows: 0 no scaling, 1 scaling, 2 slight scaling, negative= opposite of max scaling.

Referenced by Button_Settings(), Init_mode_video(), Load_INI(), and Save_INI().

◆ Fast_zoom

byte T_Config::Fast_zoom

Boolean, true if the magnifier shortcut should automatically view the mouse area.

Referenced by Button_Magnify(), Button_Settings(), Load_INI(), and Save_INI().

◆ Find_file_fast

byte T_Config::Find_file_fast

In fileselectors, this determines which entries should be sought when typing letters: 0 all, 1 files only, 2 directories only.

Referenced by Button_Settings(), Find_filename_match(), Load_INI(), and Save_INI().

◆ Separate_colors

byte T_Config::Separate_colors

Boolean, true if the menu palette should separate color cells with a black outline.

Referenced by Button_Settings(), Button_Skins(), Display_menu_palette(), Display_menu_palette_avoiding_window(), Frame_menu_color(), Load_INI(), and Save_INI().

◆ Palette_cells_X

word T_Config::Palette_cells_X

Number of colors to show in a row of the menu palette.

Referenced by Button_Secondary_palette(), Change_palette_cells(), Init_program(), Load_INI(), and Save_INI().

◆ Palette_cells_Y

word T_Config::Palette_cells_Y

Number of colors to show in a column of the menu palette.

Referenced by Button_Secondary_palette(), Change_palette_cells(), Init_program(), Load_INI(), and Save_INI().

◆ Palette_vertical

byte T_Config::Palette_vertical

◆ FX_Feedback

byte T_Config::FX_Feedback

Boolean, true if drawing effects should read the image being modified (instead of the image before clicking)

Referenced by Backup_layers(), Backup_with_new_dimensions(), Button_Effects(), Display_feedback_state(), End_of_modification(), Fill_general(), Init_all_backup_lists(), Load_INI(), Polyfill(), Redraw_layered_image(), Save_INI(), and Update_depth_buffer().

◆ Safety_colors

byte T_Config::Safety_colors

Boolean, true to make the palette automatically re-create menu colors if needed after a "Zap" or color reduction.

Referenced by Button_Palette(), Button_Settings(), Load_image(), Load_INI(), and Save_INI().

◆ Opening_message

byte T_Config::Opening_message

Boolean, true to display the splash screen on strtup.

Referenced by Button_Settings(), Init_program(), Load_INI(), and Save_INI().

◆ Clear_with_stencil

byte T_Config::Clear_with_stencil

Boolean, true to take the stencil into effect (if active) when using the Clear function.

Referenced by Button_Clear(), Button_Clear_with_backcolor(), Button_Settings(), Load_INI(), and Save_INI().

◆ Auto_discontinuous

byte T_Config::Auto_discontinuous

Boolean, true to automatically switch to the discontinuous freehand draw after grabbing a brush.

Referenced by Button_Settings(), Button_Text(), Load_INI(), Load_picture(), Main_handler(), Return_to_draw_mode(), and Save_INI().

◆ Screen_size_in_GIF

byte T_Config::Screen_size_in_GIF

Boolean, true to store current resolution in GIF files.

Referenced by Button_Settings(), Load_INI(), Save_GIF(), and Save_INI().

◆ Auto_nb_used

byte T_Config::Auto_nb_used

Boolean, true to count colors in Palette screen.

Referenced by Button_Settings(), Load_INI(), and Save_INI().

◆ Default_resolution

byte T_Config::Default_resolution

Default video mode to use on startup. Index in Video_mode.

Referenced by Analyze_command_line(), Load_INI(), and Save_INI().

◆ Bookmark_directory

char* T_Config::Bookmark_directory[NB_BOOKMARKS]

Bookmarked directories in fileselectors: This is the full directory name.

Referenced by Button_Load_or_Save(), Display_bookmark(), Load_INI(), Program_shutdown(), and Save_INI().

◆ Bookmark_label

char T_Config::Bookmark_label[NB_BOOKMARKS][24]

Bookmarked directories in fileselectors: This is the displayed name.

Referenced by Button_Load_or_Save(), Display_bookmark(), Load_INI(), and Save_INI().

◆ Window_pos_x

int T_Config::Window_pos_x

Last window x position (9999 if unsupportd/irrelevant for the platform)

Referenced by Get_input(), GFX2_Set_mode(), Init_program(), Load_INI(), Program_shutdown(), Save_INI(), Win32_CreateWindow(), and Win32_WindowProc().

◆ Window_pos_y

int T_Config::Window_pos_y

Last window y position (9999 if unsupportd/irrelevant for the platform)

Referenced by Get_input(), GFX2_Set_mode(), Init_program(), Load_INI(), Program_shutdown(), Save_INI(), Win32_CreateWindow(), and Win32_WindowProc().

◆ Double_click_speed

word T_Config::Double_click_speed

Maximum delay for double-click, in ms.

Referenced by Button_Select_forecolor(), Button_Settings(), Load_INI(), Save_INI(), and Window_clicked_button().

◆ Double_key_speed

word T_Config::Double_key_speed

Maximum delay for double-keypress, in ms.

Referenced by Button_Settings(), Load_INI(), Save_INI(), and Transparency_set().

◆ Right_click_colorpick

byte T_Config::Right_click_colorpick

Boolean, true to enable a "tablet" mode, where RMB acts as instant colorpicker.

Referenced by Button_Settings(), Load_INI(), Rightclick_colorpick(), and Save_INI().

◆ Sync_views

byte T_Config::Sync_views

Boolean, true when the Main and Spare should share their viewport settings.

Referenced by Button_Page(), Button_Settings(), Load_INI(), and Save_INI().

◆ Stylus_mode

byte T_Config::Stylus_mode

Boolean, true to tweak some tools (eg:Curve) for single-button stylus.

Referenced by Curve_3_points_0_11(), Curve_3_points_0_5(), Curve_3_points_12_11(), and Load_INI().

◆ Swap_buttons

word T_Config::Swap_buttons

Sets which key swaps mouse buttons : 0=none, or GFX2_MOD_CTRL, or GFX2_MOD_ALT.

Referenced by Button_Settings(), Load_INI(), Release_control(), and Save_INI().

◆ Scripts_directory

char* T_Config::Scripts_directory

Full pathname of directory for Lua scripts.

Referenced by Load_INI(), Program_shutdown(), and Save_INI().

◆ Allow_multi_shortcuts

byte T_Config::Allow_multi_shortcuts

Boolean, true if the same key combination can trigger multiple shortcuts.

Referenced by Button_Settings(), Init_program(), Load_INI(), Save_INI(), and Window_set_shortcut().

◆ Tilemap_allow_flipped_x

byte T_Config::Tilemap_allow_flipped_x

Boolean, true if the Tilemap tool should detect x-flipped tiles.

Referenced by Button_Tilemap_menu(), Load_INI(), Save_INI(), and Tilemap_update().

◆ Tilemap_allow_flipped_y

byte T_Config::Tilemap_allow_flipped_y

Boolean, true if the Tilemap tool should detect y-flipped tiles.

Referenced by Button_Tilemap_menu(), Load_INI(), Save_INI(), and Tilemap_update().

◆ Tilemap_show_count

byte T_Config::Tilemap_show_count

Boolean, true if the Tilemap tool should display tile count after analysis.

Referenced by Button_Tilemap_menu(), Load_INI(), Save_INI(), and Tilemap_update().

◆ Use_virtual_keyboard

byte T_Config::Use_virtual_keyboard

0: Auto, 1: On, 2: Off

Referenced by Button_Settings(), Load_INI(), Readline_ex_unicode(), and Save_INI().

◆ Default_mode_layers

byte T_Config::Default_mode_layers

Indicates if default new image has layers (alternative is animation)

Referenced by Button_Message_initial(), Button_Toggle_toolbar(), Init_program(), Load_INI(), and Save_INI().

◆ MOTO_gamma

byte T_Config::MOTO_gamma

Number, 10 x the Gamma used for converting MO6/TO8/TO9 palette.

Referenced by Button_Constraint_menu(), Button_Settings(), Load_INI(), MOTO_gamma_correct_MOTO_to_RGB(), MOTO_gamma_correct_RGB_to_MOTO(), and Save_INI().


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