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

structure for Main or Spare page global data More...

#include <struct.h>

+ Collaboration diagram for T_Document:

Data Fields

T_Palette palette
 Palette. More...
 
byte image_is_modified
 Boolean, means the page has been modified since last save. More...
 
short image_width
 Width in pixels of the image. More...
 
short image_height
 Height in pixels of the image. More...
 
short offset_X
 X position (in image space) of the pixel to display in the top left corner of screen. More...
 
short offset_Y
 Y position (in image space) of the pixel to display in the top left corner of screen. More...
 
enum FILE_FORMATS fileformat
 File format of the image currently edited as page. It's a value of enum FILE_FORMATS. More...
 
T_Selector_settings selector
 File selector settings. More...
 
short separator_position
 X position (in screen coordinates) of the separator between normal and magnified views. More...
 
short X_zoom
 X position (in screen coordinates) of the first pixel of the magnified view. More...
 
float separator_proportion
 Proportion of the non-magnified part of the screen. More...
 
byte magnifier_mode
 Boolean, true if the main image has the magnifier active. More...
 
word magnifier_factor
 Zoom factor used in the magnifier. More...
 
word magnifier_height
 Width of the magnified view for the page. More...
 
word magnifier_width
 Height of the magnified view for the page. More...
 
short magnifier_offset_X
 X position (in image space) of the pixel to display in the top left corner of the magnified view. More...
 
short magnifier_offset_Y
 Y position (in image space) of the pixel to display in the top left corner of the magnified view. More...
 
int current_layer
 Index of layer currently being edited. More...
 
dword layers_visible
 Bitfield that records which layers are visible. 2^0 for 0, 2^1 for 1, 2^2 for 2, etc. More...
 
dword layers_visible_backup
 Backup for layers_visible. More...
 
long safety_number
 Index to use next time, when creating incremental backups, to make unique filename. More...
 
long edits_since_safety_backup
 Number of edit actions since the last safety backup. More...
 
dword time_of_safety_backup
 SDL Time of the previous safety backup. More...
 
byte safety_backup_prefix
 Letter prefix for the filenames of safety backups. a or b. More...
 
byte tilemap_mode
 Tilemap mode. More...
 
T_Tiletilemap
 Tilemap. More...
 
short tilemap_width
 Number of tiles (horizontally) for the tilemap. More...
 
short tilemap_height
 Number of tiles (vertically) for the tilemap. More...
 
T_Bitmap visible_image
 The pixels of visible layers, flattened copy. More...
 
T_List_of_pagesbackups
 List of backup pages for the main image. More...
 

Detailed Description

structure for Main or Spare page global data

Field Documentation

◆ palette

◆ image_is_modified

◆ image_width

short T_Document::image_width

Width in pixels of the image.

