fltk.core.shim

FLTK C Shim Bindings

This module provides D bindings to the FLTK C shim library, which wraps the FLTK C++ toolkit with a stable C ABI. All FLTK objects are represented as opaque handles.

Memory Management:

  • Objects created with *_new() functions must be destroyed with *_delete()
  • The shim owns the underlying C++ objects
  • Handles become invalid after deletion

Thread Safety:

  • FLTK is not thread-safe; all GUI operations must occur on the main thread
  • Callbacks may be invoked from the main thread during event processing

Example:

import fltk.core.shim;

void main() {
   auto window = fltk_window_new(300, 200, "Hello");
   if (window) {
      fltk_window_show(window);
      fltk_run();
      fltk_window_delete(window);
   }
}

Authors

Dejan Lekić

License

BSD-3-Clause
fn fltk_abi_version fltk_add_check fltk_add_fd fltk_add_fd_read fltk_add_idle fltk_add_timeout fltk_adjuster_as_widget fltk_adjuster_delete fltk_adjuster_maximum fltk_adjuster_minimum fltk_adjuster_new fltk_adjuster_set_maximum fltk_adjuster_set_minimum fltk_adjuster_set_value fltk_adjuster_value fltk_alert fltk_api_version fltk_ask fltk_awake fltk_background fltk_background2 fltk_beep fltk_begin_complex_polygon fltk_begin_line fltk_begin_loop fltk_begin_polygon fltk_belowmouse fltk_bitmap_as_image fltk_bitmap_delete fltk_bitmap_new fltk_box_as_widget fltk_box_delete fltk_box_new fltk_browser_add fltk_browser_clear fltk_browser_deselect fltk_browser_insert fltk_browser_make_visible fltk_browser_remove fltk_browser_select fltk_browser_selected fltk_browser_set_text fltk_browser_set_topline fltk_browser_set_value fltk_browser_size fltk_browser_text fltk_browser_topline fltk_browser_value fltk_button_as_widget fltk_button_delete fltk_button_new fltk_button_set_value fltk_button_value fltk_can_do_alpha_blending fltk_chart_add fltk_chart_as_widget fltk_chart_autosize fltk_chart_bounds fltk_chart_clear fltk_chart_delete fltk_chart_get_type fltk_chart_insert fltk_chart_maxsize fltk_chart_new fltk_chart_replace fltk_chart_set_autosize fltk_chart_set_bounds fltk_chart_set_maxsize fltk_chart_set_textcolor fltk_chart_set_textfont fltk_chart_set_textsize fltk_chart_set_type fltk_chart_size fltk_chart_textcolor fltk_chart_textfont fltk_chart_textsize fltk_check fltk_check_browser_add fltk_check_browser_add_checked fltk_check_browser_as_widget fltk_check_browser_check_all fltk_check_browser_check_none fltk_check_browser_checked fltk_check_browser_clear fltk_check_browser_delete fltk_check_browser_nchecked fltk_check_browser_new fltk_check_browser_nitems fltk_check_browser_remove fltk_check_browser_set_checked fltk_check_browser_text fltk_check_browser_value fltk_check_button_as_widget fltk_check_button_delete fltk_check_button_new fltk_check_button_set_value fltk_check_button_value fltk_choice_add fltk_choice_as_widget fltk_choice_clear fltk_choice_delete fltk_choice_dialog fltk_choice_new fltk_choice_set_value fltk_choice_text fltk_choice_value fltk_clock_as_widget fltk_clock_delete fltk_clock_get_type fltk_clock_hour fltk_clock_minute fltk_clock_new fltk_clock_new_with_type fltk_clock_second fltk_clock_set_type fltk_clock_set_value fltk_clock_set_value_hms fltk_clock_value fltk_color_average fltk_color_chooser_as_group fltk_color_chooser_as_widget fltk_color_chooser_b fltk_color_chooser_delete fltk_color_chooser_dialog fltk_color_chooser_g fltk_color_chooser_hsv fltk_color_chooser_hsv2rgb fltk_color_chooser_hue fltk_color_chooser_mode fltk_color_chooser_new fltk_color_chooser_r fltk_color_chooser_rgb fltk_color_chooser_rgb2hsv fltk_color_chooser_saturation fltk_color_chooser_set_mode fltk_color_chooser_value fltk_compose fltk_compose_reset fltk_contrast fltk_copy fltk_copy_surface_delete fltk_copy_surface_draw fltk_copy_surface_draw_decorated_window fltk_copy_surface_h fltk_copy_surface_new fltk_copy_surface_set_current fltk_copy_surface_w fltk_counter_as_widget fltk_counter_delete fltk_counter_get_type fltk_counter_maximum fltk_counter_minimum fltk_counter_new fltk_counter_set_maximum fltk_counter_set_minimum fltk_counter_set_step fltk_counter_set_type fltk_counter_set_value fltk_counter_value fltk_cursor fltk_cursor_color fltk_custom_widget_as_widget fltk_custom_widget_delete fltk_custom_widget_new fltk_custom_widget_redraw fltk_custom_widget_set_draw_callback fltk_custom_widget_set_handle_callback fltk_damage fltk_decode_uri fltk_dial_angle1 fltk_dial_angle2 fltk_dial_angles fltk_dial_as_widget fltk_dial_delete fltk_dial_maximum fltk_dial_minimum fltk_dial_new fltk_dial_set_angle1 fltk_dial_set_angle2 fltk_dial_set_maximum fltk_dial_set_minimum fltk_dial_set_range fltk_dial_set_type fltk_dial_set_value fltk_dial_type fltk_dial_value fltk_display fltk_dnd fltk_double_window_as_window fltk_double_window_delete fltk_double_window_new fltk_draw_arc fltk_draw_box fltk_draw_circle fltk_draw_color fltk_draw_color_rgb fltk_draw_descent fltk_draw_font fltk_draw_get_color fltk_draw_height fltk_draw_image fltk_draw_image_mono fltk_draw_line fltk_draw_measure fltk_draw_pie fltk_draw_point fltk_draw_rect fltk_draw_rectf fltk_draw_rectf_rgb fltk_draw_symbol fltk_draw_text fltk_draw_width fltk_end_complex_polygon fltk_end_line fltk_end_loop fltk_end_polygon fltk_event_button fltk_event_clicks fltk_event_inside_rect fltk_event_inside_widget fltk_event_is_click fltk_event_key fltk_event_length fltk_event_original_key fltk_event_set_is_click fltk_event_state fltk_event_text fltk_event_x fltk_event_x_root fltk_event_y fltk_event_y_root fltk_file_browser_as_widget fltk_file_browser_delete fltk_file_browser_filetype fltk_file_browser_filter fltk_file_browser_load fltk_file_browser_new fltk_file_browser_set_filetype fltk_file_browser_set_filter fltk_file_icon_add fltk_file_icon_add_color fltk_file_icon_add_vertex fltk_file_icon_add_vertex_float fltk_file_icon_clear fltk_file_icon_delete fltk_file_icon_draw fltk_file_icon_find fltk_file_icon_first fltk_file_icon_label fltk_file_icon_load fltk_file_icon_load_fti fltk_file_icon_load_image fltk_file_icon_load_system_icons fltk_file_icon_new fltk_file_icon_next fltk_file_icon_pattern fltk_file_icon_size fltk_file_icon_type fltk_file_icon_value fltk_file_input_as_widget fltk_file_input_delete fltk_file_input_new fltk_file_input_set_value fltk_file_input_value fltk_filename_absolute fltk_filename_expand fltk_filename_ext fltk_filename_isdir fltk_filename_match fltk_filename_name fltk_filename_relative fltk_filename_setext fltk_first_window fltk_float_input_as_widget fltk_float_input_delete fltk_float_input_new fltk_float_input_set_value fltk_float_input_value fltk_focus fltk_foreground fltk_frame fltk_frame2 fltk_gap fltk_get_key fltk_get_mouse fltk_get_system_colors fltk_gl_color fltk_gl_descent fltk_gl_draw fltk_gl_draw_at fltk_gl_draw_at_f fltk_gl_draw_image fltk_gl_draw_in_box fltk_gl_draw_n fltk_gl_finish fltk_gl_font fltk_gl_height fltk_gl_measure fltk_gl_rect fltk_gl_rectf fltk_gl_start fltk_gl_width fltk_gl_width_n fltk_grab fltk_group_add fltk_group_as_widget fltk_group_begin fltk_group_child fltk_group_children fltk_group_delete fltk_group_end fltk_group_new fltk_group_remove fltk_has_check fltk_has_idle fltk_has_timeout fltk_help_dialog_delete fltk_help_dialog_h fltk_help_dialog_hide fltk_help_dialog_load fltk_help_dialog_new fltk_help_dialog_position fltk_help_dialog_resize fltk_help_dialog_set_textsize fltk_help_dialog_set_value fltk_help_dialog_show fltk_help_dialog_textsize fltk_help_dialog_topline fltk_help_dialog_topline_name fltk_help_dialog_value fltk_help_dialog_visible fltk_help_dialog_w fltk_help_dialog_x fltk_help_dialog_y fltk_help_view_as_widget fltk_help_view_delete fltk_help_view_get_textcolor fltk_help_view_get_textsize fltk_help_view_get_value fltk_help_view_load fltk_help_view_new fltk_help_view_textcolor fltk_help_view_textsize fltk_help_view_value fltk_hold_browser_as_widget fltk_hold_browser_delete fltk_hold_browser_new fltk_image_surface_delete fltk_image_surface_draw fltk_image_surface_draw_decorated_window fltk_image_surface_highres_image fltk_image_surface_image fltk_image_surface_new fltk_image_surface_set_current fltk_inactive_color fltk_input_as_widget fltk_input_choice_add fltk_input_choice_as_widget fltk_input_choice_clear fltk_input_choice_delete fltk_input_choice_new fltk_input_choice_set_value fltk_input_choice_value fltk_input_delete fltk_input_dialog fltk_input_new fltk_input_set_value fltk_input_value fltk_int_input_as_widget fltk_int_input_delete fltk_int_input_new fltk_int_input_set_value fltk_int_input_value fltk_latin1_to_local fltk_light_button_as_widget fltk_light_button_delete fltk_light_button_new fltk_light_button_set_value fltk_light_button_value fltk_local_to_latin1 fltk_local_to_mac_roman fltk_lock fltk_loop3 fltk_loop4 fltk_mac_roman_to_local fltk_menu_bar_add fltk_menu_bar_as_widget fltk_menu_bar_clear fltk_menu_bar_delete fltk_menu_bar_new fltk_menu_button_add fltk_menu_button_as_widget fltk_menu_button_clear fltk_menu_button_delete fltk_menu_button_new fltk_menu_window_as_window fltk_menu_window_clear_overlay fltk_menu_window_delete fltk_menu_window_new fltk_menu_window_new_xy fltk_menu_window_overlay fltk_menu_window_set_overlay fltk_message fltk_modal fltk_multi_browser_as_widget fltk_multi_browser_delete fltk_multi_browser_new fltk_multi_label_delete fltk_multi_label_label_menu_item fltk_multi_label_label_widget fltk_multi_label_new fltk_multi_label_set_labela_image fltk_multi_label_set_labela_text fltk_multi_label_set_labelb_image fltk_multi_label_set_labelb_text fltk_multi_label_typea fltk_multi_label_typeb fltk_multiline_input_as_widget fltk_multiline_input_delete fltk_multiline_input_new fltk_multiline_input_set_value fltk_multiline_input_value fltk_multiline_output_as_widget fltk_multiline_output_delete fltk_multiline_output_new fltk_multiline_output_set_value fltk_multiline_output_value fltk_native_file_chooser_count fltk_native_file_chooser_delete fltk_native_file_chooser_directory fltk_native_file_chooser_errmsg fltk_native_file_chooser_filename fltk_native_file_chooser_filter fltk_native_file_chooser_new fltk_native_file_chooser_preset_file fltk_native_file_chooser_set_directory fltk_native_file_chooser_set_filter fltk_native_file_chooser_set_preset_file fltk_native_file_chooser_set_title fltk_native_file_chooser_show fltk_native_file_chooser_title fltk_next_window fltk_not_clipped fltk_open_uri fltk_option fltk_output_as_widget fltk_output_delete fltk_output_new fltk_output_set_value fltk_output_value fltk_overlay_clear fltk_overlay_rect fltk_own_colormap fltk_pack_as_group fltk_pack_as_widget fltk_pack_begin fltk_pack_delete fltk_pack_end fltk_pack_new fltk_pack_set_spacing fltk_pack_set_type fltk_password_dialog fltk_paste fltk_pixmap_as_image fltk_pixmap_delete fltk_pixmap_new fltk_plugin_delete fltk_plugin_manager_add_plugin fltk_plugin_manager_delete fltk_plugin_manager_load fltk_plugin_manager_load_all fltk_plugin_manager_new fltk_plugin_manager_plugin_by_index fltk_plugin_manager_plugin_by_name fltk_plugin_manager_plugins fltk_plugin_manager_remove_plugin fltk_plugin_new fltk_pnm_image_as_image fltk_pnm_image_delete fltk_pnm_image_fail fltk_pnm_image_new fltk_polygon3 fltk_polygon4 fltk_pop_clip fltk_positioner_as_widget fltk_positioner_delete fltk_positioner_new fltk_positioner_set_xmaximum fltk_positioner_set_xminimum fltk_positioner_set_xstep fltk_positioner_set_xvalue fltk_positioner_set_ymaximum fltk_positioner_set_yminimum fltk_positioner_set_ystep fltk_positioner_set_yvalue fltk_positioner_value fltk_positioner_xbounds fltk_positioner_xmaximum fltk_positioner_xminimum fltk_positioner_xvalue fltk_positioner_ybounds fltk_positioner_ymaximum fltk_positioner_yminimum fltk_positioner_yvalue fltk_postscript_delete fltk_postscript_end_job fltk_postscript_end_page fltk_postscript_file_device_delete fltk_postscript_file_device_end_job fltk_postscript_file_device_end_page fltk_postscript_file_device_get_origin fltk_postscript_file_device_margins fltk_postscript_file_device_new fltk_postscript_file_device_print_widget fltk_postscript_file_device_print_window fltk_postscript_file_device_printable_rect fltk_postscript_file_device_rotate fltk_postscript_file_device_scale fltk_postscript_file_device_set_current fltk_postscript_file_device_set_origin fltk_postscript_file_device_start_job_file fltk_postscript_file_device_start_page fltk_postscript_file_device_translate fltk_postscript_file_device_untranslate fltk_postscript_get_origin fltk_postscript_margins fltk_postscript_new fltk_postscript_print_widget fltk_postscript_print_window fltk_postscript_printable_rect fltk_postscript_rotate fltk_postscript_scale fltk_postscript_set_current fltk_postscript_set_origin fltk_postscript_start_job fltk_postscript_start_job_file fltk_postscript_start_page fltk_postscript_translate fltk_postscript_untranslate fltk_preferences_clear fltk_preferences_delete fltk_preferences_delete_all_entries fltk_preferences_delete_all_groups fltk_preferences_delete_entry fltk_preferences_delete_group fltk_preferences_entries fltk_preferences_entry fltk_preferences_entry_exists fltk_preferences_flush fltk_preferences_get_double fltk_preferences_get_float fltk_preferences_get_int fltk_preferences_get_string fltk_preferences_get_userdata_path fltk_preferences_group fltk_preferences_group_exists fltk_preferences_groups fltk_preferences_new fltk_preferences_new_group fltk_preferences_new_uuid fltk_preferences_new_with_path fltk_preferences_set_double fltk_preferences_set_float fltk_preferences_set_int fltk_preferences_set_string fltk_preferences_size fltk_printer_delete fltk_printer_end_job fltk_printer_end_page fltk_printer_get_origin fltk_printer_is_supported fltk_printer_margins fltk_printer_new fltk_printer_print_widget fltk_printer_print_window fltk_printer_printable_rect fltk_printer_rotate fltk_printer_scale fltk_printer_set_current fltk_printer_set_origin fltk_printer_start_job fltk_printer_start_page fltk_printer_translate fltk_printer_untranslate fltk_progress_as_widget fltk_progress_delete fltk_progress_new fltk_progress_set_maximum fltk_progress_set_minimum fltk_progress_set_value fltk_progress_value fltk_push_clip fltk_push_no_clip fltk_pushed fltk_radio_button_as_widget fltk_radio_button_delete fltk_radio_button_new fltk_radio_button_set_value fltk_radio_button_value fltk_radio_light_button_as_widget fltk_radio_light_button_delete fltk_radio_light_button_new fltk_radio_light_button_set_value fltk_radio_light_button_value fltk_radio_round_button_as_widget fltk_radio_round_button_delete fltk_radio_round_button_new fltk_radio_round_button_set_value fltk_radio_round_button_value fltk_read_image fltk_ready fltk_redraw fltk_release fltk_remove_check fltk_remove_fd fltk_remove_fd_all fltk_remove_idle fltk_remove_timeout fltk_repeat_button_as_widget fltk_repeat_button_delete fltk_repeat_button_new fltk_repeat_timeout fltk_return_button_as_widget fltk_return_button_delete fltk_return_button_new fltk_roller_as_widget fltk_roller_delete fltk_roller_maximum fltk_roller_minimum fltk_roller_new fltk_roller_set_maximum fltk_roller_set_minimum fltk_roller_set_value fltk_roller_value fltk_round_button_as_widget fltk_round_button_delete fltk_round_button_new fltk_round_button_set_value fltk_round_button_value fltk_run fltk_scheme fltk_screen_count fltk_screen_dpi fltk_screen_work_area fltk_screen_xywh fltk_scroll fltk_scroll_as_group fltk_scroll_as_widget fltk_scroll_begin fltk_scroll_delete fltk_scroll_end fltk_scroll_new fltk_scroll_scroll_to fltk_scroll_xposition fltk_scroll_yposition fltk_scrollbar_as_widget fltk_scrollbar_delete fltk_scrollbar_maximum fltk_scrollbar_minimum fltk_scrollbar_new fltk_scrollbar_set_maximum fltk_scrollbar_set_minimum fltk_scrollbar_set_value fltk_scrollbar_size fltk_scrollbar_value fltk_secret_input_as_widget fltk_secret_input_delete fltk_secret_input_new fltk_secret_input_set_value fltk_secret_input_value fltk_select_browser_as_widget fltk_select_browser_delete fltk_select_browser_new fltk_set_belowmouse fltk_set_focus fltk_set_grab fltk_set_option fltk_set_pushed fltk_set_scheme fltk_set_scrollbar_size fltk_shortcut_label fltk_show_colormap fltk_single_window_as_window fltk_single_window_delete fltk_single_window_new fltk_single_window_new_xy fltk_slider_as_widget fltk_slider_delete fltk_slider_get_type fltk_slider_new fltk_slider_set_range fltk_slider_set_step fltk_slider_set_type fltk_slider_set_value fltk_slider_value fltk_spinner_as_widget fltk_spinner_delete fltk_spinner_maximum fltk_spinner_minimum fltk_spinner_new fltk_spinner_set_maximum fltk_spinner_set_minimum fltk_spinner_set_step fltk_spinner_set_value fltk_spinner_value fltk_sys_menu_bar_add fltk_sys_menu_bar_as_widget fltk_sys_menu_bar_clear fltk_sys_menu_bar_clear_submenu fltk_sys_menu_bar_delete fltk_sys_menu_bar_insert fltk_sys_menu_bar_mode fltk_sys_menu_bar_new fltk_sys_menu_bar_remove fltk_sys_menu_bar_replace fltk_sys_menu_bar_set_mode fltk_sys_menu_bar_shortcut fltk_sys_menu_bar_update fltk_table_as_group fltk_table_as_widget fltk_table_callback_col fltk_table_callback_context fltk_table_callback_row fltk_table_clear fltk_table_col_header fltk_table_col_header_color fltk_table_col_header_height fltk_table_col_position fltk_table_col_resize fltk_table_col_resize_min fltk_table_col_width fltk_table_col_width_all fltk_table_cols fltk_table_delete fltk_table_get_col_header fltk_table_get_col_header_color fltk_table_get_col_header_height fltk_table_get_col_position fltk_table_get_col_resize fltk_table_get_col_resize_min fltk_table_get_col_width fltk_table_get_cols fltk_table_get_row_header fltk_table_get_row_header_color fltk_table_get_row_header_width fltk_table_get_row_height fltk_table_get_row_position fltk_table_get_row_resize fltk_table_get_row_resize_min fltk_table_get_rows fltk_table_get_selection fltk_table_get_table_box fltk_table_is_interactive_resize fltk_table_is_selected fltk_table_move_cursor fltk_table_new fltk_table_redraw fltk_table_row_as_group fltk_table_row_as_widget fltk_table_row_callback_col fltk_table_row_callback_context fltk_table_row_callback_row fltk_table_row_clear fltk_table_row_col_header fltk_table_row_col_header_color fltk_table_row_col_header_height fltk_table_row_col_position fltk_table_row_col_resize fltk_table_row_col_resize_min fltk_table_row_col_width fltk_table_row_col_width_all fltk_table_row_cols fltk_table_row_delete fltk_table_row_get_col_header fltk_table_row_get_col_header_color fltk_table_row_get_col_header_height fltk_table_row_get_col_position fltk_table_row_get_col_resize fltk_table_row_get_col_resize_min fltk_table_row_get_col_width fltk_table_row_get_cols fltk_table_row_get_row_header fltk_table_row_get_row_header_color fltk_table_row_get_row_header_width fltk_table_row_get_row_height fltk_table_row_get_row_position fltk_table_row_get_row_resize fltk_table_row_get_row_resize_min fltk_table_row_get_rows fltk_table_row_get_selection fltk_table_row_get_table_box fltk_table_row_get_type fltk_table_row_header fltk_table_row_header_color fltk_table_row_header_width fltk_table_row_height fltk_table_row_height_all fltk_table_row_is_interactive_resize fltk_table_row_is_selected fltk_table_row_move_cursor fltk_table_row_new fltk_table_row_position fltk_table_row_redraw fltk_table_row_resize fltk_table_row_resize_min fltk_table_row_row_header fltk_table_row_row_header_color fltk_table_row_row_header_width fltk_table_row_row_height fltk_table_row_row_height_all fltk_table_row_row_position fltk_table_row_row_resize fltk_table_row_row_resize_min fltk_table_row_row_selected fltk_table_row_rows fltk_table_row_select_all_rows fltk_table_row_select_row fltk_table_row_set_draw_cell_callback fltk_table_row_set_selection fltk_table_row_table_box fltk_table_row_type fltk_table_row_visible_cells fltk_table_rows fltk_table_set_draw_cell_callback fltk_table_set_selection fltk_table_table_box fltk_table_visible_cells fltk_tabs_as_group fltk_tabs_as_widget fltk_tabs_begin fltk_tabs_delete fltk_tabs_end fltk_tabs_new fltk_tabs_set_value fltk_tabs_value fltk_text_buffer_append fltk_text_buffer_delete fltk_text_buffer_free_text fltk_text_buffer_insert fltk_text_buffer_length fltk_text_buffer_new fltk_text_buffer_remove fltk_text_buffer_set_text fltk_text_buffer_text fltk_text_display_as_widget fltk_text_display_buffer fltk_text_display_cursor_color fltk_text_display_delete fltk_text_display_get_linenumber_width fltk_text_display_get_textcolor fltk_text_display_get_textfont fltk_text_display_get_textsize fltk_text_display_highlight_data fltk_text_display_linenumber_width fltk_text_display_new fltk_text_display_scroll fltk_text_display_set_buffer fltk_text_display_show_cursor fltk_text_display_textcolor fltk_text_display_textfont fltk_text_display_textsize fltk_text_display_wrap_mode fltk_text_editor_as_widget fltk_text_editor_buffer fltk_text_editor_copy fltk_text_editor_cut fltk_text_editor_delete fltk_text_editor_insert fltk_text_editor_new fltk_text_editor_paste fltk_text_editor_set_buffer fltk_text_extents fltk_tile_as_group fltk_tile_as_widget fltk_tile_delete fltk_tile_end fltk_tile_new fltk_tiled_image_as_image fltk_tiled_image_delete fltk_tiled_image_new fltk_toggle_button_as_widget fltk_toggle_button_delete fltk_toggle_button_new fltk_toggle_button_set_value fltk_toggle_button_value fltk_toggle_light_button_as_widget fltk_toggle_light_button_delete fltk_toggle_light_button_new fltk_toggle_light_button_set_value fltk_toggle_light_button_value fltk_toggle_round_button_as_widget fltk_toggle_round_button_delete fltk_toggle_round_button_new fltk_toggle_round_button_set_value fltk_toggle_round_button_value fltk_tooltip_color fltk_tooltip_current fltk_tooltip_delay fltk_tooltip_disable fltk_tooltip_enable fltk_tooltip_enabled fltk_tooltip_enter_area fltk_tooltip_font fltk_tooltip_hoverdelay fltk_tooltip_margin_height fltk_tooltip_margin_width fltk_tooltip_set_color fltk_tooltip_set_current fltk_tooltip_set_delay fltk_tooltip_set_font fltk_tooltip_set_hoverdelay fltk_tooltip_set_margin_height fltk_tooltip_set_margin_width fltk_tooltip_set_size fltk_tooltip_set_textcolor fltk_tooltip_set_wrap_width fltk_tooltip_size fltk_tooltip_textcolor fltk_tooltip_wrap_width fltk_tree_add fltk_tree_as_widget fltk_tree_clear fltk_tree_clear_children fltk_tree_close fltk_tree_connectorcolor fltk_tree_connectorstyle fltk_tree_connectorwidth fltk_tree_delete fltk_tree_deselect fltk_tree_deselect_all fltk_tree_find_item fltk_tree_first fltk_tree_first_selected_item fltk_tree_is_open fltk_tree_is_selected fltk_tree_item_array_add fltk_tree_item_array_clear fltk_tree_item_array_delete fltk_tree_item_array_get fltk_tree_item_array_insert fltk_tree_item_array_move fltk_tree_item_array_new fltk_tree_item_array_remove fltk_tree_item_array_replace fltk_tree_item_array_swap fltk_tree_item_array_total fltk_tree_item_child fltk_tree_item_children fltk_tree_item_depth fltk_tree_item_has_children fltk_tree_item_label fltk_tree_item_labelbgcolor fltk_tree_item_labelfgcolor fltk_tree_item_labelfont fltk_tree_item_labelsize fltk_tree_item_parent fltk_tree_item_set_label fltk_tree_labelmarginleft fltk_tree_linespacing fltk_tree_marginleft fltk_tree_margintop fltk_tree_new fltk_tree_next fltk_tree_next_selected_item fltk_tree_open fltk_tree_openchild_marginbottom fltk_tree_redraw fltk_tree_remove fltk_tree_root fltk_tree_select fltk_tree_selectbox fltk_tree_selectmode fltk_tree_set_connectorcolor fltk_tree_set_connectorstyle fltk_tree_set_connectorwidth fltk_tree_set_item_labelbgcolor fltk_tree_set_item_labelfgcolor fltk_tree_set_item_labelfont fltk_tree_set_item_labelsize fltk_tree_set_labelmarginleft fltk_tree_set_linespacing fltk_tree_set_marginleft fltk_tree_set_margintop fltk_tree_set_openchild_marginbottom fltk_tree_set_selectbox fltk_tree_set_selectmode fltk_tree_set_showcollapse fltk_tree_set_sortorder fltk_tree_set_usericonmarginleft fltk_tree_showcollapse fltk_tree_showroot fltk_tree_sortorder fltk_tree_usericonmarginleft fltk_unlock fltk_valuator_bounds fltk_valuator_clamp fltk_valuator_format fltk_valuator_increment fltk_valuator_maximum fltk_valuator_minimum fltk_valuator_precision fltk_valuator_range fltk_valuator_round fltk_valuator_set_maximum fltk_valuator_set_minimum fltk_valuator_set_step fltk_valuator_set_step_fraction fltk_valuator_set_value fltk_valuator_step fltk_valuator_value fltk_value_input_as_widget fltk_value_input_delete fltk_value_input_maximum fltk_value_input_minimum fltk_value_input_new fltk_value_input_set_maximum fltk_value_input_set_minimum fltk_value_input_set_value fltk_value_input_value fltk_value_output_as_widget fltk_value_output_delete fltk_value_output_maximum fltk_value_output_minimum fltk_value_output_new fltk_value_output_set_maximum fltk_value_output_set_minimum fltk_value_output_set_value fltk_value_output_value fltk_value_slider_as_widget fltk_value_slider_delete fltk_value_slider_new fltk_value_slider_set_maximum fltk_value_slider_set_minimum fltk_value_slider_set_range fltk_value_slider_set_step fltk_value_slider_set_type fltk_value_slider_set_value fltk_value_slider_value fltk_version fltk_vertex fltk_vertices fltk_visual fltk_wait fltk_widget_activate fltk_widget_active fltk_widget_deactivate fltk_widget_h fltk_widget_hide fltk_widget_label fltk_widget_redraw fltk_widget_resize fltk_widget_set_callback fltk_widget_set_label fltk_widget_show fltk_widget_visible fltk_widget_w fltk_widget_x fltk_widget_y fltk_window_as_group fltk_window_as_widget fltk_window_delete fltk_window_hide fltk_window_new fltk_window_new_xy fltk_window_resizable fltk_window_show fltk_window_shown fltk_window_size_range fltk_wizard_as_group fltk_wizard_as_widget fltk_wizard_delete fltk_wizard_end fltk_wizard_new fltk_wizard_next fltk_wizard_prev fltk_wizard_set_value fltk_wizard_value isValid toStringz

