GrafX2 2.9.3227
The ultimate 256-color painting program
|
This structure holds all the settings saved and loaded as gfx2.ini. More...
#include <struct.h>
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... | |
This structure holds all the settings saved and loaded as gfx2.ini.
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().
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().
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().
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().
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().
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().
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().
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().
byte T_Config::Coords_rel |
Boolean, true to display coordinates as relative (instead of absolute)
Referenced by Brush_12_0(), Brush_12_5(), Button_Settings(), Centered_lines_12_0(), Centered_lines_12_7(), Circle_12_0(), Circle_12_5(), Curve_34_points_1_0(), Curve_34_points_2_0(), Curve_3_points_0_5(), Curve_4_points_0_5(), Display_coords_rel_or_abs(), Distort_brush_1_0(), Distort_brush_1_8(), Distort_brush_1_9(), Distort_brush_2_0(), Ellipse_12_0(), Empty_circle_0_5(), Empty_ellipse_0_5(), Empty_rectangle_0_5(), Filled_circle_0_5(), Filled_ellipse_0_5(), Filled_rectangle_0_5(), Grad_circle_0_6(), Grad_circle_12_0(), Grad_circle_12_6(), Grad_circle_12_8(), Grad_ellipse_0_6(), Grad_ellipse_12_0(), Grad_ellipse_12_8(), Grad_rectangle_0_9(), Grad_rectangle_12_0(), Grad_rectangle_12_5(), K_line_0_6(), K_line_12_0(), K_line_12_7(), Line_0_5(), Line_12_0(), Load_INI(), Polyfill_0_8(), Polyfill_12_0(), Polyfill_12_9(), Polygon_12_0(), Polygon_12_9(), Rectangle_12_0(), Rectangle_12_5(), Return_to_draw_mode(), Rotate_brush_0_5(), Rotate_brush_12_0(), Rotate_brush_1_5(), Save_INI(), Scroll_0_5(), Scroll_12_0(), Stretch_brush_0_7(), Stretch_brush_12_0(), and Stretch_brush_1_7().
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().
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().
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().
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().
byte T_Config::Mouse_sensitivity_index_x |
Mouse sensitivity in X axis.
Referenced by Load_INI(), and Save_INI().
byte T_Config::Mouse_sensitivity_index_y |
Mouse sensitivity in Y axis.
Referenced by Load_INI(), and Save_INI().
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().
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().
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().
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().
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().
T_Components T_Config::Fav_menu_colors[4] |
Favorite colors to use for the menu.
Referenced by Init_program(), Load_INI(), and Save_INI().
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().
byte T_Config::Clear_palette |
Boolean, true to reset the palette (to black) before loading an image.
Referenced by Button_Settings(), Load_2GS(), Load_BMP_Palette(), Load_C64(), Load_CA1(), Load_CM5(), Load_FLI(), Load_GIF(), Load_GOS(), Load_GPX(), Load_GRB(), Load_HGR(), Load_IFF(), Load_INFO(), Load_INI(), Load_KCF(), Load_MOTO(), Load_MSX(), Load_NEO(), Load_PC1(), Load_PCX(), Load_PI1(), Load_PNG_Sub(), Load_PRG(), Load_Recoil_Image(), Load_SCR(), Load_SCx(), Load_TNY(), Save_INI(), and Set_SGX_Palette().
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().
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().
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().
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().
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().
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().
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().
byte T_Config::Palette_vertical |
Boolean, true if the menu palette should go top to bottom instead of left to right.
Referenced by Button_Pal_left(), Button_Pal_right(), Button_Pal_right_fast(), Button_Secondary_palette(), Change_palette_cells(), Init_program(), Load_INI(), Palette_cell_X(), Palette_cell_Y(), Pick_color_in_palette(), Reposition_palette(), and Save_INI().
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().
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().
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().
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().
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().
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().
byte T_Config::Auto_nb_used |
Boolean, true to count colors in Palette screen.
Referenced by Button_Settings(), Load_INI(), and Save_INI().
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().
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().
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().
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().
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().
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().
word T_Config::Double_key_speed |
Maximum delay for double-keypress, in ms.
Referenced by Button_Settings(), Load_INI(), Save_INI(), and Transparency_set().
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().
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().
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().
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().
char* T_Config::Scripts_directory |
Full pathname of directory for Lua scripts.
Referenced by Load_INI(), Program_shutdown(), and Save_INI().
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().
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().
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().
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().
byte T_Config::Use_virtual_keyboard |
0: Auto, 1: On, 2: Off
Referenced by Button_Settings(), Load_INI(), Readline_ex_unicode(), and Save_INI().
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().
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().