GrafX2 2.9.3227
The ultimate 256-color painting program
init.h File Reference

Initialization (and some de-initialization) functions. More...

+ This graph shows which files directly or indirectly include this file:

Functions

T_Gui_skinLoad_graphics (const char *skin_file, T_Gradient_array *gradients)
 
void Set_current_skin (const char *skinfile, T_Gui_skin *gfx)
 
void Init_buttons (void)
 
void Init_operations (void)
 
void Init_brush_container (void)
 
int Load_CFG (int reload_all)
 
int Save_CFG (void)
 
void Set_all_video_modes (void)
 
void Set_config_defaults (void)
 
void Init_sighandler (void)
 
void Init_paintbrushes (void)
 
void Define_icon (void)
 Set application icon(s) More...
 
byteLoad_font (const char *font_name, int is_main)
 Loads a 8x8 monochrome font, the kind used in all menus and screens. More...
 
void Load_Unicode_fonts (void)
 Load fonts for additional Unicode characters. More...
 

Variables

char Gui_loading_error_message [256]
 

Detailed Description

Initialization (and some de-initialization) functions.

Function Documentation

◆ Load_graphics()

T_Gui_skin * Load_graphics ( const char *  skin_file,
T_Gradient_array gradients 
)

◆ Set_current_skin()

◆ Init_buttons()

◆ Init_operations()

void Init_operations ( void  )