Types 179

Opaque handle for Fl_Widget and derived classes.

This is the base type for all widget handles. It can be used with the fltk_widget_* functions for common operations like getting geometry, setting labels, and managing visibility.

Fields
private void * ptr

Alias for widget handle pointer

Opaque handle for Fl_Window.

Windows are top-level containers that can be shown on screen. Use fltk_window_as_widget() or fltk_window_as_group() to access base class functionality.

Fields
private void * ptr

Alias for window handle pointer

Opaque handle for Fl_Double_Window.

Double-buffered windows reduce flicker during redraws.

Fields
private void * ptr

Alias for double window handle pointer

Opaque handle for Fl_Single_Window.

Single-buffered windows force single buffering even on systems that default to double buffering. Useful for incremental updates or movie playback.

Fields
private void * ptr

Alias for single window handle pointer

Opaque handle for Fl_Menu_Window.

Menu windows are used for popup menus and use hardware overlay planes if available for flicker-free display.

Fields
private void * ptr

Alias for menu window handle pointer

Opaque handle for Fl_Group.

Groups are containers that can hold child widgets.

Fields
private void * ptr

Alias for group handle pointer

structBoxHandle

Opaque handle for Fl_Box.

Boxes are simple widgets for displaying text or decorative frames.

Fields
private void * ptr
aliasBoxPtr = BoxHandle *

Alias for box handle pointer

Opaque handle for Fl_Button.

Buttons are clickable widgets that trigger callbacks.

Fields
private void * ptr

Alias for button handle pointer

Opaque handle for Fl_Input.

InputPtr widgets allow text entry.

Fields
private void * ptr

Alias for input handle pointer

Opaque handle for Fl_Value_Slider.

ValueSlider widgets allow selecting a value from a range.

Fields
private void * ptr

Alias for value slider handle pointer

Opaque handle for Fl_Slider.

Slider widgets allow selecting a value from a range (without value display).

Fields
private void * ptr

Alias for slider handle pointer

Opaque handle for Fl_Check_Button.

CheckButton widgets are checkboxes.

Fields
private void * ptr

Alias for check button handle pointer

Opaque handle for Fl_Radio_Button.

RadioButton widgets are mutually exclusive within a group.

Fields
private void * ptr

Alias for radio button handle pointer

Opaque handle for Fl_Toggle_Button.

ToggleButton widgets maintain on/off state.

Fields
private void * ptr

Alias for toggle button handle pointer

Opaque handle for Fl_Light_Button.

LightButton widgets have an indicator light showing on/off state.

Fields
private void * ptr

Alias for light button handle pointer

Opaque handle for Fl_Radio_Light_Button.

RadioLightButton widgets are light buttons with radio button behavior (mutually exclusive within a group).

Fields
private void * ptr

Alias for radio light button handle pointer

Opaque handle for Fl_Radio_Round_Button.

RadioRoundButton widgets are round buttons with radio button behavior (mutually exclusive within a group).

Fields
private void * ptr

Alias for radio round button handle pointer

Opaque handle for Fl_Toggle_Light_Button.

ToggleLightButton widgets are light buttons that maintain on/off state.

Fields
private void * ptr

Alias for toggle light button handle pointer

Opaque handle for Fl_Toggle_Round_Button.

ToggleRoundButton widgets are round buttons that maintain on/off state.

Fields
private void * ptr

Alias for toggle round button handle pointer

Opaque handle for Fl_Repeat_Button.

RepeatButton widgets auto-repeat callback when held down.

Fields
private void * ptr

Alias for repeat button handle pointer

Opaque handle for Fl_Return_Button.

ReturnButton widgets respond to Enter key as default button.

Fields
private void * ptr

Alias for return button handle pointer

Opaque handle for Fl_Round_Button.

RoundButton widgets have round radio-style appearance.

Fields
private void * ptr

Alias for round button handle pointer

Opaque handle for Fl_Float_Input.

FloatInput widgets accept only floating-point numbers.

Fields
private void * ptr

Alias for float input handle pointer

Opaque handle for Fl_Int_Input.

IntInput widgets accept only integer numbers.

Fields
private void * ptr

Alias for int input handle pointer

Opaque handle for Fl_Secret_Input.

SecretInput widgets display dots/asterisks for password entry.

Fields
private void * ptr

Alias for secret input handle pointer

Opaque handle for Fl_Multiline_Input.

MultilineInput widgets accept multiple lines of text.

Fields
private void * ptr

Alias for multiline input handle pointer

Opaque handle for Fl_File_Input.

FileInput widgets provide file path input with navigation.

Fields
private void * ptr

Alias for file input handle pointer

Opaque handle for Fl_Multiline_Output.

MultilineOutput widgets display multiple lines of read-only text.

Fields
private void * ptr

Alias for multiline output handle pointer

Opaque handle for Fl_Dial.

Dial widgets provide a circular dial for selecting numeric values.

Fields
private void * ptr

Alias for dial handle pointer

Opaque handle for Fl_Counter.

Counter widgets provide increment/decrement buttons for numeric values.

Fields
private void * ptr

Alias for counter handle pointer

Opaque handle for Fl_Roller.

Roller widgets provide a rolling valuator for selecting numeric values.

Fields
private void * ptr

Alias for roller handle pointer

Opaque handle for Fl_Scrollbar.

Scrollbar widgets for scrolling content.

Fields
private void * ptr

Alias for scrollbar handle pointer

Opaque handle for Fl_Value_Input.

ValueInput widgets provide text input for numeric values.

Fields
private void * ptr

Alias for value input handle pointer

Opaque handle for Fl_Value_Output.

ValueOutput widgets display read-only numeric values.

Fields
private void * ptr

Alias for value output handle pointer

Opaque handle for Fl_Adjuster.

Adjuster widgets provide arrows for incrementing/decrementing values.

Fields
private void * ptr

Alias for adjuster handle pointer

Opaque handle for Fl_Tile.

Tile widgets allow resizing of children by dragging borders.

Fields
private void * ptr

Alias for tile handle pointer

Opaque handle for Fl_Wizard.

Wizard widgets show one child at a time with prev/next navigation.

Fields
private void * ptr

Alias for wizard handle pointer

Opaque handle for Fl_Spinner.

Spinner widgets combine input field with increment/decrement buttons.

Fields
private void * ptr

Alias for spinner handle pointer

Opaque handle for Fl_Menu_Bar.

MenuBar widgets provide a horizontal menu bar.

Fields
private void * ptr

Alias for menu bar handle pointer

Opaque handle for Fl_Menu_Button.

MenuButton widgets show a popup menu when clicked.

Fields
private void * ptr

Alias for menu button handle pointer

Opaque handle for Fl_Input_Choice.

InputChoice widgets combine input field with dropdown menu.

Fields
private void * ptr

Alias for input choice handle pointer

Opaque handle for Fl_Text_Editor.

TextEditor widgets provide full text editing capabilities.

Fields
private void * ptr

Alias for text editor handle pointer

Opaque handle for Fl_Output.

Output widgets display read-only text.

Fields
private void * ptr

Alias for output handle pointer

Opaque handle for Fl_Progress.

Progress widgets display progress bars.

Fields
private void * ptr

Alias for progress handle pointer

Opaque handle for Fl_Pack.

Pack widgets automatically arrange children.

Fields
private void * ptr

Alias for pack handle pointer

Opaque handle for Fl_Tabs.

Tabs widgets display tabbed pages.

Fields
private void * ptr

Alias for tabs handle pointer

Opaque handle for Fl_Scroll.

Scroll widgets provide scrollable containers.

Fields
private void * ptr

Alias for scroll handle pointer

Opaque handle for Fl_Choice.

Choice widgets are dropdown menus.

Fields
private void * ptr

Alias for choice handle pointer

Opaque handle for Fl_Text_Buffer.

TextBuffer holds text content for text displays/editors.

Fields
private void * ptr

Alias for text buffer handle pointer

Opaque handle for Fl_Text_Display.

TextDisplay widgets show text content.

Fields
private void * ptr

Alias for text display handle pointer

Opaque handle for Fl_Native_File_Chooser.

Native file chooser provides platform-native file selection dialogs.

Fields
private void * ptr

Alias for native file chooser handle pointer

Opaque handle for Fl_Hold_Browser.

Single-selection list browser widget.

Fields
private void * ptr

Alias for hold browser handle pointer

Opaque handle for Fl_Multi_Browser.

Multiple-selection list browser widget.

Fields
private void * ptr

Alias for multi browser handle pointer

Opaque handle for Fl_Select_Browser.

Selection browser widget.

Fields
private void * ptr

Alias for select browser handle pointer

Opaque handle for Fl_File_Browser.

File system browser widget.

Fields
private void * ptr

Alias for file browser handle pointer

Opaque handle for Fl_Check_Browser.

Browser widget with checkboxes for each item.

Fields
private void * ptr

Alias for check browser handle pointer

Opaque handle for Fl_Tree.

Tree widget for hierarchical data display.

Fields
private void * ptr

Alias for tree handle pointer

Opaque handle for Fl_Tree_Item.

Individual item in a tree widget.

Fields
private void * ptr

Alias for tree item handle pointer

Opaque handle for Fl_Help_View.

Simple HTML viewer widget.

Fields
private void * ptr

Alias for help view handle pointer

Opaque handle for Fl_Table.

Base table widget for displaying tabular data with custom cell drawing.

Fields
private void * ptr

Alias for table handle pointer

Opaque handle for Fl_Table_Row.

Table widget with row selection support.

Fields
private void * ptr

Alias for table row handle pointer

Opaque handle for Fl_Printer.

Printing support for outputting to physical printers.

Fields
private void * ptr

Alias for printer handle pointer

Opaque handle for Fl_PostScript_File_Device.

PostScript file output device for generating PS files.

Fields
private void * ptr

Alias for PostScript file device handle pointer

Opaque handle for custom widget with overridable draw/handle.

Custom widget that allows D code to override draw() and handle() methods.

Fields
private void * ptr

Alias for custom widget handle pointer

Opaque handle for Fl_Positioner.

A 2D valuator widget for selecting X/Y coordinates.

Fields
private void * ptr

Alias for positioner handle pointer

Opaque handle for Fl_Chart.

Chart widget for displaying simple charts (bar, line, pie, etc.).

Fields
private void * ptr

Alias for chart handle pointer

Opaque handle for Fl_Clock.

Analog clock widget that displays the current time.

Fields
private void * ptr

Alias for clock handle pointer

Opaque handle for Fl_Help_Dialog.

HTML help dialog for displaying help content with navigation.

Fields
private void * ptr

Alias for help dialog handle pointer

Opaque handle for Fl_Color_Chooser.

Embeddable color chooser widget for selecting RGB colors.

Fields
private void * ptr

Alias for color chooser handle pointer

Opaque handle for Fl_Sys_Menu_Bar.

System menu bar that integrates with the OS menu (macOS menu bar). On non-macOS platforms, behaves like a regular menu bar.

Fields
private void * ptr

