GrafX2 2.9.3227
The ultimate 256-color painting program
|
Editor functions that can be hooked to a keyboard shortcut, but don't have a menu button associated to them. More...
#include "struct.h"
Functions | |
void | Set_paintbrush_size (int width, int height) |
void | Smaller_paintbrush (void) |
void | Bigger_paintbrush (void) |
void | Special_next_forecolor (void) |
void | Special_previous_forecolor (void) |
void | Special_next_backcolor (void) |
void | Special_previous_backcolor (void) |
void | Special_next_user_forecolor (void) |
Picks the next foreground color, according to current shade table. More... | |
void | Special_previous_user_forecolor (void) |
Picks the previous foreground color, according to current shade table. More... | |
void | Special_next_user_backcolor (void) |
Picks the next background color, according to current shade table. More... | |
void | Special_previous_user_backcolor (void) |
Picks the previous background color, according to current shade table. More... | |
void | Scroll_screen (short delta_x, short delta_y) |
void | Scroll_magnifier (short delta_x, short delta_y) |
void | Zoom (short delta) |
void | Zoom_set (int index) |
Set zoom value. More... | |
void | Display_stored_brush_in_window (word x, word y, int number) |
void | Store_brush (int index) |
Store the current brush in brush container. More... | |
byte | Restore_brush (int index) |
void | Transparency_set (byte amount) |
Command that sets the transparency level. More... | |
Editor functions that can be hooked to a keyboard shortcut, but don't have a menu button associated to them.
void Set_paintbrush_size | ( | int | width, |
int | height | ||
) |
References Circle_squared_diameter(), MAX_PAINTBRUSH_SIZE, Paintbrush_height, Paintbrush_offset_X, Paintbrush_offset_Y, Paintbrush_shape, PAINTBRUSH_SHAPE_ANTISLASH, PAINTBRUSH_SHAPE_CROSS, PAINTBRUSH_SHAPE_DIAMOND, PAINTBRUSH_SHAPE_HORIZONTAL_BAR, PAINTBRUSH_SHAPE_PLUS, PAINTBRUSH_SHAPE_RANDOM, PAINTBRUSH_SHAPE_ROUND, PAINTBRUSH_SHAPE_SIEVE_ROUND, PAINTBRUSH_SHAPE_SIEVE_SQUARE, PAINTBRUSH_SHAPE_SLASH, PAINTBRUSH_SHAPE_SQUARE, PAINTBRUSH_SHAPE_VERTICAL_BAR, Paintbrush_sprite, and Paintbrush_width.
Referenced by Bigger_paintbrush(), Button_Paintbrush_menu(), Init_paintbrush(), Main_handler(), Restore_brush(), Select_paintbrush(), and Smaller_paintbrush().
void Smaller_paintbrush | ( | void | ) |
References Display_cursor(), Display_paintbrush_in_menu(), Hide_cursor, Paintbrush_height, Paintbrush_shape, PAINTBRUSH_SHAPE_ANTISLASH, PAINTBRUSH_SHAPE_CROSS, PAINTBRUSH_SHAPE_DIAMOND, PAINTBRUSH_SHAPE_HORIZONTAL_BAR, PAINTBRUSH_SHAPE_MISC, PAINTBRUSH_SHAPE_PLUS, PAINTBRUSH_SHAPE_RANDOM, PAINTBRUSH_SHAPE_ROUND, PAINTBRUSH_SHAPE_SIEVE_ROUND, PAINTBRUSH_SHAPE_SIEVE_SQUARE, PAINTBRUSH_SHAPE_SLASH, PAINTBRUSH_SHAPE_SQUARE, PAINTBRUSH_SHAPE_VERTICAL_BAR, Paintbrush_width, and Set_paintbrush_size().
Referenced by Main_handler().
void Bigger_paintbrush | ( | void | ) |
References Display_cursor(), Display_paintbrush_in_menu(), Hide_cursor, MAX_PAINTBRUSH_SIZE, Paintbrush_height, Paintbrush_shape, PAINTBRUSH_SHAPE_ANTISLASH, PAINTBRUSH_SHAPE_CROSS, PAINTBRUSH_SHAPE_DIAMOND, PAINTBRUSH_SHAPE_HORIZONTAL_BAR, PAINTBRUSH_SHAPE_MISC, PAINTBRUSH_SHAPE_PLUS, PAINTBRUSH_SHAPE_RANDOM, PAINTBRUSH_SHAPE_ROUND, PAINTBRUSH_SHAPE_SIEVE_ROUND, PAINTBRUSH_SHAPE_SIEVE_SQUARE, PAINTBRUSH_SHAPE_SLASH, PAINTBRUSH_SHAPE_SQUARE, PAINTBRUSH_SHAPE_VERTICAL_BAR, Paintbrush_width, and Set_paintbrush_size().
Referenced by Main_handler().
void Special_next_forecolor | ( | void | ) |
References Display_cursor(), Fore_color, Hide_cursor, and Set_fore_color().
Referenced by Main_handler().
void Special_previous_forecolor | ( | void | ) |
References Display_cursor(), Fore_color, Hide_cursor, and Set_fore_color().
Referenced by Main_handler().
void Special_next_backcolor | ( | void | ) |
References Back_color, Display_cursor(), Hide_cursor, and Set_back_color().
Referenced by Main_handler().
void Special_previous_backcolor | ( | void | ) |
References Back_color, Display_cursor(), Hide_cursor, and Set_back_color().
Referenced by Main_handler().
void Special_next_user_forecolor | ( | void | ) |
Picks the next foreground color, according to current shade table.
References Display_cursor(), Fore_color, Hide_cursor, Set_fore_color(), and Shade_table_left.
Referenced by Main_handler().
void Special_previous_user_forecolor | ( | void | ) |
Picks the previous foreground color, according to current shade table.
References Display_cursor(), Fore_color, Hide_cursor, Set_fore_color(), and Shade_table_right.
Referenced by Main_handler().
void Special_next_user_backcolor | ( | void | ) |
Picks the next background color, according to current shade table.
References Back_color, Display_cursor(), Hide_cursor, Set_back_color(), and Shade_table_left.
Referenced by Main_handler().
void Special_previous_user_backcolor | ( | void | ) |
Picks the previous background color, according to current shade table.
References Back_color, Display_cursor(), Hide_cursor, Set_back_color(), and Shade_table_right.
Referenced by Main_handler().
void Scroll_screen | ( | short | delta_x, |
short | delta_y | ||
) |
References Compute_limits(), Compute_paintbrush_coordinates(), Display_all_screen(), Display_cursor(), Hide_cursor, T_Document::image_height, T_Document::image_width, Main, Menu_Y, T_Document::offset_X, T_Document::offset_Y, and Screen_width.
Referenced by Main_handler(), and Pan_view_12_2().
void Scroll_magnifier | ( | short | delta_x, |
short | delta_y | ||
) |
References Clip_magnifier_offsets(), Compute_limits(), Compute_paintbrush_coordinates(), Display_all_screen(), Display_cursor(), Hide_cursor, T_Document::magnifier_offset_X, T_Document::magnifier_offset_Y, Main, and Position_screen_according_to_zoom().
Referenced by Main_handler(), and Pan_view_12_2().
void Zoom | ( | short | delta | ) |
References Change_magnifier_factor(), Display_all_screen(), Display_cursor(), Hide_cursor, T_Document::magnifier_factor, T_Document::magnifier_mode, Main, NB_ZOOM_FACTORS, and ZOOM_FACTOR.
Referenced by Draw_preset_sieve_patterns(), and Main_handler().
void Zoom_set | ( | int | index | ) |
Set zoom value.
Negative value means no zoom.
References BUTTON_MAGNIFIER, Change_magnifier_factor(), Display_all_screen(), Display_cursor(), Hide_cursor, T_Document::magnifier_mode, Main, Select_button(), and Unselect_button().
Referenced by Main_handler().
References Brush_container, BRUSH_CONTAINER_PREVIEW_HEIGHT, BRUSH_CONTAINER_PREVIEW_WIDTH, T_Brush_template::Colormap, T_Brush_template::Height, MC_Black, MC_Light, Paintbrush_shape, PAINTBRUSH_SHAPE_MAX, PAINTBRUSH_SHAPE_MISC, Pixel_in_window(), T_Brush_template::Thumbnail, Update_window_area, T_Brush_template::Width, and Window_rectangle().
Referenced by Button_Brush_container(), and Button_Paintbrush_menu().
void Store_brush | ( | int | index | ) |
Store the current brush in brush container.
References Back_color, Brush, T_Brush_template::Brush, Brush_colormap, Brush_container, BRUSH_CONTAINER_PREVIEW_HEIGHT, BRUSH_CONTAINER_PREVIEW_WIDTH, Brush_height, Brush_original_palette, Brush_original_pixels, Brush_width, Copy_part_of_image_to_another(), Error, T_Brush_template::Height, MAX_PAINTBRUSH_SIZE, NULL, Paintbrush_height, Paintbrush_shape, T_Brush_template::Paintbrush_shape, PAINTBRUSH_SHAPE_COLOR_BRUSH, PAINTBRUSH_SHAPE_MAX, PAINTBRUSH_SHAPE_MISC, PAINTBRUSH_SHAPE_MONO_BRUSH, Paintbrush_sprite, Paintbrush_width, Rescale(), T_Brush_template::Transp_color, and T_Brush_template::Width.
Referenced by Button_Brush_container(), and Button_Paintbrush_menu().
byte Restore_brush | ( | int | index | ) |
References Brush, Brush_colormap, Brush_container, BRUSH_CONTAINER_PREVIEW_HEIGHT, BRUSH_CONTAINER_PREVIEW_WIDTH, Brush_height, Brush_offset_X, Brush_offset_Y, Brush_original_palette, Brush_original_pixels, Brush_width, Change_paintbrush_shape(), T_Brush_template::Height, MAX_PAINTBRUSH_SIZE, NULL, Paintbrush_height, Paintbrush_offset_X, Paintbrush_offset_Y, Paintbrush_shape, T_Brush_template::Paintbrush_shape, PAINTBRUSH_SHAPE_COLOR_BRUSH, PAINTBRUSH_SHAPE_HORIZONTAL_BAR, PAINTBRUSH_SHAPE_MAX, PAINTBRUSH_SHAPE_MISC, PAINTBRUSH_SHAPE_MONO_BRUSH, PAINTBRUSH_SHAPE_VERTICAL_BAR, Paintbrush_sprite, Paintbrush_width, Realloc_brush(), Remap_general_lowlevel(), Set_paintbrush_size(), T_Brush_template::Thumbnail, and T_Brush_template::Width.
Referenced by Button_Brush_container(), and Button_Paintbrush_menu().
void Transparency_set | ( | byte | amount | ) |
Command that sets the transparency level.
References Colorize_current_mode, Colorize_mode, Colorize_opacity, Compute_colorize_table(), Config, T_Config::Double_key_speed, Effect_additive_colorize(), Effect_alpha_colorize(), Effect_function, Effect_interpolated_colorize(), Effect_substractive_colorize(), GFX2_GetTicks(), Quick_shade_mode, Shade_mode, Smooth_mode, and Tiling_mode.
Referenced by Main_handler().