GrafX2 2.9.3227
The ultimate 256-color painting program
shade.c File Reference
#include <string.h>
#include <stdlib.h>
#include "global.h"
#include "graph.h"
#include "engine.h"
#include "errors.h"
#include "misc.h"
#include "readline.h"
#include "help.h"
#include "screen.h"
#include "windows.h"
#include "input.h"
#include "shade.h"
#include "keycodes.h"
+ Include dependency graph for shade.c:

Functions

void Button_Shade_mode (void)
 Callback for the shade button (in the FX window). More...
 
void Button_Quick_shade_mode (void)
 Callback for the QSHade button (in the FX window). More...
 
void Shade_draw_grad_ranges (void)
 
void Tag_shades (word selection_start, word selection_end)
 
void Display_selected_cell_color (word selection_start, word selection_end)
 
void Display_selected_color (word selection_start, word selection_end)
 
void Display_shade_mode (short x, short y, byte mode)
 
void Display_all_shade (word selection_start1, word selection_end1, word selection_start2, word selection_end2)
 
void Remove_shade (word selection_start, word selection_end)
 
void Insert_shade (byte first_color, byte last_color, word selection_start)
 
void Insert_empty_cell_in_shade (word position)
 
short Wait_click_in_shade_table ()
 
void Swap_shade (short block_1_start, short block_2_start, short block_size)
 
int Menu_shade (void)
 
int Shade_settings_menu (void)
 Handles the screen with Shade settings. More...
 
void Button_Shade_menu (void)
 Callback for the Shade button (in the FX window) right click. More...
 
void Button_Quick_shade_menu (void)
 

Function Documentation

◆ Button_Shade_mode()

void Button_Shade_mode ( void  )

Callback for the shade button (in the FX window).

Toogle the shade mode.

References Colorize_mode, Effect_function, Effect_shade(), No_effect(), Quick_shade_mode, Shade_mode, Smear_mode, Smooth_mode, and Tiling_mode.

Referenced by Button_Effects(), Button_Shade_menu(), and Main_handler().

◆ Button_Quick_shade_mode()

void Button_Quick_shade_mode ( void  )

Callback for the QSHade button (in the FX window).

Toogle the Quick Shade effect.

References Colorize_mode, Effect_function, Effect_quick_shade(), No_effect(), Quick_shade_mode, Shade_mode, Smear_mode, Smooth_mode, and Tiling_mode.

Referenced by Button_Effects(), Button_Quick_shade_menu(), and Main_handler().

◆ Shade_draw_grad_ranges()

◆ Tag_shades()

void Tag_shades ( word  selection_start,
word  selection_end 
)

◆ Display_selected_cell_color()

void Display_selected_cell_color ( word  selection_start,
word  selection_end 
)

◆ Display_selected_color()

void Display_selected_color ( word  selection_start,
word  selection_end 
)

◆ Display_shade_mode()

void Display_shade_mode ( short  x,
short  y,
byte  mode 
)

◆ Display_all_shade()

void Display_all_shade ( word  selection_start1,
word  selection_end1,
word  selection_start2,
word  selection_end2 
)

◆ Remove_shade()

void Remove_shade ( word  selection_start,
word  selection_end 
)

References Shade_current, and Shade_list.

Referenced by Menu_shade().

◆ Insert_shade()

void Insert_shade ( byte  first_color,
byte  last_color,
word  selection_start 
)

References T_Shade::List, Shade_current, and Shade_list.

Referenced by Menu_shade().

◆ Insert_empty_cell_in_shade()

void Insert_empty_cell_in_shade ( word  position)

References T_Shade::List, Shade_current, and Shade_list.

Referenced by Menu_shade().

◆ Wait_click_in_shade_table()

◆ Swap_shade()

void Swap_shade ( short  block_1_start,
short  block_2_start,
short  block_size 
)

References T_Shade::List, Shade_current, and Shade_list.

Referenced by Menu_shade().

◆ Menu_shade()

◆ Shade_settings_menu()

int Shade_settings_menu ( void  )

Handles the screen with Shade settings.

Returns
true if user clicked ok, false if he cancelled

References Display_cursor(), Menu_shade(), Shade_current, Shade_list, Shade_list_to_lookup_tables(), Shade_table_left, and Shade_table_right.

Referenced by Button_Secondary_palette(), and Button_Shade_menu().

◆ Button_Shade_menu()

void Button_Shade_menu ( void  )

Callback for the Shade button (in the FX window) right click.

Displays the shade setup menu.

References Button_Shade_mode(), Shade_mode, and Shade_settings_menu().

Referenced by Button_Effects(), and Main_handler().

◆ Button_Quick_shade_menu()