Alias for system menu bar handle pointer

Opaque handle for Fl_Preferences.

Preferences storage for application settings. Stores data in platform-appropriate location (registry on Windows, files on Unix/macOS).

Fields
private void * ptr

Alias for preferences handle pointer

Preferences root location.

Specifies where preferences are stored.

SYSTEM = 0System-wide preferences
USER = 1User-specific preferences

Opaque handle for Fl_Multi_Label.

Multi-labels allow combining text and images into compound labels for widgets and menu items.

Fields
private void * ptr

Alias for multi-label handle pointer

Opaque handle for Fl_File_Icon.

File icons are used to display file type icons in file browsers and can be associated with widgets as labels.

Fields
private void * ptr

Alias for file icon handle pointer

File icon type constants.

Specifies the type of file the icon represents.

ANY = 0Any kind of file
PLAIN = 1Plain files
FIFO = 2Named pipes
DEVICE = 3Character and block devices
LINK = 4Symbolic links
DIRECTORY = 5Directories

File icon data opcodes.

Used when building icon drawing primitives.

END = 0End of primitive/icon
COLOR = 1Followed by color value
LINE = 2Start of line
CLOSEDLINE = 3Start of closed line
POLYGON = 4Start of polygon
OUTLINEPOLYGON = 5Followed by outline color
VERTEX = 6Followed by scaled X,Y

Opaque handle for Fl_Plugin.

Plugins allow link-time and run-time integration of binary modules. They are registered in a temporary database organized by class.

Fields
private void * ptr

Alias for plugin handle pointer

Opaque handle for Fl_Plugin_Manager.

Plugin managers are used to list and access all currently loaded plugins of a specific class.

Fields
private void * ptr

Alias for plugin manager handle pointer

Opaque handle for Fl_Copy_Surface.

Copy surfaces allow drawing graphics that are then copied to the system clipboard.

Fields
private void * ptr

Alias for copy surface handle pointer

Opaque handle for Fl_Image_Surface.

Image surfaces allow drawing graphics to an in-memory image that can be retrieved as an Fl_RGB_Image or Fl_Shared_Image.

Fields
private void * ptr

Alias for image surface handle pointer

Opaque handle for Fl_Image (base class).

Base image type for all FLTK images.

Fields
private void * ptr

Alias for base image handle pointer

Opaque handle for Fl_Bitmap.

Monochrome bitmap image (XBM format).

Fields
private void * ptr

Alias for bitmap handle pointer

Opaque handle for Fl_Pixmap.

Color pixmap image (XPM format).

Fields
private void * ptr

Alias for pixmap handle pointer

Opaque handle for Fl_Tiled_Image.

Tiled/repeated background image.

Fields
private void * ptr

Alias for tiled image handle pointer

aliasShimCallback = void function(WidgetPtr widget, void * userdata)

Generic callback function type.

This matches FLTK's Fl_Callback signature. The widget parameter is the widget that triggered the callback, and userdata is the pointer passed when the callback was registered.

Parameters

widgetThe widget that triggered the callback
userdataUser-provided data pointer
aliasTimeoutHandler = void function(void * userdata)

Timeout/idle callback function type.

Used for timeout and idle handlers that don't receive a widget.

Parameters

userdataUser-provided data pointer
aliasFdHandler = void function(int fd, void * userdata)

File descriptor callback function type.

Used for file descriptor event handlers.

Parameters

fdThe file descriptor
userdataUser-provided data pointer
aliasTableCellCallback = void function( TablePtr table, int context, int row, int col, int x, int y, int w, int h, void * userdata)

Draw cell callback function type for Table (base class).

Called when a table cell needs to be drawn.

Parameters

tableThe table widget
contextTable context (see TableContext enum)
rowRow number
colColumn number
xX coordinate of cell
yY coordinate of cell
wWidth of cell
hHeight of cell
userdataUser-provided data pointer
aliasDrawCellCallback = void function( TableRowPtr table, int context, int row, int col, int x, int y, int w, int h, void * userdata)

Draw cell callback function type for TableRow.

Called when a table cell needs to be drawn.

Parameters

tableThe table widget
contextTable context (see TableContext enum)
rowRow number
colColumn number
xX coordinate of cell
yY coordinate of cell
wWidth of cell
hHeight of cell
userdataUser-provided data pointer
aliasCustomWidgetDrawCallback = void function(CustomWidgetPtr widget, void * userdata)

Custom widget draw callback function type.

Called when the custom widget needs to redraw itself.

Parameters

widgetThe custom widget
userdataUser-provided data pointer
aliasCustomWidgetHandleCallback = int function(CustomWidgetPtr widget, int event, void * userdata)

Custom widget handle callback function type.

Called when the custom widget receives an event.

Parameters

widgetThe custom widget
eventThe FLTK event code
userdataUser-provided data pointer

Returns

Non-zero if the event was handled, zero otherwise

Table context values for draw_cell callback.

These values indicate what part of the table is being drawn.

NONE = 0No known context
STARTPAGE = 1Before a page is redrawn
ENDPAGE = 2After a page is redrawn
ROW_HEADER = 4In the row header
COL_HEADER = 8In the column header
CELL = 16In one of the cells
TABLE = 32In a dead zone of table
RC_RESIZE = 64Column or row being resized

Table row selection mode.

These values control how rows can be selected in a TableRow.

NONE = 0No selection allowed
SINGLE = 1Single row selection
MULTI = 2Multiple row selection

BoxPtr type constants matching FLTK's Fl_Boxtype enum.

These values define the visual appearance of box widgets and can be used with fltk_box_new().

NO_BOX = 0
FLAT_BOX = 1
UP_BOX = 2
DOWN_BOX = 3
UP_FRAME = 4
DOWN_FRAME = 5
THIN_UP_BOX = 6
THIN_DOWN_BOX = 7
THIN_UP_FRAME = 8
THIN_DOWN_FRAME = 9
ENGRAVED_BOX = 10
EMBOSSED_BOX = 11
ENGRAVED_FRAME = 12
EMBOSSED_FRAME = 13
BORDER_BOX = 14
SHADOW_BOX = 15
BORDER_FRAME = 16
SHADOW_FRAME = 17
ROUNDED_BOX = 18
RSHADOW_BOX = 19
ROUNDED_FRAME = 20
RFLAT_BOX = 21
ROUND_UP_BOX = 22
ROUND_DOWN_BOX = 23
DIAMOND_UP_BOX = 24
DIAMOND_DOWN_BOX = 25
OVAL_BOX = 26
OSHADOW_BOX = 27
OVAL_FRAME = 28
OFLAT_BOX = 29
PLASTIC_UP_BOX = 30
PLASTIC_DOWN_BOX = 31
PLASTIC_UP_FRAME = 32
PLASTIC_DOWN_FRAME = 33
GTK_UP_BOX = 34
GTK_DOWN_BOX = 35
GTK_UP_FRAME = 36
GTK_DOWN_FRAME = 37
GTK_THIN_UP_BOX = 38
GTK_THIN_DOWN_BOX = 39
GTK_THIN_UP_FRAME = 40
GTK_THIN_DOWN_FRAME = 41
GTK_ROUND_UP_BOX = 42
GTK_ROUND_DOWN_BOX = 43
aliasTreeItemArrayPtr = void *

Opaque handle for Fl_Tree_Item_Array

aliasFdCallback = void function(int fd, void * userdata) nothrow @system

File descriptor callback function type

aliasPnmImagePtr = void *

Opaque handle for Fl_PNM_Image

aliasScrollDrawAreaCallback = void function(void * data, int x, int y, int w, int h) nothrow

Scroll callback function type.

Functions 1082