References Airbrush_0_2(), Airbrush_12_2(), Airbrush_1_0(), Airbrush_2_0(), Brush_0_5(), Brush_12_0(), Brush_12_5(), Centered_lines_0_3(), Centered_lines_0_7(), Centered_lines_12_0(), Centered_lines_12_3(), Centered_lines_12_7(), Circle_12_0(), Circle_12_5(), Colorpicker_0_1(), Colorpicker_12_0(), Colorpicker_1_1(), Colorpicker_2_1(), Colorpicker_color, Curve_34_points_1_0(), Curve_34_points_1_5(), Curve_34_points_2_0(), Curve_34_points_2_5(), Curve_3_points_0_11(), Curve_3_points_0_5(), Curve_3_points_12_11(), Curve_4_points_0_5(), Curve_4_points_1_9(), Curve_4_points_2_9(), Distort_brush_0_0(), Distort_brush_0_9(), Distort_brush_1_0(), Distort_brush_1_8(), Distort_brush_1_9(), Distort_brush_2_0(), Distort_brush_2_8(), Ellipse_12_0(), Ellipse_12_5(), Empty_circle_0_5(), Empty_ellipse_0_5(), Empty_rectangle_0_5(), FAST_MOUSE, Fill_1_0(), Fill_2_0(), Filled_circle_0_5(), Filled_contour_0_8(), Filled_ellipse_0_5(), Filled_polyform_0_8(), Filled_polyform_12_0(), Filled_polyform_12_8(), Filled_rectangle_0_5(), Freehand_mode12_0_2(), Freehand_mode1_1_0(), Freehand_mode1_1_2(), Freehand_mode1_2_0(), Freehand_mode1_2_2(), Freehand_mode2_1_0(), Freehand_mode2_1_2(), Freehand_mode2_2_0(), Freehand_mode2_2_2(), Freehand_mode3_0_1(), Freehand_mode3_1_0(), Freehand_Mode3_2_0(), Grad_circle_0_6(), Grad_circle_12_0(), Grad_circle_12_6(), Grad_circle_12_8(), Grad_circle_or_ellipse_0_8(), Grad_ellipse_0_6(), Grad_ellipse_12_0(), Grad_ellipse_12_6(), Grad_ellipse_12_8(), Grad_rectangle_0_5(), Grad_rectangle_0_7(), Grad_rectangle_0_9(), Grad_rectangle_12_0(), Grad_rectangle_12_5(), Grad_rectangle_12_7(), Grad_rectangle_12_9(), HIDE_CURSOR, Init_operation(), K_line_0_6(), K_line_12_0(), K_line_12_6(), K_line_12_7(), Line_0_5(), Line_12_0(), Line_12_5(), Magnifier_12_0(), NB_OPERATIONS, OPERATION_3_POINTS_CURVE, OPERATION_4_POINTS_CURVE, OPERATION_AIRBRUSH, OPERATION_CENTERED_LINES, OPERATION_COLORPICK, OPERATION_CONTINUOUS_DRAW, OPERATION_DISCONTINUOUS_DRAW, OPERATION_DISTORT_BRUSH, OPERATION_EMPTY_CIRCLE_CRN, OPERATION_EMPTY_CIRCLE_CTR, OPERATION_EMPTY_ELLIPSE_CRN, OPERATION_EMPTY_ELLIPSE_CTR, OPERATION_EMPTY_RECTANGLE, OPERATION_FILL, OPERATION_FILLED_CIRCLE_CRN, OPERATION_FILLED_CIRCLE_CTR, OPERATION_FILLED_CONTOUR, OPERATION_FILLED_ELLIPSE_CRN, OPERATION_FILLED_ELLIPSE_CTR, OPERATION_FILLED_POLYFORM, OPERATION_FILLED_RECTANGLE, OPERATION_GRAB_BRUSH, OPERATION_GRAD_CIRCLE_CRN, OPERATION_GRAD_CIRCLE_CTR, OPERATION_GRAD_ELLIPSE_CRN, OPERATION_GRAD_ELLIPSE_CTR, OPERATION_GRAD_RECTANGLE, OPERATION_K_LINE, OPERATION_LINE, OPERATION_MAGNIFY, OPERATION_PAN_VIEW, OPERATION_POINT_DRAW, OPERATION_POLYBRUSH, OPERATION_POLYFILL, OPERATION_POLYFORM, OPERATION_POLYGON, OPERATION_REPLACE, OPERATION_RMB_COLORPICK, OPERATION_ROTATE_BRUSH, OPERATION_SCROLL, OPERATION_STACK_SIZE, OPERATION_STRETCH_BRUSH, Pan_view_0_0(), Pan_view_0_2(), Pan_view_12_0(), Pan_view_12_2(), Polybrush_12_8(), Polyfill_0_8(), Polyfill_12_0(), Polyfill_12_8(), Polyfill_12_9(), Polyform_0_8(), Polyform_12_0(), Polyform_12_8(), Polygon_12_0(), Polygon_12_9(), Print_coordinates(), Rectangle_12_0(), Rectangle_12_5(), Replace_1_0(), Replace_2_0(), Rightclick_colorpick_0_1(), Rotate_brush_0_5(), Rotate_brush_12_0(), Rotate_brush_1_5(), Rotate_brush_2_5(), Scroll_0_5(), Scroll_12_0(), Scroll_12_5(), Stretch_brush_0_7(), Stretch_brush_12_0(), Stretch_brush_1_7(), and Stretch_brush_2_7().

Referenced by Init_program().

◆ Init_brush_container()

◆ Load_CFG()

◆ Save_CFG()

◆ Set_all_video_modes()

◆ Set_config_defaults()

◆ Init_sighandler()

void Init_sighandler ( void  )

Referenced by Init_program().

◆ Init_paintbrushes()

◆ Define_icon()

◆ Load_font()

byte * Load_font ( const char *  font_name,
int  is_main 
)

Loads a 8x8 monochrome font, the kind used in all menus and screens.

This function allocates the memory, and returns a pointer to it when successful. If an error is encountered, it frees what needs it, prints an error message in Gui_loading_error_message, and returns NULL.

References Data_directory, Free_GFX2_Surface(), GFX2_malloc, Gui_loading_error_message, Load_surface(), NULL, Parse_font(), and SKINS_SUBDIRECTORY.

Referenced by Button_Skins(), Init_program(), and Load_Unicode_font().

◆ Load_Unicode_fonts()

void Load_Unicode_fonts ( void  )

Load fonts for additional Unicode characters.

References Data_directory, Filepath_append_to_dir(), For_each_file(), Load_Unicode_font(), and SKINS_SUBDIRECTORY.

Referenced by Init_program().

Variable Documentation

◆ Gui_loading_error_message