Referenced by Backup_layers(), Backup_the_spare(), Backup_with_new_dimensions(), Best_video_mode(), Button_Constraint_mode(), Button_Copy_page(), Button_Message_initial(), Button_Page(), Button_Resolution(), Button_Stats(), Button_Transform_menu(), Button_Unselect_magnifier(), Capture_brush(), Capture_brush_with_lasso(), Check_block_constraints(), Clear_current_image(), Clear_current_image_with_stencil(), Clip_magnifier_offsets(), Colorpicker_1_1(), Colorpicker_2_1(), Compute_limits(), Convert_to_dhgr(), Convert_to_hgr(), Copy_image_only(), Copy_view_to_spare(), Count_used_colors(), Count_used_colors_area(), Display_all_screen(), Display_image_limits(), Download_infos_page_main(), Download_infos_page_spare(), Draw_paintbrush(), Draw_xor_rect(), Effect_smooth(), End_of_modification(), Fill_general(), Grad_rectangle_0_5(), Hide_paintbrush(), Image_emergency_backup(), Init_context_layered_image(), Init_mode_video(), Init_program(), Layer_preview_on(), Load_image(), Load_picture(), Merge_layer(), Pixel_figure_preview_xorback(), Pixel_in_document_current_layer(), Pixel_in_layer(), Pixel_in_layer_with_opt_preview(), Pixel_in_screen_c64fli_underlay_with_opt_preview(), Pixel_in_screen_hgr_mono_with_opt_preview(), Pixel_in_screen_layered_with_opt_preview(), Pixel_in_screen_overlay_with_opt_preview(), Pixel_in_screen_underlay_with_opt_preview(), Polyfill_general(), Position_screen_according_to_position(), Position_screen_according_to_zoom(), Print_coordinates(), Read_pixel_from_backup_layer(), Read_pixel_from_backup_screen(), Read_pixel_from_current_screen(), Read_pixel_from_feedback_screen(), Read_pixel_from_layer(), Read_pixel_from_spare_screen(), Redo(), Redraw_current_layer(), Redraw_layered_image(), Redraw_spare_image(), Remap_image_highlevel(), Remap_spare(), Replace(), Replace_colors_within_limits(), Resize_image(), Rightclick_colorpick_2_1(), Scroll_0_5(), Scroll_12_0(), Scroll_12_5(), Scroll_picture(), Scroll_screen(), Switch_layer_mode(), Tile_is_same(), Tile_is_same_flipped_x(), Tile_is_same_flipped_xy(), Tile_is_same_flipped_y(), Tilemap_update(), Undo(), Update_color_hgr_pixel(), Update_depth_buffer(), Update_part_of_screen(), and Upload_infos_page().

◆ image_height

short T_Document::image_height

Height in pixels of the image.

Referenced by Backup_layers(), Backup_the_spare(), Backup_with_new_dimensions(), Best_video_mode(), Button_Constraint_mode(), Button_Copy_page(), Button_Hide_menu(), Button_Message_initial(), Button_Page(), Button_Resolution(), Button_Stats(), Button_Transform_menu(), Button_Unselect_magnifier(), Capture_brush(), Capture_brush_with_lasso(), Check_block_constraints(), Clear_current_image(), Clear_current_image_with_stencil(), Clip_magnifier_offsets(), Colorpicker_1_1(), Colorpicker_2_1(), Compute_limits(), Convert_to_dhgr(), Convert_to_hgr(), Copy_image_only(), Copy_view_to_spare(), Count_used_colors(), Display_all_screen(), Display_image_limits(), Download_infos_page_main(), Download_infos_page_spare(), Draw_paintbrush(), Draw_xor_rect(), Effect_smooth(), End_of_modification(), Fill_general(), Grad_rectangle_0_5(), Image_emergency_backup(), Init_context_layered_image(), Init_mode_video(), Init_program(), Layer_preview_on(), Load_image(), Load_picture(), Merge_layer(), Position_screen_according_to_position(), Position_screen_according_to_zoom(), Print_coordinates(), Read_pixel_from_spare_screen(), Redo(), Redraw_current_layer(), Redraw_layered_image(), Redraw_spare_image(), Remap_image_highlevel(), Remap_spare(), Replace(), Resize_image(), Rightclick_colorpick_2_1(), Scroll_0_5(), Scroll_12_0(), Scroll_12_5(), Scroll_picture(), Scroll_screen(), Set_bar_visibility(), Switch_layer_mode(), Tilemap_update(), Undo(), Update_depth_buffer(), Update_part_of_screen(), and Upload_infos_page().

◆ offset_X

short T_Document::offset_X

X position (in image space) of the pixel to display in the top left corner of screen.