fnint fltk_run()Runs the FLTK event loop until all windows are closed.
fnint fltk_wait(double seconds)Waits for events with optional timeout.
fnint fltk_check()Checks for and processes pending events without blocking.
fnint fltk_ready()Checks if events are ready without processing them.
fndouble fltk_version()Gets the FLTK version as a double (e.g., 1.0304 for 1.3.4).
fnint fltk_api_version()Gets the FLTK API version as an integer (e.g., 10304 for 1.3.4).
fnint fltk_abi_version()Gets the FLTK ABI version as an integer.
fnvoid fltk_display(const(char) * d)Sets the X display to use for subsequent windows.
fnint fltk_visual(int mode)Requests a visual type for windows.
fnvoid fltk_own_colormap()Requests FLTK to use its own colormap.
fnvoid fltk_get_system_colors()Loads system colors into FLTK's color palette.
fnvoid fltk_foreground(ubyte r, ubyte g, ubyte b)Sets the default foreground color for labels.
fnvoid fltk_background(ubyte r, ubyte g, ubyte b)Sets the default background color.
fnvoid fltk_background2(ubyte r, ubyte g, ubyte b)Sets the default background color for text widgets.
fnint fltk_scrollbar_size()Gets the default scrollbar size.
fnvoid fltk_set_scrollbar_size(int width)Sets the default scrollbar size.
fnint fltk_option(int opt)Gets an FLTK option value.
fnvoid fltk_set_option(int opt, int val)Sets an FLTK option value.
fnvoid fltk_add_check(TimeoutHandler callback, void * userdata)Adds a check callback (called during event processing).
fnint fltk_has_check(TimeoutHandler callback, void * userdata)Checks if a check callback exists.
fnvoid fltk_remove_check(TimeoutHandler callback, void * userdata)Removes a check callback.
fnint fltk_damage()Gets the global damage flag.
fnvoid fltk_redraw()Marks all widgets for redraw.
fnWindowPtr fltk_first_window()Gets the first visible window.
fnWindowPtr fltk_next_window(WindowPtr win)Gets the next window after the given one.
fnWindowPtr fltk_modal()Gets the current modal window.
fnWindowPtr fltk_grab()Gets the current grab window.
fnvoid fltk_set_grab(WindowPtr win)Sets the grab window.
fnvoid fltk_release()Releases the grab.
fnWidgetPtr fltk_belowmouse()Gets the widget currently below the mouse.
fnvoid fltk_set_belowmouse(WidgetPtr w)Sets the widget below the mouse.
fnWidgetPtr fltk_pushed()Gets the widget being pushed (mouse button held).
fnvoid fltk_set_pushed(WidgetPtr w)Sets the pushed widget.
fnWidgetPtr fltk_focus()Gets the widget with keyboard focus.
fnvoid fltk_set_focus(WidgetPtr w)Sets the keyboard focus to a widget.
fnvoid fltk_add_timeout(double seconds, TimeoutHandler callback, void * userdata)Adds a one-shot timeout callback.
fnvoid fltk_repeat_timeout(double seconds, TimeoutHandler callback, void * userdata)Repeats a timeout from within a timeout callback.
fnint fltk_has_timeout(TimeoutHandler callback, void * userdata)Checks if a timeout callback exists.
fnvoid fltk_remove_timeout(TimeoutHandler callback, void * userdata)Removes a timeout callback.
fnvoid fltk_add_idle(TimeoutHandler callback, void * userdata)Adds an idle callback.
fnint fltk_has_idle(TimeoutHandler callback, void * userdata)Checks if an idle callback exists.
fnvoid fltk_remove_idle(TimeoutHandler callback, void * userdata)Removes an idle callback.
fnint fltk_event_x()Gets the current event's X coordinate.
fnint fltk_event_y()Gets the current event's Y coordinate.
fnint fltk_event_x_root()Gets the current event's root X coordinate.
fnint fltk_event_y_root()Gets the current event's root Y coordinate.
fnint fltk_event_button()Gets the mouse button that triggered the current event.
fnint fltk_event_clicks()Gets the number of clicks for the current event.
fnint fltk_event_key()Gets the key code for the current keyboard event.
fnint fltk_event_state()Gets the modifier state for the current event.
fnconst(char) * fltk_event_text()Gets the text for the current keyboard event.
fnint fltk_event_length()Gets the length of the event text.
fnint fltk_event_original_key()Gets the original key code before any remapping.
fnint fltk_event_is_click()Checks if the current event is a click (not a drag).
fnvoid fltk_event_set_is_click(int val)Sets the click flag for the current event.
fnint fltk_event_inside_rect(int x, int y, int w, int h)Checks if the event is inside a rectangle.
fnint fltk_event_inside_widget(WidgetPtr widget)Checks if the event is inside a widget.
fnint fltk_get_key(int key)Checks if a key is currently pressed.
fnvoid fltk_get_mouse(int * x, int * y)Gets the current mouse position.
fnint fltk_compose(int * del)Handles compose/dead key sequences.
fnvoid fltk_compose_reset()Resets the compose state.
fnint fltk_widget_x(WidgetPtr widget)Gets the widget's X position.
fnint fltk_widget_y(WidgetPtr widget)Gets the widget's Y position.
fnint fltk_widget_w(WidgetPtr widget)Gets the widget's width.
fnint fltk_widget_h(WidgetPtr widget)Gets the widget's height.
fnvoid fltk_widget_resize(WidgetPtr widget, int x, int y, int w, int h)Resizes and repositions a widget.
fnvoid fltk_widget_redraw(WidgetPtr widget)Marks the widget for redrawing.
fnconst(char) * fltk_widget_label(WidgetPtr widget)Gets the widget's label text.
fnvoid fltk_widget_set_label(WidgetPtr widget, const(char) * label)Sets the widget's label text.
fnvoid fltk_widget_set_callback(WidgetPtr widget, ShimCallback callback, void * userdata)Sets the widget's callback function.
fnvoid fltk_widget_show(WidgetPtr widget)Shows the widget.
fnvoid fltk_widget_hide(WidgetPtr widget)Hides the widget.
fnint fltk_widget_visible(WidgetPtr widget)Checks if widget is visible.
fnvoid fltk_widget_activate(WidgetPtr widget)Activates the widget.
fnvoid fltk_widget_deactivate(WidgetPtr widget)Deactivates the widget.
fnint fltk_widget_active(WidgetPtr widget)Checks if widget is active.
fnWindowPtr fltk_window_new(int w, int h, const(char) * title)Creates a new window.
fnWindowPtr fltk_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new window at specific position.
fnvoid fltk_window_delete(WindowPtr window)Destroys a window.
fnvoid fltk_window_show(WindowPtr window)Shows a window.
fnvoid fltk_window_hide(WindowPtr window)Hides a window.
fnint fltk_window_shown(WindowPtr window)Checks if window is shown.
fnvoid fltk_window_resizable(WindowPtr window, WidgetPtr resizable)Makes the window resizable.
fnvoid fltk_window_size_range(WindowPtr window, int minw, int minh, int maxw, int maxh)Sets the window's size range.
fnWidgetPtr fltk_window_as_widget(WindowPtr window)Casts a window to widget for common operations.
fnGroupPtr fltk_window_as_group(WindowPtr window)Casts a window to group for container operations.
fnDoubleWindowPtr fltk_double_window_new(int w, int h, const(char) * title)Creates a new double-buffered window.
fnvoid fltk_double_window_delete(DoubleWindowPtr window)Destroys a double-buffered window.
fnWindowPtr fltk_double_window_as_window(DoubleWindowPtr window)Casts a double window to regular window.
fnSingleWindowPtr fltk_single_window_new(int w, int h, const(char) * title)Creates a new single-buffered window.
fnSingleWindowPtr fltk_single_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new single-buffered window with position.
fnvoid fltk_single_window_delete(SingleWindowPtr window)Destroys a single-buffered window.
fnWindowPtr fltk_single_window_as_window(SingleWindowPtr window)Casts a single window to regular window.
fnMenuWindowPtr fltk_menu_window_new(int w, int h, const(char) * title)Creates a new menu window.
fnMenuWindowPtr fltk_menu_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new menu window with position.
fnvoid fltk_menu_window_delete(MenuWindowPtr window)Destroys a menu window.
fnWindowPtr fltk_menu_window_as_window(MenuWindowPtr window)Casts a menu window to regular window.
fnint fltk_menu_window_overlay(MenuWindowPtr window)Returns whether hardware overlay mode is enabled.
fnvoid fltk_menu_window_set_overlay(MenuWindowPtr window)Enables hardware overlay mode if available.
fnvoid fltk_menu_window_clear_overlay(MenuWindowPtr window)Disables hardware overlay mode (use normal drawing planes).
fnGroupPtr fltk_group_new(int x, int y, int w, int h, const(char) * label)Creates a new group widget.
fnvoid fltk_group_delete(GroupPtr group)Destroys a group widget.
fnvoid fltk_group_begin(GroupPtr group)Begins adding children to the group.
fnvoid fltk_group_end(GroupPtr group)Ends adding children to the group.
fnvoid fltk_group_add(GroupPtr group, WidgetPtr widget)Adds a widget to the group.
fnvoid fltk_group_remove(GroupPtr group, WidgetPtr widget)Removes a widget from the group.
fnint fltk_group_children(GroupPtr group)Gets the number of children in the group.
fnWidgetPtr fltk_group_child(GroupPtr group, int index)Gets a child widget by index.
fnWidgetPtr fltk_group_as_widget(GroupPtr group)Casts a group to widget.
fnBoxPtr fltk_box_new(int boxtype, int x, int y, int w, int h, const(char) * label)Creates a new box widget.
fnvoid fltk_box_delete(BoxPtr box)Destroys a box widget.
fnWidgetPtr fltk_box_as_widget(BoxPtr box)Casts a box to widget.
fnButtonPtr fltk_button_new(int x, int y, int w, int h, const(char) * label)Creates a new button widget.
fnvoid fltk_button_delete(ButtonPtr button)Destroys a button widget.
fnint fltk_button_value(ButtonPtr button)Gets the button's value (pressed state).
fnvoid fltk_button_set_value(ButtonPtr button, int value)Sets the button's value (pressed state).
fnWidgetPtr fltk_button_as_widget(ButtonPtr button)Casts a button to widget.
fnInputPtr fltk_input_new(int x, int y, int w, int h, const(char) * label)Creates a new input widget.
fnvoid fltk_input_delete(InputPtr input)Destroys an input widget.
fnconst(char) * fltk_input_value(InputPtr input)Gets the input's text value.
fnvoid fltk_input_set_value(InputPtr input, const(char) * value)Sets the input's text value.
fnWidgetPtr fltk_input_as_widget(InputPtr input)Casts an input to widget.
fnValueSliderPtr fltk_value_slider_new(int x, int y, int w, int h, const(char) * label)Creates a new value slider widget.
fnvoid fltk_value_slider_delete(ValueSliderPtr slider)Destroys a value slider widget.
fndouble fltk_value_slider_value(ValueSliderPtr slider)Gets the slider's current value.
fnvoid fltk_value_slider_set_value(ValueSliderPtr slider, double value)Sets the slider's current value.
fnvoid fltk_value_slider_set_minimum(ValueSliderPtr slider, double min)Sets the slider's minimum value.
fnvoid fltk_value_slider_set_maximum(ValueSliderPtr slider, double max)Sets the slider's maximum value.
fnvoid fltk_value_slider_set_range(ValueSliderPtr slider, double min, double max)Sets the slider's range (minimum and maximum).
fnvoid fltk_value_slider_set_step(ValueSliderPtr slider, double step)Sets the slider's step value.
fnvoid fltk_value_slider_set_type(ValueSliderPtr slider, ubyte type)Sets the slider type (orientation).
fnWidgetPtr fltk_value_slider_as_widget(ValueSliderPtr slider)Casts a value slider to widget.
fnSliderPtr fltk_slider_new(int x, int y, int w, int h, const(char) * label)Creates a new slider widget.
fnvoid fltk_slider_delete(SliderPtr slider)Destroys a slider widget.
fndouble fltk_slider_value(SliderPtr slider)Gets the slider's current value.
fnvoid fltk_slider_set_value(SliderPtr slider, double value)Sets the slider's current value.
fnvoid fltk_slider_set_range(SliderPtr slider, double min, double max)Sets the slider's range (minimum and maximum).
fnvoid fltk_slider_set_step(SliderPtr slider, double step)Sets the slider's step value.
fnvoid fltk_slider_set_type(SliderPtr slider, ubyte type)Sets the slider type (orientation).
fnubyte fltk_slider_get_type(SliderPtr slider)Gets the slider type.
fnWidgetPtr fltk_slider_as_widget(SliderPtr slider)Casts a slider to widget.
fnCheckButtonPtr fltk_check_button_new(int x, int y, int w, int h, const(char) * label)Creates a new check button widget.
fnvoid fltk_check_button_delete(CheckButtonPtr button)Destroys a check button widget.
fnint fltk_check_button_value(CheckButtonPtr button)Gets the check button's value (checked state).
fnvoid fltk_check_button_set_value(CheckButtonPtr button, int value)Sets the check button's value (checked state).
fnWidgetPtr fltk_check_button_as_widget(CheckButtonPtr button)Casts a check button to widget.
fnRadioButtonPtr fltk_radio_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio button widget.
fnvoid fltk_radio_button_delete(RadioButtonPtr button)Destroys a radio button widget.
fnint fltk_radio_button_value(RadioButtonPtr button)Gets the radio button's value (selected state).
fnvoid fltk_radio_button_set_value(RadioButtonPtr button, int value)Sets the radio button's value (selected state).
fnWidgetPtr fltk_radio_button_as_widget(RadioButtonPtr button)Casts a radio button to widget.
fnToggleButtonPtr fltk_toggle_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle button widget.
fnvoid fltk_toggle_button_delete(ToggleButtonPtr button)Destroys a toggle button widget.
fnint fltk_toggle_button_value(ToggleButtonPtr button)Gets the toggle button's value (toggled state).
fnvoid fltk_toggle_button_set_value(ToggleButtonPtr button, int value)Sets the toggle button's value (toggled state).
fnWidgetPtr fltk_toggle_button_as_widget(ToggleButtonPtr button)Casts a toggle button to widget.
fnLightButtonPtr fltk_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new light button widget.
fnvoid fltk_light_button_delete(LightButtonPtr button)Destroys a light button widget.
fnint fltk_light_button_value(LightButtonPtr button)Gets the light button's value (on/off state).
fnvoid fltk_light_button_set_value(LightButtonPtr button, int value)Sets the light button's value (on/off state).
fnWidgetPtr fltk_light_button_as_widget(LightButtonPtr button)Casts a light button to widget.
fnRadioLightButtonPtr fltk_radio_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio light button widget.
fnvoid fltk_radio_light_button_delete(RadioLightButtonPtr button)Destroys a radio light button widget.
fnint fltk_radio_light_button_value(RadioLightButtonPtr button)Gets the radio light button's value (on/off state).
fnvoid fltk_radio_light_button_set_value(RadioLightButtonPtr button, int value)Sets the radio light button's value (on/off state).
fnWidgetPtr fltk_radio_light_button_as_widget(RadioLightButtonPtr button)Casts a radio light button to widget.
fnRadioRoundButtonPtr fltk_radio_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio round button widget.
fnvoid fltk_radio_round_button_delete(RadioRoundButtonPtr button)Destroys a radio round button widget.
fnint fltk_radio_round_button_value(RadioRoundButtonPtr button)Gets the radio round button's value (on/off state).
fnvoid fltk_radio_round_button_set_value(RadioRoundButtonPtr button, int value)Sets the radio round button's value (on/off state).
fnWidgetPtr fltk_radio_round_button_as_widget(RadioRoundButtonPtr button)Casts a radio round button to widget.
fnToggleLightButtonPtr fltk_toggle_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle light button widget.
fnvoid fltk_toggle_light_button_delete(ToggleLightButtonPtr button)Destroys a toggle light button widget.
fnint fltk_toggle_light_button_value(ToggleLightButtonPtr button)Gets the toggle light button's value (on/off state).
fnvoid fltk_toggle_light_button_set_value(ToggleLightButtonPtr button, int value)Sets the toggle light button's value (on/off state).
fnWidgetPtr fltk_toggle_light_button_as_widget(ToggleLightButtonPtr button)Casts a toggle light button to widget.
fnToggleRoundButtonPtr fltk_toggle_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle round button widget.
fnvoid fltk_toggle_round_button_delete(ToggleRoundButtonPtr button)Destroys a toggle round button widget.
fnint fltk_toggle_round_button_value(ToggleRoundButtonPtr button)Gets the toggle round button's value (on/off state).
fnvoid fltk_toggle_round_button_set_value(ToggleRoundButtonPtr button, int value)Sets the toggle round button's value (on/off state).
fnWidgetPtr fltk_toggle_round_button_as_widget(ToggleRoundButtonPtr button)Casts a toggle round button to widget.
fnRepeatButtonPtr fltk_repeat_button_new(int x, int y, int w, int h, const(char) * label)Creates a new repeat button widget.
fnvoid fltk_repeat_button_delete(RepeatButtonPtr button)Destroys a repeat button widget.
fnWidgetPtr fltk_repeat_button_as_widget(RepeatButtonPtr button)Casts a repeat button to widget.
fnReturnButtonPtr fltk_return_button_new(int x, int y, int w, int h, const(char) * label)Creates a new return button widget.
fnvoid fltk_return_button_delete(ReturnButtonPtr button)Destroys a return button widget.
fnWidgetPtr fltk_return_button_as_widget(ReturnButtonPtr button)Casts a return button to widget.
fnRoundButtonPtr fltk_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new round button widget.
fnvoid fltk_round_button_delete(RoundButtonPtr button)Destroys a round button widget.
fnint fltk_round_button_value(RoundButtonPtr button)Gets the round button's value (selected state).
fnvoid fltk_round_button_set_value(RoundButtonPtr button, int value)Sets the round button's value (selected state).
fnWidgetPtr fltk_round_button_as_widget(RoundButtonPtr button)Casts a round button to widget.
fnFloatInputPtr fltk_float_input_new(int x, int y, int w, int h, const(char) * label)Creates a new float input widget.
fnvoid fltk_float_input_delete(FloatInputPtr input)Destroys a float input widget.
fnconst(char) * fltk_float_input_value(FloatInputPtr input)Gets the float input's text value.
fnvoid fltk_float_input_set_value(FloatInputPtr input, const(char) * value)Sets the float input's text value.
fnWidgetPtr fltk_float_input_as_widget(FloatInputPtr input)Casts a float input to widget.
fnIntInputPtr fltk_int_input_new(int x, int y, int w, int h, const(char) * label)Creates a new int input widget.
fnvoid fltk_int_input_delete(IntInputPtr input)Destroys an int input widget.
fnconst(char) * fltk_int_input_value(IntInputPtr input)Gets the int input's text value.
fnvoid fltk_int_input_set_value(IntInputPtr input, const(char) * value)Sets the int input's text value.
fnWidgetPtr fltk_int_input_as_widget(IntInputPtr input)Casts an int input to widget.
fnSecretInputPtr fltk_secret_input_new(int x, int y, int w, int h, const(char) * label)Creates a new secret input widget.
fnvoid fltk_secret_input_delete(SecretInputPtr input)Destroys a secret input widget.
fnconst(char) * fltk_secret_input_value(SecretInputPtr input)Gets the secret input's text value.
fnvoid fltk_secret_input_set_value(SecretInputPtr input, const(char) * value)Sets the secret input's text value.
fnWidgetPtr fltk_secret_input_as_widget(SecretInputPtr input)Casts a secret input to widget.
fnMultilineInputPtr fltk_multiline_input_new(int x, int y, int w, int h, const(char) * label)Creates a new multiline input widget.
fnvoid fltk_multiline_input_delete(MultilineInputPtr input)Destroys a multiline input widget.
fnconst(char) * fltk_multiline_input_value(MultilineInputPtr input)Gets the multiline input's text value.
fnvoid fltk_multiline_input_set_value(MultilineInputPtr input, const(char) * value)Sets the multiline input's text value.
fnWidgetPtr fltk_multiline_input_as_widget(MultilineInputPtr input)Casts a multiline input to widget.
fnFileInputPtr fltk_file_input_new(int x, int y, int w, int h, const(char) * label)Creates a new file input widget.
fnvoid fltk_file_input_delete(FileInputPtr input)Destroys a file input widget.
fnconst(char) * fltk_file_input_value(FileInputPtr input)Gets the file input's text value.
fnvoid fltk_file_input_set_value(FileInputPtr input, const(char) * value)Sets the file input's text value.
fnWidgetPtr fltk_file_input_as_widget(FileInputPtr input)Casts a file input to widget.
fnMultilineOutputPtr fltk_multiline_output_new(int x, int y, int w, int h, const(char) * label)Creates a new multiline output widget.
fnvoid fltk_multiline_output_delete(MultilineOutputPtr output)Destroys a multiline output widget.
fnconst(char) * fltk_multiline_output_value(MultilineOutputPtr output)Gets the multiline output's text value.
fnvoid fltk_multiline_output_set_value(MultilineOutputPtr output, const(char) * value)Sets the multiline output's text value.
fnWidgetPtr fltk_multiline_output_as_widget(MultilineOutputPtr output)Casts a multiline output to widget.
fnDialPtr fltk_dial_new(int x, int y, int w, int h, const(char) * label)Creates a new dial widget.
fnvoid fltk_dial_delete(DialPtr dial)Destroys a dial widget.
fndouble fltk_dial_value(DialPtr dial)Gets the dial's current value.
fnvoid fltk_dial_set_value(DialPtr dial, double value)Sets the dial's current value.
fndouble fltk_dial_minimum(DialPtr dial)Gets the dial's minimum value.
fnvoid fltk_dial_set_minimum(DialPtr dial, double value)Sets the dial's minimum value.
fndouble fltk_dial_maximum(DialPtr dial)Gets the dial's maximum value.
fnvoid fltk_dial_set_maximum(DialPtr dial, double value)Sets the dial's maximum value.
fnvoid fltk_dial_set_range(DialPtr dial, double min, double max)Sets the dial's range.
fnWidgetPtr fltk_dial_as_widget(DialPtr dial)Casts a dial to widget.
fnint fltk_dial_type(DialPtr dial)Gets the dial type (0=NORMAL, 1=LINE, 2=FILL).
fnvoid fltk_dial_set_type(DialPtr dial, int type)Sets the dial type (0=NORMAL, 1=LINE, 2=FILL).
fnshort fltk_dial_angle1(DialPtr dial)Gets the first angle (start angle for the dial arc).
fnvoid fltk_dial_set_angle1(DialPtr dial, short angle)Sets the first angle.
fnshort fltk_dial_angle2(DialPtr dial)Gets the second angle (end angle for the dial arc).
fnvoid fltk_dial_set_angle2(DialPtr dial, short angle)Sets the second angle.
fnvoid fltk_dial_angles(DialPtr dial, short a1, short a2)Sets both angles at once.
fnCounterPtr fltk_counter_new(int x, int y, int w, int h, const(char) * label)Creates a new counter widget.
fnvoid fltk_counter_delete(CounterPtr counter)Destroys a counter widget.
fndouble fltk_counter_value(CounterPtr counter)Gets the counter's current value.
fnvoid fltk_counter_set_value(CounterPtr counter, double value)Sets the counter's current value.
fndouble fltk_counter_minimum(CounterPtr counter)Gets the counter's minimum value.
fnvoid fltk_counter_set_minimum(CounterPtr counter, double value)Sets the counter's minimum value.
fndouble fltk_counter_maximum(CounterPtr counter)Gets the counter's maximum value.
fnvoid fltk_counter_set_maximum(CounterPtr counter, double value)Sets the counter's maximum value.
fnvoid fltk_counter_set_step(CounterPtr counter, double step)Sets the counter's step size.
fnubyte fltk_counter_get_type(CounterPtr counter)Gets the counter type (0=NORMAL, 1=SIMPLE).
fnvoid fltk_counter_set_type(CounterPtr counter, ubyte type)Sets the counter type (0=NORMAL, 1=SIMPLE).
fnWidgetPtr fltk_counter_as_widget(CounterPtr counter)Casts a counter to widget.
fnRollerPtr fltk_roller_new(int x, int y, int w, int h, const(char) * label)Creates a new roller widget.
fnvoid fltk_roller_delete(RollerPtr roller)Destroys a roller widget.
fndouble fltk_roller_value(RollerPtr roller)Gets the roller's current value.
fnvoid fltk_roller_set_value(RollerPtr roller, double value)Sets the roller's current value.
fndouble fltk_roller_minimum(RollerPtr roller)Gets the roller's minimum value.
fnvoid fltk_roller_set_minimum(RollerPtr roller, double value)Sets the roller's minimum value.
fndouble fltk_roller_maximum(RollerPtr roller)Gets the roller's maximum value.
fnvoid fltk_roller_set_maximum(RollerPtr roller, double value)Sets the roller's maximum value.
fnWidgetPtr fltk_roller_as_widget(RollerPtr roller)Casts a roller to widget.
fnScrollbarPtr fltk_scrollbar_new(int x, int y, int w, int h, const(char) * label)Creates a new scrollbar widget.
fnvoid fltk_scrollbar_delete(ScrollbarPtr scrollbar)Destroys a scrollbar widget.
fndouble fltk_scrollbar_value(ScrollbarPtr scrollbar)Gets the scrollbar's current value.
fnvoid fltk_scrollbar_set_value(ScrollbarPtr scrollbar, double value)Sets the scrollbar's current value.
fndouble fltk_scrollbar_minimum(ScrollbarPtr scrollbar)Gets the scrollbar's minimum value.
fnvoid fltk_scrollbar_set_minimum(ScrollbarPtr scrollbar, double value)Sets the scrollbar's minimum value.
fndouble fltk_scrollbar_maximum(ScrollbarPtr scrollbar)Gets the scrollbar's maximum value.
fnvoid fltk_scrollbar_set_maximum(ScrollbarPtr scrollbar, double value)Sets the scrollbar's maximum value.
fnWidgetPtr fltk_scrollbar_as_widget(ScrollbarPtr scrollbar)Casts a scrollbar to widget.
fnValueInputPtr fltk_value_input_new(int x, int y, int w, int h, const(char) * label)Creates a new value input widget.
fnvoid fltk_value_input_delete(ValueInputPtr input)Destroys a value input widget.
fndouble fltk_value_input_value(ValueInputPtr input)Gets the value input's current value.
fnvoid fltk_value_input_set_value(ValueInputPtr input, double value)Sets the value input's current value.
fndouble fltk_value_input_minimum(ValueInputPtr input)Gets the value input's minimum value.
fnvoid fltk_value_input_set_minimum(ValueInputPtr input, double value)Sets the value input's minimum value.
fndouble fltk_value_input_maximum(ValueInputPtr input)Gets the value input's maximum value.
fnvoid fltk_value_input_set_maximum(ValueInputPtr input, double value)Sets the value input's maximum value.
fnWidgetPtr fltk_value_input_as_widget(ValueInputPtr input)Casts a value input to widget.
fnValueOutputPtr fltk_value_output_new(int x, int y, int w, int h, const(char) * label)Creates a new value output widget.
fnvoid fltk_value_output_delete(ValueOutputPtr output)Destroys a value output widget.
fndouble fltk_value_output_value(ValueOutputPtr output)Gets the value output's current value.
fnvoid fltk_value_output_set_value(ValueOutputPtr output, double value)Sets the value output's current value.
fndouble fltk_value_output_minimum(ValueOutputPtr output)Gets the value output's minimum value.
fnvoid fltk_value_output_set_minimum(ValueOutputPtr output, double value)Sets the value output's minimum value.
fndouble fltk_value_output_maximum(ValueOutputPtr output)Gets the value output's maximum value.
fnvoid fltk_value_output_set_maximum(ValueOutputPtr output, double value)Sets the value output's maximum value.
fnWidgetPtr fltk_value_output_as_widget(ValueOutputPtr output)Casts a value output to widget.
fnAdjusterPtr fltk_adjuster_new(int x, int y, int w, int h, const(char) * label)Creates a new adjuster widget.
fnvoid fltk_adjuster_delete(AdjusterPtr adjuster)Destroys an adjuster widget.
fndouble fltk_adjuster_value(AdjusterPtr adjuster)Gets the adjuster's current value.
fnvoid fltk_adjuster_set_value(AdjusterPtr adjuster, double value)Sets the adjuster's current value.
fndouble fltk_adjuster_minimum(AdjusterPtr adjuster)Gets the adjuster's minimum value.
fnvoid fltk_adjuster_set_minimum(AdjusterPtr adjuster, double value)Sets the adjuster's minimum value.
fndouble fltk_adjuster_maximum(AdjusterPtr adjuster)Gets the adjuster's maximum value.
fnvoid fltk_adjuster_set_maximum(AdjusterPtr adjuster, double value)Sets the adjuster's maximum value.
fnWidgetPtr fltk_adjuster_as_widget(AdjusterPtr adjuster)Casts an adjuster to widget.
fnTilePtr fltk_tile_new(int x, int y, int w, int h, const(char) * label)Creates a new tile widget.
fnvoid fltk_tile_delete(TilePtr tile)Destroys a tile widget.
fnvoid fltk_tile_end(TilePtr tile)Ends adding children to the tile.
fnGroupPtr fltk_tile_as_group(TilePtr tile)Casts a tile to group.
fnWidgetPtr fltk_tile_as_widget(TilePtr tile)Casts a tile to widget.
fnWizardPtr fltk_wizard_new(int x, int y, int w, int h, const(char) * label)Creates a new wizard widget.
fnvoid fltk_wizard_delete(WizardPtr wizard)Destroys a wizard widget.
fnvoid fltk_wizard_end(WizardPtr wizard)Ends adding children to the wizard.
fnvoid fltk_wizard_next(WizardPtr wizard)Shows the next page.
fnvoid fltk_wizard_prev(WizardPtr wizard)Shows the previous page.
fnWidgetPtr fltk_wizard_value(WizardPtr wizard)Gets the currently visible widget.
fnvoid fltk_wizard_set_value(WizardPtr wizard, WidgetPtr widget)Sets the currently visible widget.
fnGroupPtr fltk_wizard_as_group(WizardPtr wizard)Casts a wizard to group.
fnWidgetPtr fltk_wizard_as_widget(WizardPtr wizard)Casts a wizard to widget.
fnSpinnerPtr fltk_spinner_new(int x, int y, int w, int h, const(char) * label)Creates a new spinner widget.
fnvoid fltk_spinner_delete(SpinnerPtr spinner)Destroys a spinner widget.
fndouble fltk_spinner_value(SpinnerPtr spinner)Gets the spinner's current value.
fnvoid fltk_spinner_set_value(SpinnerPtr spinner, double value)Sets the spinner's current value.
fndouble fltk_spinner_minimum(SpinnerPtr spinner)Gets the spinner's minimum value.
fnvoid fltk_spinner_set_minimum(SpinnerPtr spinner, double value)Sets the spinner's minimum value.
fndouble fltk_spinner_maximum(SpinnerPtr spinner)Gets the spinner's maximum value.
fnvoid fltk_spinner_set_maximum(SpinnerPtr spinner, double value)Sets the spinner's maximum value.
fnvoid fltk_spinner_set_step(SpinnerPtr spinner, double step)Sets the spinner's step size.
fnWidgetPtr fltk_spinner_as_widget(SpinnerPtr spinner)Casts a spinner to widget.
fnMenuBarPtr fltk_menu_bar_new(int x, int y, int w, int h, const(char) * label)Creates a new menu bar widget.
fnvoid fltk_menu_bar_delete(MenuBarPtr menu)Destroys a menu bar widget.
fnint fltk_menu_bar_add(MenuBarPtr menu, const(char) * path, int shortcut, ShimCallback callback, void * userdata, int flags)Adds a menu item to the menu bar.
fnvoid fltk_menu_bar_clear(MenuBarPtr menu)Clears all menu items.
fnWidgetPtr fltk_menu_bar_as_widget(MenuBarPtr menu)Casts a menu bar to widget.
fnMenuButtonPtr fltk_menu_button_new(int x, int y, int w, int h, const(char) * label)Creates a new menu button widget.
fnvoid fltk_menu_button_delete(MenuButtonPtr menu)Destroys a menu button widget.
fnint fltk_menu_button_add(MenuButtonPtr menu, const(char) * path, int shortcut, ShimCallback callback, void * userdata, int flags)Adds a menu item to the menu button.
fnvoid fltk_menu_button_clear(MenuButtonPtr menu)Clears all menu items.
fnWidgetPtr fltk_menu_button_as_widget(MenuButtonPtr menu)Casts a menu button to widget.
fnInputChoicePtr fltk_input_choice_new(int x, int y, int w, int h, const(char) * label)Creates a new input choice widget.
fnvoid fltk_input_choice_delete(InputChoicePtr input)Destroys an input choice widget.
fnconst(char) * fltk_input_choice_value(InputChoicePtr input)Gets the current text value.
fnvoid fltk_input_choice_set_value(InputChoicePtr input, const(char) * value)Sets the current text value.
fnvoid fltk_input_choice_add(InputChoicePtr input, const(char) * text)Adds an item to the dropdown menu.
fnvoid fltk_input_choice_clear(InputChoicePtr input)Clears all menu items.
fnWidgetPtr fltk_input_choice_as_widget(InputChoicePtr input)Casts an input choice to widget.
fnTextEditorPtr fltk_text_editor_new(int x, int y, int w, int h, const(char) * label)Creates a new text editor widget.
fnvoid fltk_text_editor_delete(TextEditorPtr editor)Destroys a text editor widget.
fnTextBufferPtr fltk_text_editor_buffer(TextEditorPtr editor)Gets the text buffer associated with the editor.
fnvoid fltk_text_editor_set_buffer(TextEditorPtr editor, TextBufferPtr buffer)Sets the text buffer for the editor.
fnvoid fltk_text_editor_copy(TextEditorPtr editor)Copies selected text to clipboard.
fnvoid fltk_text_editor_cut(TextEditorPtr editor)Cuts selected text to clipboard.
fnvoid fltk_text_editor_paste(TextEditorPtr editor)Pastes text from clipboard.
fnvoid fltk_text_editor_insert(TextEditorPtr editor, const(char) * text)Inserts text at the current cursor position.
fnWidgetPtr fltk_text_editor_as_widget(TextEditorPtr editor)Casts a text editor to widget.
fnOutputPtr fltk_output_new(int x, int y, int w, int h, const(char) * label)Creates a new output widget.
fnvoid fltk_output_delete(OutputPtr output)Destroys an output widget.
fnconst(char) * fltk_output_value(OutputPtr output)Gets the output's text value.
fnvoid fltk_output_set_value(OutputPtr output, const(char) * value)Sets the output's text value.
fnWidgetPtr fltk_output_as_widget(OutputPtr output)Casts an output to widget.
fnProgressPtr fltk_progress_new(int x, int y, int w, int h, const(char) * label)Creates a new progress widget.
fnvoid fltk_progress_delete(ProgressPtr progress)Destroys a progress widget.
fndouble fltk_progress_value(ProgressPtr progress)Gets the progress value.
fnvoid fltk_progress_set_value(ProgressPtr progress, double value)Sets the progress value.
fnvoid fltk_progress_set_minimum(ProgressPtr progress, double min)Sets the progress minimum value.
fnvoid fltk_progress_set_maximum(ProgressPtr progress, double max)Sets the progress maximum value.
fnWidgetPtr fltk_progress_as_widget(ProgressPtr progress)Casts a progress to widget.
fnPackPtr fltk_pack_new(int x, int y, int w, int h, const(char) * label)Creates a new pack widget.
fnvoid fltk_pack_delete(PackPtr pack)Destroys a pack widget.
fnvoid fltk_pack_begin(PackPtr pack)Begins adding children to the pack.
fnvoid fltk_pack_end(PackPtr pack)Ends adding children to the pack.
fnvoid fltk_pack_set_spacing(PackPtr pack, int spacing)Sets the pack spacing.
fnvoid fltk_pack_set_type(PackPtr pack, ubyte type)Sets the pack type (horizontal or vertical).
fnGroupPtr fltk_pack_as_group(PackPtr pack)Casts a pack to group.
fnWidgetPtr fltk_pack_as_widget(PackPtr pack)Casts a pack to widget.
fnTabsPtr fltk_tabs_new(int x, int y, int w, int h, const(char) * label)Creates a new tabs widget.
fnvoid fltk_tabs_delete(TabsPtr tabs)Destroys a tabs widget.
fnvoid fltk_tabs_begin(TabsPtr tabs)Begins adding children to the tabs.
fnvoid fltk_tabs_end(TabsPtr tabs)Ends adding children to the tabs.
fnWidgetPtr fltk_tabs_value(TabsPtr tabs)Gets the currently selected tab (child widget).
fnvoid fltk_tabs_set_value(TabsPtr tabs, WidgetPtr child)Sets the currently selected tab.
fnGroupPtr fltk_tabs_as_group(TabsPtr tabs)Casts tabs to group.
fnWidgetPtr fltk_tabs_as_widget(TabsPtr tabs)Casts tabs to widget.
fnScrollPtr fltk_scroll_new(int x, int y, int w, int h, const(char) * label)Creates a new scroll widget.
fnvoid fltk_scroll_delete(ScrollPtr scroll)Destroys a scroll widget.
fnvoid fltk_scroll_begin(ScrollPtr scroll)Begins adding children to the scroll.
fnvoid fltk_scroll_end(ScrollPtr scroll)Ends adding children to the scroll.
fnvoid fltk_scroll_scroll_to(ScrollPtr scroll, int x, int y)Scrolls to a position.
fnint fltk_scroll_xposition(ScrollPtr scroll)Gets the horizontal scroll position.
fnint fltk_scroll_yposition(ScrollPtr scroll)Gets the vertical scroll position.
fnGroupPtr fltk_scroll_as_group(ScrollPtr scroll)Casts scroll to group.
fnWidgetPtr fltk_scroll_as_widget(ScrollPtr scroll)Casts scroll to widget.
fnChoicePtr fltk_choice_new(int x, int y, int w, int h, const(char) * label)Creates a new choice widget.
fnvoid fltk_choice_delete(ChoicePtr choice)Destroys a choice widget.
fnint fltk_choice_add(ChoicePtr choice, const(char) * text)Adds an item to the choice menu.
fnvoid fltk_choice_clear(ChoicePtr choice)Clears all items from the choice menu.
fnint fltk_choice_value(ChoicePtr choice)Gets the currently selected item index.
fnvoid fltk_choice_set_value(ChoicePtr choice, int index)Sets the currently selected item by index.
fnconst(char) * fltk_choice_text(ChoicePtr choice)Gets the text of the currently selected item.
fnWidgetPtr fltk_choice_as_widget(ChoicePtr choice)Casts choice to widget.
fnTextBufferPtr fltk_text_buffer_new()Creates a new text buffer.
fnvoid fltk_text_buffer_delete(TextBufferPtr buffer)Destroys a text buffer.
fnchar * fltk_text_buffer_text(TextBufferPtr buffer)Gets the buffer's text content. Caller must free with fltktextbufferfreetext.
fnvoid fltk_text_buffer_free_text(char * text)Frees text returned by fltktextbuffer_text.
fnvoid fltk_text_buffer_set_text(TextBufferPtr buffer, const(char) * text)Sets the buffer's text content.
fnint fltk_text_buffer_length(TextBufferPtr buffer)Gets the buffer's length in bytes.
fnvoid fltk_text_buffer_append(TextBufferPtr buffer, const(char) * text)Appends text to the buffer.
fnvoid fltk_text_buffer_insert(TextBufferPtr buffer, int pos, const(char) * text)Inserts text at a position.
fnvoid fltk_text_buffer_remove(TextBufferPtr buffer, int start, int end)Removes text from a range.
fnTextDisplayPtr fltk_text_display_new(int x, int y, int w, int h, const(char) * label)Creates a new text display widget.
fnvoid fltk_text_display_delete(TextDisplayPtr display)Destroys a text display widget.
fnvoid fltk_text_display_set_buffer(TextDisplayPtr display, TextBufferPtr buffer)Sets the text buffer for the display.
fnTextBufferPtr fltk_text_display_buffer(TextDisplayPtr display)Gets the text buffer for the display.
fnvoid fltk_text_display_scroll(TextDisplayPtr display, int line)Scrolls to a line.
fnvoid fltk_text_display_highlight_data(TextDisplayPtr display, TextBufferPtr style_buffer, const(void) * style_table, int n_styles, char unfinished_style)Sets highlight data for syntax highlighting.
fnvoid fltk_text_display_textfont(TextDisplayPtr display, int font)Sets the text font.
fnint fltk_text_display_get_textfont(TextDisplayPtr display)Gets the text font.
fnvoid fltk_text_display_textsize(TextDisplayPtr display, int size)Sets the text size.
fnint fltk_text_display_get_textsize(TextDisplayPtr display)Gets the text size.
fnvoid fltk_text_display_textcolor(TextDisplayPtr display, uint color)Sets the text color.
fnuint fltk_text_display_get_textcolor(TextDisplayPtr display)Gets the text color.
fnvoid fltk_text_display_cursor_color(TextDisplayPtr display, uint color)Sets the cursor color.
fnvoid fltk_text_display_show_cursor(TextDisplayPtr display, int visible)Shows or hides the cursor.
fnvoid fltk_text_display_wrap_mode(TextDisplayPtr display, int mode, int margin)Sets wrap mode (0=none, 1=at column, 2=at pixel, 3=at bounds).
fnvoid fltk_text_display_linenumber_width(TextDisplayPtr display, int width)Sets line number display width (0 to hide).
fnint fltk_text_display_get_linenumber_width(TextDisplayPtr display)Gets line number display width.
fnWidgetPtr fltk_text_display_as_widget(TextDisplayPtr display)Casts text display to widget.
fnvoid fltk_alert(const(char) * message)Shows an alert dialog with an OK button.
fnvoid fltk_message(const(char) * message)Shows a message dialog with an OK button.
fnvoid fltk_beep(int type)Plays a system beep sound.
fnint fltk_ask(const(char) * message)Shows a question dialog with Yes/No buttons. Returns 1 for Yes, 0 for No.
fnint fltk_choice_dialog(const(char) * message, const(char) * b0, const(char) * b1, const(char) * b2)Shows a choice dialog with up to 3 buttons. Returns button index (0, 1, or 2).
fnconst(char) * fltk_input_dialog(const(char) * message, const(char) * default_value)Shows a text input dialog. Returns entered text or null if cancelled.
fnconst(char) * fltk_password_dialog(const(char) * message, const(char) * default_value)Shows a password input dialog. Returns entered text or null if cancelled.
fnNativeFileChooserPtr fltk_native_file_chooser_new(int type)Creates a new native file chooser.
fnvoid fltk_native_file_chooser_delete(NativeFileChooserPtr fc)Deletes a native file chooser.
fnvoid fltk_native_file_chooser_set_title(NativeFileChooserPtr fc, const(char) * title)Sets the title of the file chooser dialog.
fnconst(char) * fltk_native_file_chooser_title(NativeFileChooserPtr fc)Gets the title of the file chooser dialog.
fnvoid fltk_native_file_chooser_set_filter(NativeFileChooserPtr fc, const(char) * filter)Sets the file filter pattern.
fnconst(char) * fltk_native_file_chooser_filter(NativeFileChooserPtr fc)Gets the file filter pattern.
fnvoid fltk_native_file_chooser_set_directory(NativeFileChooserPtr fc, const(char) * dir)Sets the initial directory.
fnconst(char) * fltk_native_file_chooser_directory(NativeFileChooserPtr fc)Gets the current directory.
fnvoid fltk_native_file_chooser_set_preset_file(NativeFileChooserPtr fc, const(char) * name)Sets the preset filename.
fnconst(char) * fltk_native_file_chooser_preset_file(NativeFileChooserPtr fc)Gets the preset filename.
fnint fltk_native_file_chooser_show(NativeFileChooserPtr fc)Shows the file chooser dialog. Returns 0 if picked, 1 if cancelled, -1 on error.
fnint fltk_native_file_chooser_count(NativeFileChooserPtr fc)Gets the number of selected files.
fnconst(char) * fltk_native_file_chooser_filename(NativeFileChooserPtr fc, int index)Gets a selected filename by index.
fnconst(char) * fltk_native_file_chooser_errmsg(NativeFileChooserPtr fc)Gets the error message if show() returned -1.
fnHoldBrowserPtr fltk_hold_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Hold Browser (single selection).
fnvoid fltk_hold_browser_delete(HoldBrowserPtr b)Deletes a Hold Browser.
fnWidgetPtr fltk_hold_browser_as_widget(HoldBrowserPtr b)Casts a Hold Browser to widget.
fnMultiBrowserPtr fltk_multi_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Multi Browser (multiple selection).
fnvoid fltk_multi_browser_delete(MultiBrowserPtr b)Deletes a Multi Browser.
fnWidgetPtr fltk_multi_browser_as_widget(MultiBrowserPtr b)Casts a Multi Browser to widget.
fnSelectBrowserPtr fltk_select_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Select Browser.
fnvoid fltk_select_browser_delete(SelectBrowserPtr b)Deletes a Select Browser.
fnWidgetPtr fltk_select_browser_as_widget(SelectBrowserPtr b)Casts a Select Browser to widget.
fnvoid fltk_browser_add(WidgetPtr w, const(char) * text)Adds an item to the browser.
fnvoid fltk_browser_insert(WidgetPtr w, int line, const(char) * text)Inserts an item at a position (1-based).
fnvoid fltk_browser_remove(WidgetPtr w, int line)Removes an item (1-based).
fnvoid fltk_browser_clear(WidgetPtr w)Clears all items.
fnint fltk_browser_size(WidgetPtr w)Gets the number of items.
fnconst(char) * fltk_browser_text(WidgetPtr w, int line)Gets the text of an item (1-based).
fnvoid fltk_browser_set_text(WidgetPtr w, int line, const(char) * text)Sets the text of an item (1-based).
fnint fltk_browser_value(WidgetPtr w)Gets the currently selected line (1-based), or 0 if none.
fnvoid fltk_browser_set_value(WidgetPtr w, int line)Selects a line (1-based).
fnint fltk_browser_selected(WidgetPtr w, int line)Checks if a line is selected (1-based). Returns 1 if selected.
fnvoid fltk_browser_select(WidgetPtr w, int line, int selected)Selects or deselects a line (1-based).
fnvoid fltk_browser_deselect(WidgetPtr w)Deselects all items.
fnvoid fltk_browser_make_visible(WidgetPtr w, int line)Makes a line visible by scrolling (1-based).
fnint fltk_browser_topline(WidgetPtr w)Gets the topmost visible line.
fnvoid fltk_browser_set_topline(WidgetPtr w, int line)Sets the topmost visible line.
fnFileBrowserPtr fltk_file_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new File Browser.
fnvoid fltk_file_browser_delete(FileBrowserPtr b)Deletes a File Browser.
fnWidgetPtr fltk_file_browser_as_widget(FileBrowserPtr b)Casts a File Browser to widget.
fnint fltk_file_browser_load(FileBrowserPtr b, const(char) * directory)Loads a directory into the file browser. Returns number of files loaded.
fnvoid fltk_file_browser_set_filter(FileBrowserPtr b, const(char) * pattern)Sets the file filter pattern.
fnconst(char) * fltk_file_browser_filter(FileBrowserPtr b)Gets the file filter pattern.
fnvoid fltk_file_browser_set_filetype(FileBrowserPtr b, int type)Sets the file type display mode (0=files, 1=directories, 2=both).
fnint fltk_file_browser_filetype(FileBrowserPtr b)Gets the file type display mode.
fnCheckBrowserPtr fltk_check_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Check Browser.
fnvoid fltk_check_browser_delete(CheckBrowserPtr b)Deletes a Check Browser.
fnWidgetPtr fltk_check_browser_as_widget(CheckBrowserPtr b)Casts a Check Browser to widget.
fnint fltk_check_browser_add(CheckBrowserPtr b, const(char) * text)Adds an unchecked item. Returns number of items.
fnint fltk_check_browser_add_checked(CheckBrowserPtr b, const(char) * text, int checked)Adds an item with specified checked state. Returns number of items.
fnint fltk_check_browser_remove(CheckBrowserPtr b, int item)Removes an item (1-based). Returns number of items.
fnvoid fltk_check_browser_clear(CheckBrowserPtr b)Clears all items.
fnint fltk_check_browser_nitems(CheckBrowserPtr b)Gets the number of items.
fnint fltk_check_browser_nchecked(CheckBrowserPtr b)Gets the number of checked items.
fnint fltk_check_browser_checked(CheckBrowserPtr b, int item)Gets the checked state of an item (1-based).
fnvoid fltk_check_browser_set_checked(CheckBrowserPtr b, int item, int checked)Sets the checked state of an item (1-based).
fnvoid fltk_check_browser_check_none(CheckBrowserPtr b)Unchecks all items.
fnint fltk_check_browser_value(CheckBrowserPtr b)Gets the currently selected item (1-based), or 0 if none.
fnconst(char) * fltk_check_browser_text(CheckBrowserPtr b, int item)Gets the text of an item (1-based).
fnTreePtr fltk_tree_new(int x, int y, int w, int h, const(char) * label)Creates a new Tree widget.
fnvoid fltk_tree_delete(TreePtr tree)Deletes a Tree widget.
fnWidgetPtr fltk_tree_as_widget(TreePtr tree)Casts a Tree to widget.
fnTreeItemPtr fltk_tree_add(TreePtr tree, const(char) * path)Adds an item by path (e.g., "Parent/Child"). Returns the new item.
fnint fltk_tree_remove(TreePtr tree, TreeItemPtr item)Removes an item. Returns 0 on success.
fnvoid fltk_tree_clear(TreePtr tree)Clears all items from the tree.
fnvoid fltk_tree_clear_children(TreePtr tree)Clears all children (keeps root).
fnTreeItemPtr fltk_tree_root(TreePtr tree)Gets the root item.
fnTreeItemPtr fltk_tree_find_item(TreePtr tree, const(char) * path)Finds an item by path.
fnTreeItemPtr fltk_tree_first(TreePtr tree)Gets the first item in the tree.
fnTreeItemPtr fltk_tree_next(TreePtr tree, TreeItemPtr item)Gets the next item after the given item.
fnTreeItemPtr fltk_tree_first_selected_item(TreePtr tree)Gets the first selected item.
fnTreeItemPtr fltk_tree_next_selected_item(TreePtr tree, TreeItemPtr item)Gets the next selected item.
fnint fltk_tree_open(TreePtr tree, TreeItemPtr item)Opens (expands) an item. Returns 0 on success.
fnint fltk_tree_close(TreePtr tree, TreeItemPtr item)Closes (collapses) an item. Returns 0 on success.
fnint fltk_tree_is_open(TreePtr tree, TreeItemPtr item)Checks if an item is open.
fnint fltk_tree_select(TreePtr tree, TreeItemPtr item)Selects an item. Returns 0 on success.
fnint fltk_tree_deselect(TreePtr tree, TreeItemPtr item)Deselects an item. Returns 0 on success.
fnint fltk_tree_deselect_all(TreePtr tree)Deselects all items. Returns count deselected.
fnint fltk_tree_is_selected(TreePtr tree, TreeItemPtr item)Checks if an item is selected.
fnvoid fltk_tree_showroot(TreePtr tree, int show)Shows or hides the root item.
fnvoid fltk_tree_redraw(TreePtr tree)Redraws the tree.
fnconst(char) * fltk_tree_item_label(TreeItemPtr item)Gets the label of a tree item.
fnvoid fltk_tree_item_set_label(TreeItemPtr item, const(char) * label)Sets the label of a tree item.
fnTreeItemPtr fltk_tree_item_parent(TreeItemPtr item)Gets the parent of an item.
fnint fltk_tree_item_children(TreeItemPtr item)Gets the number of children.
fnTreeItemPtr fltk_tree_item_child(TreeItemPtr item, int index)Gets a child by index (0-based).
fnint fltk_tree_item_has_children(TreeItemPtr item)Checks if item has children.
fnint fltk_tree_item_depth(TreeItemPtr item)Gets the depth of an item (0 for root).
fnTreeItemArrayPtr fltk_tree_item_array_new(int chunksize)Creates a new tree item array.
fnvoid fltk_tree_item_array_delete(TreeItemArrayPtr arr)Deletes a tree item array.
fnint fltk_tree_item_array_total(TreeItemArrayPtr arr)Returns the total number of items in the array.
fnTreeItemPtr fltk_tree_item_array_get(TreeItemArrayPtr arr, int index)Gets an item at the specified index.
fnvoid fltk_tree_item_array_add(TreeItemArrayPtr arr, TreeItemPtr item)Adds an item to the end of the array.
fnvoid fltk_tree_item_array_insert(TreeItemArrayPtr arr, int pos, TreeItemPtr item)Inserts an item at the specified position.
fnvoid fltk_tree_item_array_replace(TreeItemArrayPtr arr, int pos, TreeItemPtr item)Replaces an item at the specified position.
fnvoid fltk_tree_item_array_remove(TreeItemArrayPtr arr, int index)Removes an item at the specified index.
fnvoid fltk_tree_item_array_clear(TreeItemArrayPtr arr)Clears all items from the array.
fnvoid fltk_tree_item_array_swap(TreeItemArrayPtr arr, int ax, int bx)Swaps two items in the array.
fnint fltk_tree_item_array_move(TreeItemArrayPtr arr, int to, int from)Moves an item from one position to another. Returns 0 on success.
fnint fltk_tree_item_labelfont(TreePtr tree)Gets the tree's item label font.
fnvoid fltk_tree_set_item_labelfont(TreePtr tree, int font)Sets the tree's item label font.
fnint fltk_tree_item_labelsize(TreePtr tree)Gets the tree's item label size.
fnvoid fltk_tree_set_item_labelsize(TreePtr tree, int size)Sets the tree's item label size.
fnuint fltk_tree_item_labelfgcolor(TreePtr tree)Gets the tree's item foreground color.
fnvoid fltk_tree_set_item_labelfgcolor(TreePtr tree, uint color)Sets the tree's item foreground color.
fnuint fltk_tree_item_labelbgcolor(TreePtr tree)Gets the tree's item background color.
fnvoid fltk_tree_set_item_labelbgcolor(TreePtr tree, uint color)Sets the tree's item background color.
fnint fltk_tree_marginleft(TreePtr tree)Gets the tree's left margin.
fnvoid fltk_tree_set_marginleft(TreePtr tree, int val)Sets the tree's left margin.
fnint fltk_tree_margintop(TreePtr tree)Gets the tree's top margin.
fnvoid fltk_tree_set_margintop(TreePtr tree, int val)Sets the tree's top margin.
fnint fltk_tree_connectorstyle(TreePtr tree)Gets the tree's connector style.
fnvoid fltk_tree_set_connectorstyle(TreePtr tree, int style)Sets the tree's connector style.
fnuint fltk_tree_connectorcolor(TreePtr tree)Gets the tree's connector color.
fnvoid fltk_tree_set_connectorcolor(TreePtr tree, uint color)Sets the tree's connector color.
fnint fltk_tree_connectorwidth(TreePtr tree)Gets the tree's connector width.
fnvoid fltk_tree_set_connectorwidth(TreePtr tree, int val)Sets the tree's connector width.
fnint fltk_tree_linespacing(TreePtr tree)Gets the tree's line spacing.
fnvoid fltk_tree_set_linespacing(TreePtr tree, int val)Sets the tree's line spacing.
fnint fltk_tree_selectmode(TreePtr tree)Gets the tree's selection mode.
fnvoid fltk_tree_set_selectmode(TreePtr tree, int mode)Sets the tree's selection mode.
fnint fltk_tree_sortorder(TreePtr tree)Gets the tree's sort order.
fnvoid fltk_tree_set_sortorder(TreePtr tree, int order)Sets the tree's sort order.
fnint fltk_tree_openchild_marginbottom(TreePtr tree)Gets the margin below an open child.
fnvoid fltk_tree_set_openchild_marginbottom(TreePtr tree, int val)Sets the margin below an open child.
fnint fltk_tree_usericonmarginleft(TreePtr tree)Gets the user icon's left margin.
fnvoid fltk_tree_set_usericonmarginleft(TreePtr tree, int val)Sets the user icon's left margin.
fnint fltk_tree_labelmarginleft(TreePtr tree)Gets the label's left margin.
fnvoid fltk_tree_set_labelmarginleft(TreePtr tree, int val)Sets the label's left margin.
fnint fltk_tree_showcollapse(TreePtr tree)Gets if collapse icons are shown.
fnvoid fltk_tree_set_showcollapse(TreePtr tree, int val)Sets if collapse icons should be shown.
fnint fltk_tree_selectbox(TreePtr tree)Gets the selection box style.
fnvoid fltk_tree_set_selectbox(TreePtr tree, int val)Sets the selection box style.
fnHelpViewPtr fltk_help_view_new(int x, int y, int w, int h, const(char) * label)Creates a new Help View widget.
fnvoid fltk_help_view_delete(HelpViewPtr hv)Deletes a Help View widget.
fnWidgetPtr fltk_help_view_as_widget(HelpViewPtr hv)Casts a Help View to widget.
fnvoid fltk_help_view_value(HelpViewPtr hv, const(char) * val)Sets the HTML value/content.
fnconst(char) * fltk_help_view_get_value(HelpViewPtr hv)Gets the current HTML value/content.
fnint fltk_help_view_load(HelpViewPtr hv, const(char) * filename)Loads HTML from a file. Returns 0 on success, -1 on error.
fnvoid fltk_help_view_textsize(HelpViewPtr hv, int size)Sets the text size.
fnint fltk_help_view_get_textsize(HelpViewPtr hv)Gets the text size.
fnvoid fltk_help_view_textcolor(HelpViewPtr hv, uint color)Sets the text color.
fnuint fltk_help_view_get_textcolor(HelpViewPtr hv)Gets the text color.
fnint fltk_color_chooser_dialog(const(char) * name, double * r, double * g, double * b, int mode)Shows a color chooser dialog. Returns 1 if color selected, 0 if cancelled.
fnconst(char) * fltk_scheme()Gets the current UI scheme name.
fnint fltk_set_scheme(const(char) * scheme)Sets the UI scheme. Returns 1 on success, 0 on failure.
fnvoid fltk_copy(const(char) * text, int len, int destination)Copies text to clipboard. destination: 0=selection, 1=clipboard
fnvoid fltk_paste(WidgetPtr receiver, int source)Requests paste to widget. source: 0=selection, 1=clipboard
fnvoid fltk_lock()Acquires the FLTK lock for thread-safe operations.
fnvoid fltk_unlock()Releases the FLTK lock.
fnvoid fltk_awake()Wakes up the main thread from another thread.
fnint fltk_dnd()Initiates a drag and drop operation. Returns non-zero if drop accepted.
fnconst(char) * fltk_event_text()Gets the text from a DnD or paste event.
fnint fltk_event_length()Gets the length of the event text.
fnvoid fltk_add_fd(int fd, int when, FdCallback cb, void * userdata)Adds a file descriptor callback with event flags.
fnvoid fltk_add_fd_read(int fd, FdCallback cb, void * userdata)Adds a file descriptor callback for read events.
fnvoid fltk_remove_fd(int fd, int when)Removes a file descriptor callback for specific events.
fnvoid fltk_remove_fd_all(int fd)Removes all callbacks for a file descriptor.
fnint fltk_screen_count()Gets the number of screens/monitors.
fnvoid fltk_screen_xywh(int screen, int * x, int * y, int * w, int * h)Gets the bounding rectangle of a screen.
fnvoid fltk_screen_work_area(int screen, int * x, int * y, int * w, int * h)Gets the work area of a screen (excluding taskbars, etc.).
fnvoid fltk_screen_dpi(int screen, float * h, float * v)Gets the DPI of a screen.
fnTablePtr fltk_table_new(int x, int y, int w, int h, const(char) * label)Creates a new Table widget.
fnvoid fltk_table_delete(TablePtr table)Deletes a Table widget.
fnWidgetPtr fltk_table_as_widget(TablePtr table)Casts a Table to widget.
fnGroupPtr fltk_table_as_group(TablePtr table)Casts a Table to group.
fnvoid fltk_table_set_draw_cell_callback(TablePtr table, TableCellCallback cb, void * userdata)Sets the draw cell callback.
fnvoid fltk_table_rows(TablePtr table, int count)Sets the number of rows.
fnint fltk_table_get_rows(TablePtr table)Gets the number of rows.
fnvoid fltk_table_cols(TablePtr table, int count)Sets the number of columns.
fnint fltk_table_get_cols(TablePtr table)Gets the number of columns.
fnvoid fltk_table_row_height(TablePtr table, int row, int height)Sets the height of a specific row.
fnint fltk_table_get_row_height(TablePtr table, int row)Gets the height of a specific row.
fnvoid fltk_table_row_height_all(TablePtr table, int height)Sets the height of all rows.
fnvoid fltk_table_col_width(TablePtr table, int col, int width)Sets the width of a specific column.
fnint fltk_table_get_col_width(TablePtr table, int col)Gets the width of a specific column.
fnvoid fltk_table_col_width_all(TablePtr table, int width)Sets the width of all columns.
fnvoid fltk_table_row_header(TablePtr table, int flag)Enables or disables row headers.
fnint fltk_table_get_row_header(TablePtr table)Gets whether row headers are enabled.
fnvoid fltk_table_col_header(TablePtr table, int flag)Enables or disables column headers.
fnint fltk_table_get_col_header(TablePtr table)Gets whether column headers are enabled.
fnvoid fltk_table_row_header_width(TablePtr table, int width)Sets the row header width.
fnint fltk_table_get_row_header_width(TablePtr table)Gets the row header width.
fnvoid fltk_table_col_header_height(TablePtr table, int height)Sets the column header height.
fnint fltk_table_get_col_header_height(TablePtr table)Gets the column header height.
fnvoid fltk_table_row_header_color(TablePtr table, uint color)Sets the row header color.
fnuint fltk_table_get_row_header_color(TablePtr table)Gets the row header color.
fnvoid fltk_table_col_header_color(TablePtr table, uint color)Sets the column header color.
fnuint fltk_table_get_col_header_color(TablePtr table)Gets the column header color.
fnvoid fltk_table_row_resize(TablePtr table, int flag)Enables or disables row resizing.
fnint fltk_table_get_row_resize(TablePtr table)Gets whether row resizing is enabled.
fnvoid fltk_table_col_resize(TablePtr table, int flag)Enables or disables column resizing.
fnint fltk_table_get_col_resize(TablePtr table)Gets whether column resizing is enabled.
fnvoid fltk_table_table_box(TablePtr table, int boxtype)Sets the box type for the table.
fnint fltk_table_get_table_box(TablePtr table)Gets the box type for the table.
fnvoid fltk_table_clear(TablePtr table)Clears the table (removes all rows and columns).
fnvoid fltk_table_redraw(TablePtr table)Redraws the table.
fnint fltk_table_is_interactive_resize(TablePtr table)Returns non-zero if user is interactively resizing a row or column.
fnvoid fltk_table_row_resize_min(TablePtr table, int val)Sets the minimum row resize height.
fnint fltk_table_get_row_resize_min(TablePtr table)Gets the minimum row resize height.
fnvoid fltk_table_col_resize_min(TablePtr table, int val)Sets the minimum column resize width.
fnint fltk_table_get_col_resize_min(TablePtr table)Gets the minimum column resize width.
fnvoid fltk_table_row_position(TablePtr table, int row)Sets the row scroll position.
fnint fltk_table_get_row_position(TablePtr table)Gets the current row scroll position.
fnvoid fltk_table_col_position(TablePtr table, int col)Sets the column scroll position.
fnint fltk_table_get_col_position(TablePtr table)Gets the current column scroll position.
fnint fltk_table_is_selected(TablePtr table, int row, int col)Checks if a cell is selected.
fnvoid fltk_table_get_selection(TablePtr table, int * row_top, int * col_left, int * row_bot, int * col_right)Gets the current selection range.
fnvoid fltk_table_set_selection(TablePtr table, int row_top, int col_left, int row_bot, int col_right)Sets the selection range.
fnint fltk_table_move_cursor(TablePtr table, int row, int col, int shiftselect)Moves the cursor to a specified cell. Returns non-zero if cursor moved.
fnvoid fltk_table_visible_cells(TablePtr table, int * r1, int * r2, int * c1, int * c2)Gets the range of visible cells.
fnint fltk_table_callback_row(TablePtr table)Gets the callback row (row that triggered callback).
fnint fltk_table_callback_col(TablePtr table)Gets the callback column (column that triggered callback).
fnint fltk_table_callback_context(TablePtr table)Gets the callback context.
fnTableRowPtr fltk_table_row_new(int x, int y, int w, int h, const(char) * label)Creates a new Table Row widget.
fnvoid fltk_table_row_delete(TableRowPtr table)Deletes a Table Row widget.
fnWidgetPtr fltk_table_row_as_widget(TableRowPtr table)Casts a Table Row to widget.
fnGroupPtr fltk_table_row_as_group(TableRowPtr table)Casts a Table Row to group.
fnvoid fltk_table_row_set_draw_cell_callback(TableRowPtr table, DrawCellCallback cb, void * userdata)Sets the draw cell callback.
fnvoid fltk_table_row_rows(TableRowPtr table, int count)Sets the number of rows.
fnint fltk_table_row_get_rows(TableRowPtr table)Gets the number of rows.
fnvoid fltk_table_row_cols(TableRowPtr table, int count)Sets the number of columns.
fnint fltk_table_row_get_cols(TableRowPtr table)Gets the number of columns.
fnvoid fltk_table_row_row_height(TableRowPtr table, int row, int height)Sets the height of a specific row.
fnint fltk_table_row_get_row_height(TableRowPtr table, int row)Gets the height of a specific row.
fnvoid fltk_table_row_row_height_all(TableRowPtr table, int height)Sets the height of all rows.
fnvoid fltk_table_row_col_width(TableRowPtr table, int col, int width)Sets the width of a specific column.
fnint fltk_table_row_get_col_width(TableRowPtr table, int col)Gets the width of a specific column.
fnvoid fltk_table_row_col_width_all(TableRowPtr table, int width)Sets the width of all columns.
fnvoid fltk_table_row_row_header(TableRowPtr table, int flag)Enables or disables row headers.
fnint fltk_table_row_get_row_header(TableRowPtr table)Gets whether row headers are enabled.
fnvoid fltk_table_row_col_header(TableRowPtr table, int flag)Enables or disables column headers.
fnint fltk_table_row_get_col_header(TableRowPtr table)Gets whether column headers are enabled.
fnvoid fltk_table_row_row_header_width(TableRowPtr table, int width)Sets the row header width.
fnint fltk_table_row_get_row_header_width(TableRowPtr table)Gets the row header width.
fnvoid fltk_table_row_col_header_height(TableRowPtr table, int height)Sets the column header height.
fnint fltk_table_row_get_col_header_height(TableRowPtr table)Gets the column header height.
fnvoid fltk_table_row_row_header_color(TableRowPtr table, uint color)Sets the row header color.
fnuint fltk_table_row_get_row_header_color(TableRowPtr table)Gets the row header color.
fnvoid fltk_table_row_col_header_color(TableRowPtr table, uint color)Sets the column header color.
fnuint fltk_table_row_get_col_header_color(TableRowPtr table)Gets the column header color.
fnvoid fltk_table_row_row_resize(TableRowPtr table, int flag)Enables or disables row resizing.
fnint fltk_table_row_get_row_resize(TableRowPtr table)Gets whether row resizing is enabled.
fnvoid fltk_table_row_col_resize(TableRowPtr table, int flag)Enables or disables column resizing.
fnint fltk_table_row_get_col_resize(TableRowPtr table)Gets whether column resizing is enabled.
fnvoid fltk_table_row_type(TableRowPtr table, int mode)Sets the selection mode.
fnint fltk_table_row_get_type(TableRowPtr table)Gets the selection mode.
fnint fltk_table_row_row_selected(TableRowPtr table, int row)Checks if a row is selected.
fnint fltk_table_row_select_row(TableRowPtr table, int row, int flag)Selects or deselects a row.
fnvoid fltk_table_row_select_all_rows(TableRowPtr table, int flag)Selects or deselects all rows.
fnvoid fltk_table_row_table_box(TableRowPtr table, int boxtype)Sets the box type for the table.
fnint fltk_table_row_get_table_box(TableRowPtr table)Gets the box type for the table.
fnvoid fltk_table_row_clear(TableRowPtr table)Clears the table (removes all rows and columns).
fnvoid fltk_table_row_redraw(TableRowPtr table)Redraws the table.
fnint fltk_table_row_is_interactive_resize(TableRowPtr table)Returns non-zero if user is interactively resizing a row or column.
fnvoid fltk_table_row_row_resize_min(TableRowPtr table, int val)Sets the minimum row resize height.
fnint fltk_table_row_get_row_resize_min(TableRowPtr table)Gets the minimum row resize height.
fnvoid fltk_table_row_col_resize_min(TableRowPtr table, int val)Sets the minimum column resize width.
fnint fltk_table_row_get_col_resize_min(TableRowPtr table)Gets the minimum column resize width.
fnvoid fltk_table_row_row_position(TableRowPtr table, int row)Sets the row scroll position.
fnint fltk_table_row_get_row_position(TableRowPtr table)Gets the current row scroll position.
fnvoid fltk_table_row_col_position(TableRowPtr table, int col)Sets the column scroll position.
fnint fltk_table_row_get_col_position(TableRowPtr table)Gets the current column scroll position.
fnint fltk_table_row_is_selected(TableRowPtr table, int row, int col)Checks if a cell is selected.
fnvoid fltk_table_row_get_selection(TableRowPtr table, int * row_top, int * col_left, int * row_bot, int * col_right)Gets the current selection range.
fnvoid fltk_table_row_set_selection(TableRowPtr table, int row_top, int col_left, int row_bot, int col_right)Sets the selection range.
fnint fltk_table_row_move_cursor(TableRowPtr table, int row, int col, int shiftselect)Moves the cursor to a specified cell. Returns non-zero if cursor moved.
fnvoid fltk_table_row_visible_cells(TableRowPtr table, int * r1, int * r2, int * c1, int * c2)Gets the range of visible cells.
fnint fltk_table_row_callback_row(TableRowPtr table)Gets the callback row (row that triggered callback).
fnint fltk_table_row_callback_col(TableRowPtr table)Gets the callback column (column that triggered callback).
fnint fltk_table_row_callback_context(TableRowPtr table)Gets the callback context.
fnBitmapPtr fltk_bitmap_new(const(ubyte) * bits, int w, int h)Creates a bitmap from XBM data.
fnvoid fltk_bitmap_delete(BitmapPtr bm)Deletes a bitmap.
fnImagePtr fltk_bitmap_as_image(BitmapPtr bm)Casts a bitmap to base image.
fnPixmapPtr fltk_pixmap_new(const(char *) * data)Creates a pixmap from XPM data.
fnvoid fltk_pixmap_delete(PixmapPtr pm)Deletes a pixmap.
fnImagePtr fltk_pixmap_as_image(PixmapPtr pm)Casts a pixmap to base image.
fnTiledImagePtr fltk_tiled_image_new(ImagePtr image, int w, int h)Creates a tiled image from another image.
fnvoid fltk_tiled_image_delete(TiledImagePtr ti)Deletes a tiled image.
fnImagePtr fltk_tiled_image_as_image(TiledImagePtr ti)Casts a tiled image to base image.
fnPnmImagePtr fltk_pnm_image_new(const(char) * filename)Creates a new PNM image from a file.
fnvoid fltk_pnm_image_delete(PnmImagePtr image)Deletes a PNM image.
fnImagePtr fltk_pnm_image_as_image(PnmImagePtr image)Casts a PNM image to base image.
fnint fltk_pnm_image_fail(PnmImagePtr image)Checks if image failed to load. Returns non-zero on failure.
fnvoid fltk_draw_color(uint color)Sets the current drawing color.
fnvoid fltk_draw_color_rgb(ubyte r, ubyte g, ubyte b)Sets the current drawing color from RGB values.
fnuint fltk_draw_get_color()Gets the current drawing color.
fnvoid fltk_draw_line(int x1, int y1, int x2, int y2)Draws a line between two points.
fnvoid fltk_draw_rect(int x, int y, int w, int h)Draws an outlined rectangle.
fnvoid fltk_draw_rectf(int x, int y, int w, int h)Draws a filled rectangle.
fnvoid fltk_draw_rectf_rgb(int x, int y, int w, int h, ubyte r, ubyte g, ubyte b)Draws a filled rectangle with specific color.
fnvoid fltk_draw_point(int x, int y)Draws a point.
fnvoid fltk_draw_arc(int x, int y, int w, int h, double a1, double a2)Draws an arc (part of an ellipse outline).
fnvoid fltk_draw_pie(int x, int y, int w, int h, double a1, double a2)Draws a filled pie slice.
fnvoid fltk_draw_circle(double x, double y, double r)Draws a circle outline.
fnvoid fltk_draw_font(int face, int size)Sets the current font and size.
fnint fltk_draw_height()Gets the height of the current font.
fnint fltk_draw_descent()Gets the descent of the current font.
fndouble fltk_draw_width(const(char) * text)Gets the width of a string in the current font.
fnvoid fltk_draw_measure(const(char) * text, int * w, int * h)Measures the width and height of a string.
fnvoid fltk_draw_text(const(char) * text, int x, int y)Draws text at a position.
fnvoid fltk_push_clip(int x, int y, int w, int h)Pushes a clipping rectangle onto the stack.
fnvoid fltk_pop_clip()Pops the most recent clipping rectangle.
fnint fltk_not_clipped(int x, int y, int w, int h)Tests if a rectangle is inside the current clip region.
fnvoid fltk_push_no_clip()Pushes an empty clipping region (nothing visible).
fnvoid fltk_begin_complex_polygon()Begins a complex polygon definition.
fnvoid fltk_end_complex_polygon()Ends a complex polygon definition and draws it filled.
fnvoid fltk_begin_line()Begins a line path.
fnvoid fltk_end_line()Ends a line path and draws it.
fnvoid fltk_begin_loop()Begins a closed loop path.
fnvoid fltk_end_loop()Ends a closed loop path and draws it.
fnvoid fltk_begin_polygon()Begins a filled polygon path.
fnvoid fltk_end_polygon()Ends a filled polygon path and draws it.
fnvoid fltk_vertex(double x, double y)Adds a vertex to the current path.
fnvoid fltk_polygon3(int x0, int y0, int x1, int y1, int x2, int y2)Draws a filled 3-sided polygon.
fnvoid fltk_polygon4(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3)Draws a filled 4-sided polygon.
fnvoid fltk_loop3(int x0, int y0, int x1, int y1, int x2, int y2)Draws a 3-sided line loop (unfilled triangle).
fnvoid fltk_loop4(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3)Draws a 4-sided line loop (unfilled quadrilateral).
fnvoid fltk_gap()Marks a gap in a complex polygon (for holes).
fnvoid fltk_vertices(int n, const(double) * xp, const(double) * yp)Adds a series of vertices from arrays.
fnvoid fltk_overlay_rect(int x, int y, int w, int h)Draws an XOR overlay rectangle.
fnvoid fltk_overlay_clear()Clears the XOR overlay.
fnvoid fltk_cursor(int cursor)Sets the cursor shape.
fnvoid fltk_cursor_color(int cursor, uint fg, uint bg)Sets the cursor shape with colors.
fnvoid fltk_scroll(int x, int y, int w, int h, int dx, int dy, ScrollDrawAreaCallback draw_area, void * data)Scrolls a rectangle and calls a callback to draw uncovered areas.
fnconst(char) * fltk_shortcut_label(uint shortcut)Gets the label string for a keyboard shortcut.
fnint fltk_draw_symbol(const(char) * label, int x, int y, int w, int h, uint color)Draws a named symbol. Returns non-zero if recognized.
fnvoid fltk_text_extents(const(char) * text, int * dx, int * dy, int * w, int * h)Gets the bounding box extents of text.
fnconst(char) * fltk_latin1_to_local(const(char) * text, int n)Converts Latin-1 text to local encoding.
fnconst(char) * fltk_local_to_latin1(const(char) * text, int n)Converts local encoding to Latin-1.
fnconst(char) * fltk_mac_roman_to_local(const(char) * text, int n)Converts Mac Roman text to local encoding.
fnconst(char) * fltk_local_to_mac_roman(const(char) * text, int n)Converts local encoding to Mac Roman.
fnvoid fltk_draw_box(int boxtype, int x, int y, int w, int h, uint color)Draws a box with the specified type.
fnvoid fltk_frame(const(char) * s, int x, int y, int w, int h)Draws a frame using a string specification.
fnvoid fltk_frame2(const(char) * s, int x, int y, int w, int h)Draws a frame using a string specification (variant).
fnvoid fltk_draw_image(const(ubyte) * buf, int x, int y, int w, int h, int d, int ld)Draws raw RGB image data.
fnvoid fltk_draw_image_mono(const(ubyte) * buf, int x, int y, int w, int h, int d, int ld)Draws raw monochrome image data.
fnubyte * fltk_read_image(ubyte * p, int x, int y, int w, int h, int alpha)Reads pixels from the current window.
fnint fltk_can_do_alpha_blending()Checks if alpha blending is supported.
fnuint fltk_color_average(uint c1, uint c2, float weight)Averages two colors. Weight 0.0=c2, 1.0=c1.
fnuint fltk_contrast(uint fg, uint bg)Returns a contrasting color (white or black) for the given background.
fnuint fltk_inactive_color(uint c)Returns an inactive (grayed) version of a color.
fnuint fltk_show_colormap(uint oldcol)Shows a color selection popup and returns the selected color.
fnPrinterPtr fltk_printer_new()Creates a new printer object.
fnvoid fltk_printer_delete(PrinterPtr printer)Destroys a printer object.
fnint fltk_printer_start_job(PrinterPtr printer, int pagecount, int * frompage, int * topage)Starts a print job. Returns 0 on success, non-zero on error or cancel.
fnvoid fltk_printer_end_job(PrinterPtr printer)Ends the current print job.
fnint fltk_printer_start_page(PrinterPtr printer)Starts a new page. Returns 0 on success.
fnint fltk_printer_end_page(PrinterPtr printer)Ends the current page. Returns 0 on success.
fnint fltk_printer_printable_rect(PrinterPtr printer, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.
fnvoid fltk_printer_margins(PrinterPtr printer, int * left, int * top, int * right, int * bottom)Gets the page margins.
fnvoid fltk_printer_get_origin(PrinterPtr printer, int * x, int * y)Gets the current origin.
fnvoid fltk_printer_set_origin(PrinterPtr printer, int x, int y)Sets the origin for drawing.
fnvoid fltk_printer_scale(PrinterPtr printer, float scale_x, float scale_y)Scales the drawing.
fnvoid fltk_printer_rotate(PrinterPtr printer, float angle)Rotates the drawing.
fnvoid fltk_printer_translate(PrinterPtr printer, int x, int y)Translates the origin.
fnvoid fltk_printer_untranslate(PrinterPtr printer)Removes the last translation.
fnvoid fltk_printer_print_widget(PrinterPtr printer, WidgetPtr widget, int delta_x, int delta_y)Prints a widget.
fnvoid fltk_printer_print_window(PrinterPtr printer, WindowPtr window, int delta_x, int delta_y)Prints a window and its contents.
fnvoid fltk_printer_set_current(PrinterPtr printer)Sets the printer as the current drawing surface.
fnint fltk_printer_is_supported()Checks if printing is supported on this platform.
fnPostScriptFileDevicePtr fltk_postscript_new()Creates a new PostScript file device.
fnvoid fltk_postscript_delete(PostScriptFileDevicePtr ps)Destroys a PostScript file device.
fnint fltk_postscript_start_job(PostScriptFileDevicePtr ps, const(char) * filename, int pagecount, int format, int layout)Starts a PostScript file output job. Returns 0 on success.
fnint fltk_postscript_start_job_file(PostScriptFileDevicePtr ps, void * output, int pagecount, int format, int layout)Starts a PostScript output job to an existing FILE pointer. Returns 0 on success.
fnvoid fltk_postscript_end_job(PostScriptFileDevicePtr ps)Ends the current PostScript job.
fnint fltk_postscript_start_page(PostScriptFileDevicePtr ps)Starts a new page. Returns 0 on success.
fnint fltk_postscript_end_page(PostScriptFileDevicePtr ps)Ends the current page. Returns 0 on success.
fnint fltk_postscript_printable_rect(PostScriptFileDevicePtr ps, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.
fnvoid fltk_postscript_margins(PostScriptFileDevicePtr ps, int * left, int * top, int * right, int * bottom)Gets the page margins.
fnvoid fltk_postscript_get_origin(PostScriptFileDevicePtr ps, int * x, int * y)Gets the current origin.
fnvoid fltk_postscript_set_origin(PostScriptFileDevicePtr ps, int x, int y)Sets the origin for drawing.
fnvoid fltk_postscript_scale(PostScriptFileDevicePtr ps, float scale_x, float scale_y)Scales the drawing.
fnvoid fltk_postscript_rotate(PostScriptFileDevicePtr ps, float angle)Rotates the drawing.
fnvoid fltk_postscript_translate(PostScriptFileDevicePtr ps, int x, int y)Translates the origin.
fnvoid fltk_postscript_untranslate(PostScriptFileDevicePtr ps)Removes the last translation.
fnvoid fltk_postscript_print_widget(PostScriptFileDevicePtr ps, WidgetPtr widget, int delta_x, int delta_y)Prints a widget to the PostScript output.
fnvoid fltk_postscript_print_window(PostScriptFileDevicePtr ps, WindowPtr window, int delta_x, int delta_y)Prints a window and its contents to the PostScript output.
fnvoid fltk_postscript_set_current(PostScriptFileDevicePtr ps)Sets the PostScript device as the current drawing surface.
fnCustomWidgetPtr fltk_custom_widget_new(int x, int y, int w, int h, const(char) * label)Creates a new custom widget.
fnvoid fltk_custom_widget_delete(CustomWidgetPtr widget)Destroys a custom widget.
fnWidgetPtr fltk_custom_widget_as_widget(CustomWidgetPtr widget)Casts a custom widget to base widget.
fnvoid fltk_custom_widget_set_draw_callback(CustomWidgetPtr widget, CustomWidgetDrawCallback callback, void * userdata)Sets the draw callback for the custom widget.
fnvoid fltk_custom_widget_set_handle_callback(CustomWidgetPtr widget, CustomWidgetHandleCallback callback, void * userdata)Sets the handle callback for the custom widget.
fnvoid fltk_custom_widget_redraw(CustomWidgetPtr widget)Triggers a redraw of the custom widget.
fndouble fltk_valuator_value(WidgetPtr widget)Gets the current value of a valuator widget.
fnint fltk_valuator_set_value(WidgetPtr widget, double val)Sets the current value of a valuator widget. Returns non-zero if value changed.
fndouble fltk_valuator_minimum(WidgetPtr widget)Gets the minimum value of a valuator widget.
fnvoid fltk_valuator_set_minimum(WidgetPtr widget, double val)Sets the minimum value of a valuator widget.
fndouble fltk_valuator_maximum(WidgetPtr widget)Gets the maximum value of a valuator widget.
fnvoid fltk_valuator_set_maximum(WidgetPtr widget, double val)Sets the maximum value of a valuator widget.
fnvoid fltk_valuator_range(WidgetPtr widget, double min, double max)Sets the minimum and maximum values of a valuator widget.
fnvoid fltk_valuator_bounds(WidgetPtr widget, double min, double max)Sets the minimum and maximum values of a valuator widget (alias for range).
fndouble fltk_valuator_step(WidgetPtr widget)Gets the step value of a valuator widget.
fnvoid fltk_valuator_set_step(WidgetPtr widget, double val)Sets the step value of a valuator widget.
fnvoid fltk_valuator_set_step_fraction(WidgetPtr widget, double a, int b)Sets the step value as a fraction A/B.
fnvoid fltk_valuator_precision(WidgetPtr widget, int digits)Sets the precision (number of decimal digits) for the valuator.
fndouble fltk_valuator_round(WidgetPtr widget, double val)Rounds a value to the nearest step multiple.
fndouble fltk_valuator_clamp(WidgetPtr widget, double val)Clamps a value to the valuator's range.
fndouble fltk_valuator_increment(WidgetPtr widget, double val, int n)Increments the value by n steps.
fnint fltk_valuator_format(WidgetPtr widget, char * buffer)Formats the value as a string. Returns number of characters written.
fnPositionerPtr fltk_positioner_new(int x, int y, int w, int h, const(char) * label)Creates a new positioner widget.
fnvoid fltk_positioner_delete(PositionerPtr pos)Destroys a positioner widget.
fnWidgetPtr fltk_positioner_as_widget(PositionerPtr pos)Casts a positioner to widget.
fndouble fltk_positioner_xvalue(PositionerPtr pos)Gets the X axis value.
fnint fltk_positioner_set_xvalue(PositionerPtr pos, double val)Sets the X axis value. Returns non-zero if value changed.
fndouble fltk_positioner_yvalue(PositionerPtr pos)Gets the Y axis value.
fnint fltk_positioner_set_yvalue(PositionerPtr pos, double val)Sets the Y axis value. Returns non-zero if value changed.
fnint fltk_positioner_value(PositionerPtr pos, double x, double y)Sets both X and Y values. Returns non-zero if either value changed.
fndouble fltk_positioner_xminimum(PositionerPtr pos)Gets the X axis minimum.
fnvoid fltk_positioner_set_xminimum(PositionerPtr pos, double val)Sets the X axis minimum.
fndouble fltk_positioner_xmaximum(PositionerPtr pos)Gets the X axis maximum.
fnvoid fltk_positioner_set_xmaximum(PositionerPtr pos, double val)Sets the X axis maximum.
fnvoid fltk_positioner_xbounds(PositionerPtr pos, double min, double max)Sets the X axis bounds.
fndouble fltk_positioner_yminimum(PositionerPtr pos)Gets the Y axis minimum.
fnvoid fltk_positioner_set_yminimum(PositionerPtr pos, double val)Sets the Y axis minimum.
fndouble fltk_positioner_ymaximum(PositionerPtr pos)Gets the Y axis maximum.
fnvoid fltk_positioner_set_ymaximum(PositionerPtr pos, double val)Sets the Y axis maximum.
fnvoid fltk_positioner_ybounds(PositionerPtr pos, double min, double max)Sets the Y axis bounds.
fnvoid fltk_positioner_set_xstep(PositionerPtr pos, double val)Sets the X axis step value.
fnvoid fltk_positioner_set_ystep(PositionerPtr pos, double val)Sets the Y axis step value.
fnChartPtr fltk_chart_new(int x, int y, int w, int h, const(char) * label)Creates a new chart widget.
fnvoid fltk_chart_delete(ChartPtr chart)Destroys a chart widget.
fnWidgetPtr fltk_chart_as_widget(ChartPtr chart)Casts a chart to widget.
fnvoid fltk_chart_clear(ChartPtr chart)Clears all data from the chart.
fnvoid fltk_chart_add(ChartPtr chart, double val, const(char) * str, uint col)Adds a data value to the chart.
fnvoid fltk_chart_insert(ChartPtr chart, int ind, double val, const(char) * str, uint col)Inserts a data value at a specific index (1-based).
fnvoid fltk_chart_replace(ChartPtr chart, int ind, double val, const(char) * str, uint col)Replaces a data value at a specific index (1-based).
fnvoid fltk_chart_bounds(ChartPtr chart, double * a, double * b)Gets the chart bounds.
fnvoid fltk_chart_set_bounds(ChartPtr chart, double a, double b)Sets the chart bounds.
fnint fltk_chart_size(ChartPtr chart)Gets the number of data values in the chart.
fnint fltk_chart_maxsize(ChartPtr chart)Gets the maximum number of data values for the chart.
fnvoid fltk_chart_set_maxsize(ChartPtr chart, int m)Sets the maximum number of data values for the chart.
fnint fltk_chart_textfont(ChartPtr chart)Gets the chart's text font.
fnvoid fltk_chart_set_textfont(ChartPtr chart, int s)Sets the chart's text font.
fnint fltk_chart_textsize(ChartPtr chart)Gets the chart's text size.
fnvoid fltk_chart_set_textsize(ChartPtr chart, int s)Sets the chart's text size.
fnuint fltk_chart_textcolor(ChartPtr chart)Gets the chart's text color.
fnvoid fltk_chart_set_textcolor(ChartPtr chart, uint n)Sets the chart's text color.
fnubyte fltk_chart_autosize(ChartPtr chart)Gets whether the chart auto-sizes its bounds.
fnvoid fltk_chart_set_autosize(ChartPtr chart, ubyte n)Sets whether the chart auto-sizes its bounds.
fnubyte fltk_chart_get_type(ChartPtr chart)Gets the chart type.
fnvoid fltk_chart_set_type(ChartPtr chart, ubyte t)Sets the chart type.
fnClockPtr fltk_clock_new(int x, int y, int w, int h, const(char) * label)Creates a new clock widget.
fnClockPtr fltk_clock_new_with_type(ubyte type, int x, int y, int w, int h, const(char) * label)Creates a new clock widget with specified type.
fnvoid fltk_clock_delete(ClockPtr clock)Destroys a clock widget.
fnWidgetPtr fltk_clock_as_widget(ClockPtr clock)Casts a clock to widget.
fnulong fltk_clock_value(ClockPtr clock)Gets the clock's value as Unix time.
fnvoid fltk_clock_set_value(ClockPtr clock, ulong v)Sets the clock's value as Unix time.
fnvoid fltk_clock_set_value_hms(ClockPtr clock, int h, int m, int s)Sets the clock's value using hour, minute, second.
fnint fltk_clock_hour(ClockPtr clock)Gets the displayed hour (0-23).
fnint fltk_clock_minute(ClockPtr clock)Gets the displayed minute (0-59).
fnint fltk_clock_second(ClockPtr clock)Gets the displayed second (0-59).
fnubyte fltk_clock_get_type(ClockPtr clock)Gets the clock type.
fnvoid fltk_clock_set_type(ClockPtr clock, ubyte t)Sets the clock type.
fnHelpDialogPtr fltk_help_dialog_new()Creates a new help dialog.
fnvoid fltk_help_dialog_delete(HelpDialogPtr dialog)Destroys a help dialog.
fnvoid fltk_help_dialog_show(HelpDialogPtr dialog)Shows the help dialog.
fnvoid fltk_help_dialog_hide(HelpDialogPtr dialog)Hides the help dialog.
fnint fltk_help_dialog_visible(HelpDialogPtr dialog)Returns whether the dialog is visible.
fnvoid fltk_help_dialog_load(HelpDialogPtr dialog, const(char) * filename)Loads a file into the help dialog.
fnvoid fltk_help_dialog_set_value(HelpDialogPtr dialog, const(char) * content)Sets the HTML content directly.
fnconst(char) * fltk_help_dialog_value(HelpDialogPtr dialog)Gets the current HTML content.
fnint fltk_help_dialog_textsize(HelpDialogPtr dialog)Gets the text size.
fnvoid fltk_help_dialog_set_textsize(HelpDialogPtr dialog, int size)Sets the text size.
fnvoid fltk_help_dialog_topline_name(HelpDialogPtr dialog, const(char) * name)Scrolls to a named target in the document.
fnvoid fltk_help_dialog_topline(HelpDialogPtr dialog, int line)Scrolls to a specific line number.
fnvoid fltk_help_dialog_position(HelpDialogPtr dialog, int x, int y)Sets the position of the dialog window.
fnvoid fltk_help_dialog_resize(HelpDialogPtr dialog, int x, int y, int w, int h)Resizes the dialog window.
fnint fltk_help_dialog_w(HelpDialogPtr dialog)Gets the dialog width.
fnint fltk_help_dialog_h(HelpDialogPtr dialog)Gets the dialog height.
fnint fltk_help_dialog_x(HelpDialogPtr dialog)Gets the dialog X position.
fnint fltk_help_dialog_y(HelpDialogPtr dialog)Gets the dialog Y position.
fnColorChooserPtr fltk_color_chooser_new(int x, int y, int w, int h, const(char) * label)Creates a new color chooser widget.
fnvoid fltk_color_chooser_delete(ColorChooserPtr cc)Destroys a color chooser widget.
fnWidgetPtr fltk_color_chooser_as_widget(ColorChooserPtr cc)Casts a color chooser to widget.
fnGroupPtr fltk_color_chooser_as_group(ColorChooserPtr cc)Casts a color chooser to group.
fnint fltk_color_chooser_mode(ColorChooserPtr cc)Gets the color chooser mode (0=rgb, 1=byte, 2=hex, 3=hsv).
fnvoid fltk_color_chooser_set_mode(ColorChooserPtr cc, int mode)Sets the color chooser mode.
fndouble fltk_color_chooser_hue(ColorChooserPtr cc)Gets the current hue value (0-6).
fndouble fltk_color_chooser_saturation(ColorChooserPtr cc)Gets the current saturation value (0-1).
fndouble fltk_color_chooser_value(ColorChooserPtr cc)Gets the current value/brightness (0-1).
fndouble fltk_color_chooser_r(ColorChooserPtr cc)Gets the current red component (0-1).
fndouble fltk_color_chooser_g(ColorChooserPtr cc)Gets the current green component (0-1).
fndouble fltk_color_chooser_b(ColorChooserPtr cc)Gets the current blue component (0-1).
fnint fltk_color_chooser_hsv(ColorChooserPtr cc, double h, double s, double v)Sets the color using HSV values. Returns non-zero if color changed.
fnint fltk_color_chooser_rgb(ColorChooserPtr cc, double r, double g, double b)Sets the color using RGB values. Returns non-zero if color changed.
fnvoid fltk_color_chooser_hsv2rgb(double h, double s, double v, double * r, double * g, double * b)Converts HSV to RGB.
fnvoid fltk_color_chooser_rgb2hsv(double r, double g, double b, double * h, double * s, double * v)Converts RGB to HSV.
fnSysMenuBarPtr fltk_sys_menu_bar_new(int x, int y, int w, int h, const(char) * label)Creates a new system menu bar widget.
fnvoid fltk_sys_menu_bar_delete(SysMenuBarPtr menu)Destroys a system menu bar widget.
fnWidgetPtr fltk_sys_menu_bar_as_widget(SysMenuBarPtr menu)Casts a system menu bar to widget.
fnint fltk_sys_menu_bar_add(SysMenuBarPtr menu, const(char) * path, int shortcut, ShimCallback callback, void * userdata, int flags)Adds a menu item. Returns index of new item.
fnint fltk_sys_menu_bar_insert(SysMenuBarPtr menu, int index, const(char) * label, int shortcut, ShimCallback callback, void * userdata, int flags)Inserts a menu item at index. Returns index of new item.
fnvoid fltk_sys_menu_bar_remove(SysMenuBarPtr menu, int index)Removes a menu item.
fnvoid fltk_sys_menu_bar_replace(SysMenuBarPtr menu, int index, const(char) * name)Replaces the label of a menu item.
fnvoid fltk_sys_menu_bar_clear(SysMenuBarPtr menu)Clears all menu items.
fnint fltk_sys_menu_bar_clear_submenu(SysMenuBarPtr menu, int index)Clears a submenu. Returns 0 on success.
fnvoid fltk_sys_menu_bar_update(SysMenuBarPtr menu)Updates the system menu bar to reflect changes.
fnint fltk_sys_menu_bar_mode(SysMenuBarPtr menu, int index)Gets the flags of a menu item.
fnvoid fltk_sys_menu_bar_set_mode(SysMenuBarPtr menu, int index, int flags)Sets the flags of a menu item.
fnvoid fltk_sys_menu_bar_shortcut(SysMenuBarPtr menu, int index, int shortcut)Sets the shortcut of a menu item.
fnFileIconPtr fltk_file_icon_new(const(char) * pattern, int type)Creates a new file icon.
fnvoid fltk_file_icon_delete(FileIconPtr icon)Destroys a file icon.
fnvoid fltk_file_icon_clear(FileIconPtr icon)Clears all icon data from the icon.
fnshort * fltk_file_icon_add(FileIconPtr icon, short d)Adds a data value to the icon.
fnshort * fltk_file_icon_add_color(FileIconPtr icon, uint c)Adds a color value to the icon.
fnshort * fltk_file_icon_add_vertex(FileIconPtr icon, int x, int y)Adds a vertex value to the icon (integer coordinates 0-10000).
fnshort * fltk_file_icon_add_vertex_float(FileIconPtr icon, float x, float y)Adds a vertex value to the icon (float coordinates 0.0-1.0).
fnvoid fltk_file_icon_draw(FileIconPtr icon, int x, int y, int w, int h, uint ic, int active)Draws the icon.
fnvoid fltk_file_icon_label(FileIconPtr icon, WidgetPtr widget)Associates the icon with a widget as its label.
fnvoid fltk_file_icon_load(FileIconPtr icon, const(char) * filename)Loads icon data from a file.
fnint fltk_file_icon_load_fti(FileIconPtr icon, const(char) * fti)Loads icon data from an FTI file.
fnint fltk_file_icon_load_image(FileIconPtr icon, const(char) * filename)Loads icon data from an image file.
fnFileIconPtr fltk_file_icon_next(FileIconPtr icon)Returns the next file icon in the linked list.
fnconst(char) * fltk_file_icon_pattern(FileIconPtr icon)Returns the filename matching pattern.
fnint fltk_file_icon_size(FileIconPtr icon)Returns the number of data words in the icon.
fnint fltk_file_icon_type(FileIconPtr icon)Returns the file type associated with the icon.
fnshort * fltk_file_icon_value(FileIconPtr icon)Returns the data array for the icon.
fnFileIconPtr fltk_file_icon_find(const(char) * filename, int filetype)Finds an icon for a given filename.
fnFileIconPtr fltk_file_icon_first()Returns the first icon in the linked list.
fnvoid fltk_file_icon_load_system_icons()Loads the standard system icons.
fnMultiLabelPtr fltk_multi_label_new()Creates a new multi-label.
fnvoid fltk_multi_label_delete(MultiLabelPtr ml)Destroys a multi-label.
fnvoid fltk_multi_label_set_labela_text(MultiLabelPtr ml, const(char) * text)Sets the first label element as text.
fnvoid fltk_multi_label_set_labelb_text(MultiLabelPtr ml, const(char) * text)Sets the second label element as text.
fnvoid fltk_multi_label_set_labela_image(MultiLabelPtr ml, ImagePtr image)Sets the first label element as an image.
fnvoid fltk_multi_label_set_labelb_image(MultiLabelPtr ml, ImagePtr image)Sets the second label element as an image.
fnint fltk_multi_label_typea(MultiLabelPtr ml)Gets the type of the first label element.
fnint fltk_multi_label_typeb(MultiLabelPtr ml)Gets the type of the second label element.
fnvoid fltk_multi_label_label_widget(MultiLabelPtr ml, WidgetPtr widget)Associates the multi-label with a widget.
fnvoid fltk_multi_label_label_menu_item(MultiLabelPtr ml, MenuBarPtr menu, int index)Associates the multi-label with a menu item.
fnPreferencesPtr fltk_preferences_new(int root, const(char) * vendor, const(char) * application)Creates a new preferences object with root location.
fnPreferencesPtr fltk_preferences_new_with_path(const(char) * path, const(char) * vendor, const(char) * application)Creates a new preferences object with custom path.
fnPreferencesPtr fltk_preferences_new_group(PreferencesPtr parent, const(char) * group)Creates a child preferences group.
fnvoid fltk_preferences_delete(PreferencesPtr prefs)Destroys a preferences object.
fnint fltk_preferences_groups(PreferencesPtr prefs)Returns the number of groups in this preferences.
fnconst(char) * fltk_preferences_group(PreferencesPtr prefs, int index)Returns the name of a group by index.
fnint fltk_preferences_group_exists(PreferencesPtr prefs, const(char) * key)Checks if a group exists.
fnint fltk_preferences_delete_group(PreferencesPtr prefs, const(char) * group)Deletes a group.
fnint fltk_preferences_delete_all_groups(PreferencesPtr prefs)Deletes all groups.
fnint fltk_preferences_entries(PreferencesPtr prefs)Returns the number of entries in this preferences.
fnconst(char) * fltk_preferences_entry(PreferencesPtr prefs, int index)Returns the name of an entry by index.
fnint fltk_preferences_entry_exists(PreferencesPtr prefs, const(char) * key)Checks if an entry exists.
fnint fltk_preferences_delete_entry(PreferencesPtr prefs, const(char) * entry)Deletes an entry.
fnint fltk_preferences_delete_all_entries(PreferencesPtr prefs)Deletes all entries.
fnint fltk_preferences_clear(PreferencesPtr prefs)Clears all entries and groups.
fnint fltk_preferences_set_int(PreferencesPtr prefs, const(char) * entry, int value)Sets an integer value.
fnint fltk_preferences_set_float(PreferencesPtr prefs, const(char) * entry, float value)Sets a float value.
fnint fltk_preferences_set_double(PreferencesPtr prefs, const(char) * entry, double value)Sets a double value.
fnint fltk_preferences_set_string(PreferencesPtr prefs, const(char) * entry, const(char) * value)Sets a string value.
fnint fltk_preferences_get_int(PreferencesPtr prefs, const(char) * entry, int * value, int defaultValue)Gets an integer value.
fnint fltk_preferences_get_float(PreferencesPtr prefs, const(char) * entry, float * value, float defaultValue)Gets a float value.
fnint fltk_preferences_get_double(PreferencesPtr prefs, const(char) * entry, double * value, double defaultValue)Gets a double value.
fnint fltk_preferences_get_string(PreferencesPtr prefs, const(char) * entry, char * * value, const(char) * defaultValue)Gets a string value (caller must free the returned string).
fnint fltk_preferences_size(PreferencesPtr prefs, const(char) * entry)Gets the size of an entry's data.
fnint fltk_preferences_get_userdata_path(PreferencesPtr prefs, char * path, int pathlen)Gets the user data path for this application.
fnvoid fltk_preferences_flush(PreferencesPtr prefs)Flushes changes to disk.
fnconst(char) * fltk_preferences_new_uuid()Generates a new UUID string.
fnfloat fltk_tooltip_delay()Gets the tooltip delay in seconds.
fnvoid fltk_tooltip_set_delay(float f)Sets the tooltip delay in seconds.
fnfloat fltk_tooltip_hoverdelay()Gets the tooltip hover delay (delay between tooltips).
fnvoid fltk_tooltip_set_hoverdelay(float f)Sets the tooltip hover delay (delay between tooltips).
fnint fltk_tooltip_enabled()Returns non-zero if tooltips are enabled.
fnvoid fltk_tooltip_enable(int b)Enables or disables tooltips on all widgets.
fnvoid fltk_tooltip_disable()Disables tooltips on all widgets.
fnint fltk_tooltip_font()Gets the typeface for the tooltip text.
fnvoid fltk_tooltip_set_font(int font)Sets the typeface for the tooltip text.
fnint fltk_tooltip_size()Gets the size of the tooltip text.
fnvoid fltk_tooltip_set_size(int size)Sets the size of the tooltip text.
fnuint fltk_tooltip_color()Gets the background color for tooltips.
fnvoid fltk_tooltip_set_color(uint c)Sets the background color for tooltips.
fnuint fltk_tooltip_textcolor()Gets the text color for tooltips.
fnvoid fltk_tooltip_set_textcolor(uint c)Sets the text color for tooltips.
fnint fltk_tooltip_margin_width()Gets the margin width (extra space left/right of text).
fnvoid fltk_tooltip_set_margin_width(int v)Sets the margin width (extra space left/right of text).
fnint fltk_tooltip_margin_height()Gets the margin height (extra space above/below text).
fnvoid fltk_tooltip_set_margin_height(int v)Sets the margin height (extra space above/below text).
fnint fltk_tooltip_wrap_width()Gets the maximum width for tooltip text before word wrap.
fnvoid fltk_tooltip_set_wrap_width(int v)Sets the maximum width for tooltip text before word wrap.
fnWidgetPtr fltk_tooltip_current()Gets the current tooltip target widget.
fnvoid fltk_tooltip_set_current(WidgetPtr w)Sets the current tooltip target widget.
fnvoid fltk_tooltip_enter_area(WidgetPtr w, int x, int y, int width, int height, const(char) * tip)Manually enter a tooltip area for a widget.
fnPluginPtr fltk_plugin_new(const(char) * klass, const(char) * name)Creates a new plugin with the given class and name.
fnvoid fltk_plugin_delete(PluginPtr plugin)Deletes a plugin.
fnPluginManagerPtr fltk_plugin_manager_new(const(char) * klass)Creates a new plugin manager for the given class.
fnvoid fltk_plugin_manager_delete(PluginManagerPtr mgr)Deletes a plugin manager.
fnint fltk_plugin_manager_plugins(PluginManagerPtr mgr)Gets the number of plugins in the managed class.
fnPluginPtr fltk_plugin_manager_plugin_by_index(PluginManagerPtr mgr, int index)Gets a plugin by index.
fnPluginPtr fltk_plugin_manager_plugin_by_name(PluginManagerPtr mgr, const(char) * name)Gets a plugin by name.
fnvoid * fltk_plugin_manager_add_plugin(PluginManagerPtr mgr, const(char) * name, PluginPtr plugin)Adds a plugin to the manager. Returns plugin ID.
fnvoid fltk_plugin_manager_remove_plugin(void * id)Removes a plugin by its ID.
fnint fltk_plugin_manager_load(const(char) * filename)Loads a plugin from a dynamic library file. Returns 0 on success.
fnint fltk_plugin_manager_load_all(const(char) * filepath, const(char) * pattern)Loads all plugins from a directory matching a pattern. Returns count loaded.
fnCopySurfacePtr fltk_copy_surface_new(int w, int h)Creates a new copy surface for copying graphics to the clipboard.
fnvoid fltk_copy_surface_delete(CopySurfacePtr surface)Deletes a copy surface and loads the clipboard with the graphical data.
fnvoid fltk_copy_surface_set_current(CopySurfacePtr surface)Makes this surface the current drawing target.
fnvoid fltk_copy_surface_draw(CopySurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y)Draws a widget to the copy surface.
fnvoid fltk_copy_surface_draw_decorated_window(CopySurfacePtr surface, WindowPtr win, int delta_x, int delta_y)Draws a decorated window to the copy surface.
fnint fltk_copy_surface_w(CopySurfacePtr surface)Gets the width of the copy surface.
fnint fltk_copy_surface_h(CopySurfacePtr surface)Gets the height of the copy surface.
fnImageSurfacePtr fltk_image_surface_new(int w, int h, int highres)Creates a new image surface for drawing to an in-memory image.
fnvoid fltk_image_surface_delete(ImageSurfacePtr surface)Deletes an image surface.
fnvoid fltk_image_surface_set_current(ImageSurfacePtr surface)Makes this surface the current drawing target.
fnvoid fltk_image_surface_draw(ImageSurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y)Draws a widget to the image surface.
fnvoid fltk_image_surface_draw_decorated_window(ImageSurfacePtr surface, WindowPtr win, int delta_x, int delta_y)Draws a decorated window to the image surface.
fnImagePtr fltk_image_surface_image(ImageSurfacePtr surface)Gets the resulting RGB image from the surface. Caller owns the returned image.
fnImagePtr fltk_image_surface_highres_image(ImageSurfacePtr surface)Gets a high-resolution shared image from the surface. Caller owns the returned image.
fnPostScriptFileDevicePtr fltk_postscript_file_device_new()Creates a new FlPostScriptFile_Device for drawing to PostScript files.
fnvoid fltk_postscript_file_device_delete(PostScriptFileDevicePtr dev)Deletes a PostScript file device.
fnint fltk_postscript_file_device_start_job_file(PostScriptFileDevicePtr dev, void * output, int pagecount, int format, int layout)Starts a print job to a FILE stream (non-interactive). Returns 0 on success.
fnint fltk_postscript_file_device_start_page(PostScriptFileDevicePtr dev)Starts a new page. Returns 0 on success.
fnint fltk_postscript_file_device_end_page(PostScriptFileDevicePtr dev)Ends the current page. Returns 0 on success.
fnint fltk_postscript_file_device_printable_rect(PostScriptFileDevicePtr dev, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.
fnvoid fltk_postscript_file_device_margins(PostScriptFileDevicePtr dev, int * left, int * top, int * right, int * bottom)Gets the page margins.
fnvoid fltk_postscript_file_device_get_origin(PostScriptFileDevicePtr dev, int * x, int * y)Gets the current origin.
fnvoid fltk_postscript_file_device_set_origin(PostScriptFileDevicePtr dev, int x, int y)Sets the origin for drawing operations.
fnvoid fltk_postscript_file_device_scale(PostScriptFileDevicePtr dev, float scale_x, float scale_y)Sets the scale for drawing operations.
fnvoid fltk_postscript_file_device_rotate(PostScriptFileDevicePtr dev, float angle)Rotates drawing operations.
fnvoid fltk_postscript_file_device_translate(PostScriptFileDevicePtr dev, int x, int y)Translates the origin.
fnvoid fltk_postscript_file_device_print_widget(PostScriptFileDevicePtr dev, WidgetPtr widget, int delta_x, int delta_y)Prints a widget to the PostScript output.
fnvoid fltk_postscript_file_device_print_window(PostScriptFileDevicePtr dev, WindowPtr win, int x_offset, int y_offset)Prints a window with decorations to the PostScript output.
fnvoid fltk_postscript_file_device_set_current(PostScriptFileDevicePtr dev)Makes this device the current drawing target.
fnvoid fltk_gl_start()Initializes OpenGL drawing in the current window.
fnvoid fltk_gl_finish()Finishes OpenGL drawing.
fnvoid fltk_gl_color(uint color)Sets the current OpenGL drawing color.
fnvoid fltk_gl_rect(int x, int y, int w, int h)Draws an outlined rectangle in OpenGL.
fnvoid fltk_gl_rectf(int x, int y, int w, int h)Draws a filled rectangle in OpenGL.
fnvoid fltk_gl_font(int fontid, int size)Sets the font for OpenGL text drawing.
fnint fltk_gl_height()Gets the height of the current OpenGL font.
fnint fltk_gl_descent()Gets the descent of the current OpenGL font.
fndouble fltk_gl_width(const(char) * text)Gets the width of a string in the current OpenGL font.
fndouble fltk_gl_width_n(const(char) * text, int n)Gets the width of n characters in the current OpenGL font.
fnvoid fltk_gl_draw(const(char) * text)Draws text at the current raster position in OpenGL.
fnvoid fltk_gl_draw_n(const(char) * text, int n)Draws n characters at the current raster position in OpenGL.
fnvoid fltk_gl_draw_at(const(char) * text, int x, int y)Draws text at integer coordinates in OpenGL.
fnvoid fltk_gl_draw_at_f(const(char) * text, float x, float y)Draws text at floating-point coordinates in OpenGL.
fnvoid fltk_gl_draw_in_box(const(char) * text, int x, int y, int w, int h, int align_)Draws text within a bounding box with alignment in OpenGL.
fnvoid fltk_gl_measure(const(char) * text, int * w, int * h)Measures text dimensions in the current OpenGL font.
fnvoid fltk_gl_draw_image(const(ubyte) * data, int x, int y, int w, int h, int d, int ld)Draws an image in OpenGL.
fnconst(char) * fltk_filename_name(const(char) * filename)Gets the filename portion of a path.
fnconst(char) * fltk_filename_ext(const(char) * buf)Gets the extension portion of a filename.
fnchar * fltk_filename_setext(char * to, int tolen, const(char) * ext)Sets or replaces the extension of a filename.
fnint fltk_filename_expand(char * to, int tolen, const(char) * from)Expands environment variables and ~ in a filename.
fnint fltk_filename_absolute(char * to, int tolen, const(char) * from)Converts a relative path to absolute.
fnint fltk_filename_relative(char * to, int tolen, const(char) * from)Converts an absolute path to relative.
fnint fltk_filename_match(const(char) * name, const(char) * pattern)Matches a filename against a pattern.
fnint fltk_filename_isdir(const(char) * name)Checks if a path is a directory.
fnint fltk_open_uri(const(char) * uri, char * msg, int msglen)Opens a URI using the system's default handler.
fnvoid fltk_decode_uri(char * uri)Decodes a URI-encoded string in place.
fnconst(char) * toStringz(string s) @trustedConverts a D string to a null-terminated C string.
fnbool isValid(WidgetPtr widget) @safe nothrow @nogcChecks if a widget handle is valid (non-null).
fnbool isValid(WindowPtr window) @safe nothrow @nogcChecks if a window handle is valid (non-null).

Variables 6

enumvarFLTK_OK = 0

Operation completed successfully

enumvarFLTK_ERROR = - 1

Generic error

enumvarFLTK_ERROR_INVALID = - 2

Invalid parameter (null pointer, out of range, etc.)

enumvarFLTK_ERROR_NOMEM = - 3

Memory allocation failed

enumvarFLTK_ERROR_NOTSUP = - 4

Operation not supported

enumvarFLTK_PATH_MAX = 2048

Maximum path length for filename buffers.