Referenced by Button_Magnify(), Button_Reload(), Button_Unselect_magnifier(), Change_magnifier_factor(), Check_recovery(), Clear_brush_double(), Clear_brush_quad(), Clear_brush_simple(), Clear_brush_tall(), Clear_brush_tall2(), Clear_brush_tall3(), Clear_brush_triple(), Clear_brush_wide(), Clear_brush_wide2(), Compute_limits(), Compute_paintbrush_coordinates(), Copy_view_to_spare(), Display_cursor(), Display_paintbrush(), Display_part_of_screen_double(), Display_part_of_screen_quad(), Display_part_of_screen_simple(), Display_part_of_screen_tall(), Display_part_of_screen_tall2(), Display_part_of_screen_tall3(), Display_part_of_screen_triple(), Display_part_of_screen_wide(), Display_part_of_screen_wide2(), Download_infos_page_main(), Draw_curve_cross(), Draw_paintbrush(), Draw_stretch_spot(), Draw_xor_rect(), Hide_cursor(), Hide_paintbrush(), Init_mode_video(), Init_program(), Load_picture(), Magnifier_12_0(), Pixel_figure_preview_xor(), Pixel_preview_magnifier_double(), Pixel_preview_magnifier_quad(), Pixel_preview_magnifier_simple(), Pixel_preview_magnifier_tall(), Pixel_preview_magnifier_tall2(), Pixel_preview_magnifier_tall3(), Pixel_preview_magnifier_triple(), Pixel_preview_magnifier_wide(), Pixel_preview_magnifier_wide2(), Pixel_preview_normal_double(), Pixel_preview_normal_quad(), Pixel_preview_normal_simple(), Pixel_preview_normal_tall(), Pixel_preview_normal_tall2(), Pixel_preview_normal_tall3(), Pixel_preview_normal_triple(), Pixel_preview_normal_wide(), Pixel_preview_normal_wide2(), Position_screen_according_to_position(), Position_screen_according_to_zoom(), Scroll_screen(), and Update_part_of_screen().

◆ offset_Y

short T_Document::offset_Y

Y position (in image space) of the pixel to display in the top left corner of screen.

Referenced by Button_Hide_menu(), Button_Magnify(), Button_Reload(), Button_Unselect_magnifier(), Change_magnifier_factor(), Check_recovery(), Clear_brush_double(), Clear_brush_quad(), Clear_brush_simple(), Clear_brush_tall(), Clear_brush_tall2(), Clear_brush_tall3(), Clear_brush_triple(), Clear_brush_wide(), Clear_brush_wide2(), Compute_limits(), Compute_paintbrush_coordinates(), Copy_view_to_spare(), Display_cursor(), Display_paintbrush(), Display_part_of_screen_double(), Display_part_of_screen_quad(), Display_part_of_screen_simple(), Display_part_of_screen_tall(), Display_part_of_screen_tall2(), Display_part_of_screen_tall3(), Display_part_of_screen_triple(), Display_part_of_screen_wide(), Display_part_of_screen_wide2(), Download_infos_page_main(), Draw_curve_cross(), Draw_paintbrush(), Draw_stretch_spot(), Draw_xor_rect(), Grad_rectangle_0_5(), Hide_cursor(), Hide_paintbrush(), Init_mode_video(), Init_program(), Load_picture(), Magnifier_12_0(), Pixel_figure_preview_xor(), Pixel_preview_magnifier_double(), Pixel_preview_magnifier_quad(), Pixel_preview_magnifier_simple(), Pixel_preview_magnifier_tall(), Pixel_preview_magnifier_tall2(), Pixel_preview_magnifier_tall3(), Pixel_preview_magnifier_triple(), Pixel_preview_magnifier_wide(), Pixel_preview_magnifier_wide2(), Pixel_preview_normal_double(), Pixel_preview_normal_quad(), Pixel_preview_normal_simple(), Pixel_preview_normal_tall(), Pixel_preview_normal_tall2(), Pixel_preview_normal_tall3(), Pixel_preview_normal_triple(), Pixel_preview_normal_wide(), Pixel_preview_normal_wide2(), Position_screen_according_to_position(), Position_screen_according_to_zoom(), Scroll_screen(), Set_bar_visibility(), and Update_part_of_screen().

◆ fileformat

enum FILE_FORMATS T_Document::fileformat

◆ selector

◆ separator_position

◆ X_zoom

◆ separator_proportion

float T_Document::separator_proportion

Proportion of the non-magnified part of the screen.

Referenced by Compute_separator_data(), Copy_view_to_spare(), Init_program(), and Move_separator().

◆ magnifier_mode

◆ magnifier_factor

word T_Document::magnifier_factor

Zoom factor used in the magnifier.

Referenced by Button_Page(), Change_magnifier_factor(), Clear_brush_scaled_double(), Clear_brush_scaled_quad(), Clear_brush_scaled_simple(), Clear_brush_scaled_tall(), Clear_brush_scaled_tall2(), Clear_brush_scaled_tall3(), Clear_brush_scaled_triple(), Clear_brush_scaled_wide(), Clear_brush_scaled_wide2(), Clip_magnifier_offsets(), Compute_magnifier_data(), Compute_paintbrush_coordinates(), Compute_separator_data(), Copy_view_to_spare(), Cursor_displace(), Display_all_screen(), Display_brush_color_zoom_double(), Display_brush_color_zoom_quad(), Display_brush_color_zoom_simple(), Display_brush_color_zoom_tall(), Display_brush_color_zoom_tall2(), Display_brush_color_zoom_tall3(), Display_brush_color_zoom_triple(), Display_brush_color_zoom_wide(), Display_brush_color_zoom_wide2(), Display_brush_mono_zoom_double(), Display_brush_mono_zoom_quad(), Display_brush_mono_zoom_simple(), Display_brush_mono_zoom_tall(), Display_brush_mono_zoom_tall2(), Display_brush_mono_zoom_tall3(), Display_brush_mono_zoom_triple(), Display_brush_mono_zoom_wide(), Display_brush_mono_zoom_wide2(), Display_paintbrush(), Display_part_of_screen_scaled_double(), Display_part_of_screen_scaled_quad(), Display_part_of_screen_scaled_simple(), Display_part_of_screen_scaled_tall(), Display_part_of_screen_scaled_tall2(), Display_part_of_screen_scaled_tall3(), Display_part_of_screen_scaled_triple(), Display_part_of_screen_scaled_wide(), Display_part_of_screen_scaled_wide2(), Draw_paintbrush(), Fill_general(), Hide_paintbrush(), Horizontal_XOR_line_zoom(), Init_program(), Pixel_preview_magnifier_double(), Pixel_preview_magnifier_quad(), Pixel_preview_magnifier_simple(), Pixel_preview_magnifier_tall(), Pixel_preview_magnifier_tall2(), Pixel_preview_magnifier_tall3(), Pixel_preview_magnifier_triple(), Pixel_preview_magnifier_wide(), Pixel_preview_magnifier_wide2(), Redraw_grid(), Remap_image_highlevel(), Update_part_of_screen(), Vertical_XOR_line_zoom(), and Zoom().

◆ magnifier_height

◆ magnifier_width

◆ magnifier_offset_X

◆ magnifier_offset_Y

◆ current_layer

◆ layers_visible

◆ layers_visible_backup

dword T_Document::layers_visible_backup

Backup for layers_visible.

Referenced by Init_program(), and Layer_activate().

◆ safety_number

long T_Document::safety_number

Index to use next time, when creating incremental backups, to make unique filename.

Referenced by Rotate_safety_backups().

◆ edits_since_safety_backup

long T_Document::edits_since_safety_backup

Number of edit actions since the last safety backup.

Referenced by End_of_modification(), and Rotate_safety_backups().

◆ time_of_safety_backup

dword T_Document::time_of_safety_backup

SDL Time of the previous safety backup.

Referenced by Init_program(), and Rotate_safety_backups().

◆ safety_backup_prefix

byte T_Document::safety_backup_prefix

Letter prefix for the filenames of safety backups. a or b.

Referenced by Add_backup_file(), Init_program(), and Rotate_safety_backups().

◆ tilemap_mode

◆ tilemap

T_Tile* T_Document::tilemap

Tilemap.

Referenced by Disable_tilemap(), Tilemap_draw(), and Tilemap_update().

◆ tilemap_width

short T_Document::tilemap_width

Number of tiles (horizontally) for the tilemap.

Referenced by Disable_tilemap(), Tilemap_draw(), and Tilemap_update().

◆ tilemap_height

short T_Document::tilemap_height

Number of tiles (vertically) for the tilemap.

Referenced by Disable_tilemap(), Tilemap_draw(), and Tilemap_update().

◆ visible_image

◆ backups

T_List_of_pages* T_Document::backups

List of backup pages for the main image.

Referenced by Add_layer(), Any_effect_active(), Backup_and_resize_the_spare(), Backup_in_place(), Backup_layers(), Backup_new_image(), Backup_the_spare(), Backup_with_new_dimensions(), Button_Anim_continuous_next(), Button_Anim_continuous_prev(), Button_Anim_last_frame(), Button_Anim_next_frame(), Button_Anim_prev_frame(), Button_Anim_time(), Button_Autosave(), Button_Clear(), Button_Constraint_menu(), Button_Constraint_mode(), Button_Effects(), Button_Gradients(), Button_Kill(), Button_Layer_add(), Button_Layer_down(), Button_Layer_duplicate(), Button_Layer_get_transparent(), Button_Layer_menu(), Button_Layer_remove(), Button_Layer_set_transparent(), Button_Layer_up(), Button_Message_initial(), Button_Quit_local_function(), Button_Reload(), Button_Toggle_toolbar(), Button_Transform_menu(), C64_pixels_to_FLI(), Check_block_constraints(), Check_layers_limits(), Check_menu_mode(), Clear_current_image(), Clear_current_image_with_stencil(), Color_cycling(), Copy_image_only(), Copy_image_to_brush(), Count_used_colors(), Delete_layer(), Display_all_screen(), Display_effect_states(), Display_layerbar(), Display_menu_palette(), Display_paintbrush(), Draw_paintbrush(), End_of_modification(), Fill_canvas(), Fill_general(), Frame_menu_color(), Free_current_page(), Free_page_of_a_list(), Get_frame_duration(), Get_image_mode(), Image_emergency_backup(), Init_all_backup_lists(), Init_context_layered_image(), Init_program(), Layer_activate(), Layer_preview_on(), Layer_under_mouse(), Load_FLI(), Load_GIF(), Load_gradient_data(), Load_image(), Load_picture(), Merge_layer(), Pixel_in_document_current_layer(), Pixel_in_layer(), Pixel_in_layer_with_opt_preview(), Pixel_in_screen_egx_with_opt_preview(), Pixel_in_screen_gbc_with_opt_preview(), Pixel_in_screen_layered_with_opt_preview(), Pixel_in_screen_zx_with_opt_preview(), Print_color_cycling_details(), Print_coordinates(), Print_filename(), Program_shutdown(), Read_pixel_from_backup_layer(), Read_pixel_from_current_screen(), Read_pixel_from_layer(), Read_pixel_from_spare_screen(), Redo(), Redraw_current_layer(), Redraw_layered_image(), Redraw_spare_image(), Remap_image_highlevel(), Remap_spare(), Replace_colors_within_limits(), Resize_image(), Rotate_safety_backups(), Save_GIF(), Save_image(), Save_picture(), Save_TIFF_Sub(), Scroll_0_5(), Scroll_12_0(), Scroll_12_5(), Set_frame_duration(), Set_image_mode(), Set_loading_layer(), Set_number_of_backups(), Set_saving_layer(), Switch_layer_mode(), Tile_is_same(), Tile_is_same_flipped_x(), Tile_is_same_flipped_xy(), Tile_is_same_flipped_y(), Undo(), Update_buffers(), Update_depth_buffer(), Update_FX_feedback(), Update_pixel_renderer(), Update_screen_targets(), Update_spare_buffers(), and Upload_infos_page().


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