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);
}
}
License
Copyright
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.
private void * ptrAlias 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.
private void * ptrAlias for window handle pointer
Opaque handle for Fl_Double_Window.
Double-buffered windows reduce flicker during redraws.
private void * ptrAlias 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.
private void * ptrAlias 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.
private void * ptrAlias for menu window handle pointer
Opaque handle for Fl_Group.
Groups are containers that can hold child widgets.
private void * ptrAlias for group handle pointer
Opaque handle for Fl_Box.
Boxes are simple widgets for displaying text or decorative frames.
private void * ptrOpaque handle for Fl_Button.
Buttons are clickable widgets that trigger callbacks.
private void * ptrAlias for button handle pointer
Opaque handle for Fl_Input.
InputPtr widgets allow text entry.
private void * ptrAlias for input handle pointer
Opaque handle for Fl_Value_Slider.
ValueSlider widgets allow selecting a value from a range.
private void * ptrAlias for value slider handle pointer
Opaque handle for Fl_Slider.
Slider widgets allow selecting a value from a range (without value display).
private void * ptrAlias for slider handle pointer
Opaque handle for Fl_Check_Button.
CheckButton widgets are checkboxes.
private void * ptrAlias for check button handle pointer
Opaque handle for Fl_Radio_Button.
RadioButton widgets are mutually exclusive within a group.
private void * ptrAlias for radio button handle pointer
Opaque handle for Fl_Toggle_Button.
ToggleButton widgets maintain on/off state.
private void * ptrAlias for toggle button handle pointer
Opaque handle for Fl_Light_Button.
LightButton widgets have an indicator light showing on/off state.
private void * ptrAlias 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).
private void * ptrAlias 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).
private void * ptrAlias for radio round button handle pointer
Opaque handle for Fl_Toggle_Light_Button.
ToggleLightButton widgets are light buttons that maintain on/off state.
private void * ptrAlias for toggle light button handle pointer
Opaque handle for Fl_Toggle_Round_Button.
ToggleRoundButton widgets are round buttons that maintain on/off state.
private void * ptrAlias for toggle round button handle pointer
Opaque handle for Fl_Repeat_Button.
RepeatButton widgets auto-repeat callback when held down.
private void * ptrAlias for repeat button handle pointer
Opaque handle for Fl_Return_Button.
ReturnButton widgets respond to Enter key as default button.
private void * ptrAlias for return button handle pointer
Opaque handle for Fl_Round_Button.
RoundButton widgets have round radio-style appearance.
private void * ptrAlias for round button handle pointer
Opaque handle for Fl_Float_Input.
FloatInput widgets accept only floating-point numbers.
private void * ptrAlias for float input handle pointer
Opaque handle for Fl_Int_Input.
IntInput widgets accept only integer numbers.
private void * ptrAlias for int input handle pointer
Opaque handle for Fl_Secret_Input.
SecretInput widgets display dots/asterisks for password entry.
private void * ptrAlias for secret input handle pointer
Opaque handle for Fl_Multiline_Input.
MultilineInput widgets accept multiple lines of text.
private void * ptrAlias for multiline input handle pointer
Opaque handle for Fl_File_Input.
FileInput widgets provide file path input with navigation.
private void * ptrAlias for file input handle pointer
Opaque handle for Fl_Multiline_Output.
MultilineOutput widgets display multiple lines of read-only text.
private void * ptrAlias for multiline output handle pointer
Opaque handle for Fl_Dial.
Dial widgets provide a circular dial for selecting numeric values.
private void * ptrAlias for dial handle pointer
Opaque handle for Fl_Counter.
Counter widgets provide increment/decrement buttons for numeric values.
private void * ptrAlias for counter handle pointer
Opaque handle for Fl_Roller.
Roller widgets provide a rolling valuator for selecting numeric values.
private void * ptrAlias for roller handle pointer
Opaque handle for Fl_Scrollbar.
Scrollbar widgets for scrolling content.
private void * ptrAlias for scrollbar handle pointer
Opaque handle for Fl_Value_Input.
ValueInput widgets provide text input for numeric values.
private void * ptrAlias for value input handle pointer
Opaque handle for Fl_Value_Output.
ValueOutput widgets display read-only numeric values.
private void * ptrAlias for value output handle pointer
Opaque handle for Fl_Adjuster.
Adjuster widgets provide arrows for incrementing/decrementing values.
private void * ptrAlias for adjuster handle pointer
Opaque handle for Fl_Tile.
Tile widgets allow resizing of children by dragging borders.
private void * ptrAlias for tile handle pointer
Opaque handle for Fl_Wizard.
Wizard widgets show one child at a time with prev/next navigation.
private void * ptrAlias for wizard handle pointer
Opaque handle for Fl_Spinner.
Spinner widgets combine input field with increment/decrement buttons.
private void * ptrAlias for spinner handle pointer
Opaque handle for Fl_Menu_Bar.
MenuBar widgets provide a horizontal menu bar.
private void * ptrAlias for menu bar handle pointer
Opaque handle for Fl_Menu_Button.
MenuButton widgets show a popup menu when clicked.
private void * ptrAlias for menu button handle pointer
Opaque handle for Fl_Input_Choice.
InputChoice widgets combine input field with dropdown menu.
private void * ptrAlias for input choice handle pointer
Opaque handle for Fl_Text_Editor.
TextEditor widgets provide full text editing capabilities.
private void * ptrAlias for text editor handle pointer
Opaque handle for Fl_Output.
Output widgets display read-only text.
private void * ptrAlias for output handle pointer
Opaque handle for Fl_Progress.
Progress widgets display progress bars.
private void * ptrAlias for progress handle pointer
Opaque handle for Fl_Pack.
Pack widgets automatically arrange children.
private void * ptrAlias for pack handle pointer
Opaque handle for Fl_Tabs.
Tabs widgets display tabbed pages.
private void * ptrAlias for tabs handle pointer
Opaque handle for Fl_Scroll.
Scroll widgets provide scrollable containers.
private void * ptrAlias for scroll handle pointer
Opaque handle for Fl_Choice.
Choice widgets are dropdown menus.
private void * ptrAlias for choice handle pointer
Opaque handle for Fl_Text_Buffer.
TextBuffer holds text content for text displays/editors.
private void * ptrAlias for text buffer handle pointer
Opaque handle for Fl_Text_Display.
TextDisplay widgets show text content.
private void * ptrAlias for text display handle pointer
Opaque handle for Fl_Native_File_Chooser.
Native file chooser provides platform-native file selection dialogs.
private void * ptrAlias for native file chooser handle pointer
Opaque handle for Fl_Hold_Browser.
Single-selection list browser widget.
private void * ptrAlias for hold browser handle pointer
Opaque handle for Fl_Multi_Browser.
Multiple-selection list browser widget.
private void * ptrAlias for multi browser handle pointer
Opaque handle for Fl_Select_Browser.
Selection browser widget.
private void * ptrAlias for select browser handle pointer
Opaque handle for Fl_File_Browser.
File system browser widget.
private void * ptrAlias for file browser handle pointer
Opaque handle for Fl_Check_Browser.
Browser widget with checkboxes for each item.
private void * ptrAlias for check browser handle pointer
Opaque handle for Fl_Tree.
Tree widget for hierarchical data display.
private void * ptrAlias for tree handle pointer
Opaque handle for Fl_Tree_Item.
Individual item in a tree widget.
private void * ptrAlias for tree item handle pointer
Opaque handle for Fl_Help_View.
Simple HTML viewer widget.
private void * ptrAlias for help view handle pointer
Opaque handle for Fl_Table.
Base table widget for displaying tabular data with custom cell drawing.
private void * ptrAlias for table handle pointer
Opaque handle for Fl_Table_Row.
Table widget with row selection support.
private void * ptrAlias for table row handle pointer
Opaque handle for Fl_Printer.
Printing support for outputting to physical printers.
private void * ptrAlias for printer handle pointer
Opaque handle for Fl_PostScript_File_Device.
PostScript file output device for generating PS files.
private void * ptrAlias 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.
private void * ptrAlias for custom widget handle pointer
Opaque handle for Fl_Positioner.
A 2D valuator widget for selecting X/Y coordinates.
private void * ptrAlias for positioner handle pointer
Opaque handle for Fl_Chart.
Chart widget for displaying simple charts (bar, line, pie, etc.).
private void * ptrAlias for chart handle pointer
Opaque handle for Fl_Clock.
Analog clock widget that displays the current time.
private void * ptrAlias for clock handle pointer
Opaque handle for Fl_Help_Dialog.
HTML help dialog for displaying help content with navigation.
private void * ptrAlias for help dialog handle pointer
Opaque handle for Fl_Color_Chooser.
Embeddable color chooser widget for selecting RGB colors.
private void * ptrAlias 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.
private void * ptrAlias 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).
private void * ptrAlias for preferences handle pointer
Preferences root location.
Specifies where preferences are stored.
Opaque handle for Fl_Multi_Label.
Multi-labels allow combining text and images into compound labels for widgets and menu items.
private void * ptrAlias 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.
private void * ptrAlias for file icon handle pointer
File icon type constants.
Specifies the type of file the icon represents.
File icon data opcodes.
Used when building icon drawing primitives.
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.
private void * ptrAlias 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.
private void * ptrAlias for plugin manager handle pointer
Opaque handle for Fl_Copy_Surface.
Copy surfaces allow drawing graphics that are then copied to the system clipboard.
private void * ptrAlias 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.
private void * ptrAlias for image surface handle pointer
Opaque handle for Fl_Image (base class).
Base image type for all FLTK images.
private void * ptrAlias for base image handle pointer
Opaque handle for Fl_Bitmap.
Monochrome bitmap image (XBM format).
private void * ptrAlias for bitmap handle pointer
Opaque handle for Fl_Pixmap.
Color pixmap image (XPM format).
private void * ptrAlias for pixmap handle pointer
Opaque handle for Fl_Tiled_Image.
Tiled/repeated background image.
private void * ptrAlias for tiled image handle pointer
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
widget | The widget that triggered the callback |
userdata | User-provided data pointer |
Timeout/idle callback function type.
Used for timeout and idle handlers that don't receive a widget.
Parameters
userdata | User-provided data pointer |
File descriptor callback function type.
Used for file descriptor event handlers.
Parameters
fd | The file descriptor |
userdata | User-provided data pointer |
Draw cell callback function type for Table (base class).
Called when a table cell needs to be drawn.
Parameters
table | The table widget |
context | Table context (see TableContext enum) |
row | Row number |
col | Column number |
x | X coordinate of cell |
y | Y coordinate of cell |
w | Width of cell |
h | Height of cell |
userdata | User-provided data pointer |
Draw cell callback function type for TableRow.
Called when a table cell needs to be drawn.
Parameters
table | The table widget |
context | Table context (see TableContext enum) |
row | Row number |
col | Column number |
x | X coordinate of cell |
y | Y coordinate of cell |
w | Width of cell |
h | Height of cell |
userdata | User-provided data pointer |
Custom widget draw callback function type.
Called when the custom widget needs to redraw itself.
Parameters
widget | The custom widget |
userdata | User-provided data pointer |
Custom widget handle callback function type.
Called when the custom widget receives an event.
Parameters
widget | The custom widget |
event | The FLTK event code |
userdata | User-provided data pointer |
Returns
Table context values for draw_cell callback.
These values indicate what part of the table is being drawn.
Table row selection mode.
These values control how rows can be selected in a TableRow.
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().
Opaque handle for Fl_Tree_Item_Array
File descriptor callback function type
Opaque handle for Fl_PNM_Image
Scroll callback function type.
Functions 1082
void fltk_background2(ubyte r, ubyte g, ubyte b)Sets the default background color for text widgets.void fltk_add_check(TimeoutHandler callback, void * userdata)Adds a check callback (called during event processing).void fltk_add_timeout(double seconds, TimeoutHandler callback, void * userdata)Adds a one-shot timeout callback.void fltk_repeat_timeout(double seconds, TimeoutHandler callback, void * userdata)Repeats a timeout from within a timeout callback.int fltk_has_timeout(TimeoutHandler callback, void * userdata)Checks if a timeout callback exists.void fltk_widget_resize(WidgetPtr widget, int x, int y, int w, int h)Resizes and repositions a widget.void fltk_widget_set_callback(WidgetPtr widget, ShimCallback callback, void * userdata)Sets the widget's callback function.WindowPtr fltk_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new window at specific position.void fltk_window_size_range(WindowPtr window, int minw, int minh, int maxw, int maxh)Sets the window's size range.DoubleWindowPtr fltk_double_window_new(int w, int h, const(char) * title)Creates a new double-buffered window.WindowPtr fltk_double_window_as_window(DoubleWindowPtr window)Casts a double window to regular window.SingleWindowPtr fltk_single_window_new(int w, int h, const(char) * title)Creates a new single-buffered window.SingleWindowPtr fltk_single_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new single-buffered window with position.WindowPtr fltk_single_window_as_window(SingleWindowPtr window)Casts a single window to regular window.MenuWindowPtr fltk_menu_window_new_xy(int x, int y, int w, int h, const(char) * title)Creates a new menu window with position.int fltk_menu_window_overlay(MenuWindowPtr window)Returns whether hardware overlay mode is enabled.void fltk_menu_window_set_overlay(MenuWindowPtr window)Enables hardware overlay mode if available.void fltk_menu_window_clear_overlay(MenuWindowPtr window)Disables hardware overlay mode (use normal drawing planes).GroupPtr fltk_group_new(int x, int y, int w, int h, const(char) * label)Creates a new group widget.BoxPtr fltk_box_new(int boxtype, int x, int y, int w, int h, const(char) * label)Creates a new box widget.ButtonPtr fltk_button_new(int x, int y, int w, int h, const(char) * label)Creates a new button widget.InputPtr fltk_input_new(int x, int y, int w, int h, const(char) * label)Creates a new input widget.ValueSliderPtr fltk_value_slider_new(int x, int y, int w, int h, const(char) * label)Creates a new value slider widget.void fltk_value_slider_set_value(ValueSliderPtr slider, double value)Sets the slider's current value.void fltk_value_slider_set_minimum(ValueSliderPtr slider, double min)Sets the slider's minimum value.void fltk_value_slider_set_maximum(ValueSliderPtr slider, double max)Sets the slider's maximum value.void fltk_value_slider_set_range(ValueSliderPtr slider, double min, double max)Sets the slider's range (minimum and maximum).void fltk_value_slider_set_type(ValueSliderPtr slider, ubyte type)Sets the slider type (orientation).SliderPtr fltk_slider_new(int x, int y, int w, int h, const(char) * label)Creates a new slider widget.void fltk_slider_set_range(SliderPtr slider, double min, double max)Sets the slider's range (minimum and maximum).CheckButtonPtr fltk_check_button_new(int x, int y, int w, int h, const(char) * label)Creates a new check button widget.void fltk_check_button_set_value(CheckButtonPtr button, int value)Sets the check button's value (checked state).RadioButtonPtr fltk_radio_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio button widget.void fltk_radio_button_set_value(RadioButtonPtr button, int value)Sets the radio button's value (selected state).ToggleButtonPtr fltk_toggle_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle button widget.int fltk_toggle_button_value(ToggleButtonPtr button)Gets the toggle button's value (toggled state).void fltk_toggle_button_set_value(ToggleButtonPtr button, int value)Sets the toggle button's value (toggled state).LightButtonPtr fltk_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new light button widget.void fltk_light_button_set_value(LightButtonPtr button, int value)Sets the light button's value (on/off state).RadioLightButtonPtr fltk_radio_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio light button widget.void fltk_radio_light_button_delete(RadioLightButtonPtr button)Destroys a radio light button widget.int fltk_radio_light_button_value(RadioLightButtonPtr button)Gets the radio light button's value (on/off state).void fltk_radio_light_button_set_value(RadioLightButtonPtr button, int value)Sets the radio light button's value (on/off state).WidgetPtr fltk_radio_light_button_as_widget(RadioLightButtonPtr button)Casts a radio light button to widget.RadioRoundButtonPtr fltk_radio_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new radio round button widget.void fltk_radio_round_button_delete(RadioRoundButtonPtr button)Destroys a radio round button widget.int fltk_radio_round_button_value(RadioRoundButtonPtr button)Gets the radio round button's value (on/off state).void fltk_radio_round_button_set_value(RadioRoundButtonPtr button, int value)Sets the radio round button's value (on/off state).WidgetPtr fltk_radio_round_button_as_widget(RadioRoundButtonPtr button)Casts a radio round button to widget.ToggleLightButtonPtr fltk_toggle_light_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle light button widget.void fltk_toggle_light_button_delete(ToggleLightButtonPtr button)Destroys a toggle light button widget.int fltk_toggle_light_button_value(ToggleLightButtonPtr button)Gets the toggle light button's value (on/off state).void fltk_toggle_light_button_set_value(ToggleLightButtonPtr button, int value)Sets the toggle light button's value (on/off state).WidgetPtr fltk_toggle_light_button_as_widget(ToggleLightButtonPtr button)Casts a toggle light button to widget.ToggleRoundButtonPtr fltk_toggle_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new toggle round button widget.void fltk_toggle_round_button_delete(ToggleRoundButtonPtr button)Destroys a toggle round button widget.int fltk_toggle_round_button_value(ToggleRoundButtonPtr button)Gets the toggle round button's value (on/off state).void fltk_toggle_round_button_set_value(ToggleRoundButtonPtr button, int value)Sets the toggle round button's value (on/off state).WidgetPtr fltk_toggle_round_button_as_widget(ToggleRoundButtonPtr button)Casts a toggle round button to widget.RepeatButtonPtr fltk_repeat_button_new(int x, int y, int w, int h, const(char) * label)Creates a new repeat button widget.ReturnButtonPtr fltk_return_button_new(int x, int y, int w, int h, const(char) * label)Creates a new return button widget.RoundButtonPtr fltk_round_button_new(int x, int y, int w, int h, const(char) * label)Creates a new round button widget.void fltk_round_button_set_value(RoundButtonPtr button, int value)Sets the round button's value (selected state).FloatInputPtr fltk_float_input_new(int x, int y, int w, int h, const(char) * label)Creates a new float input widget.void fltk_float_input_set_value(FloatInputPtr input, const(char) * value)Sets the float input's text value.IntInputPtr fltk_int_input_new(int x, int y, int w, int h, const(char) * label)Creates a new int input widget.void fltk_int_input_set_value(IntInputPtr input, const(char) * value)Sets the int input's text value.SecretInputPtr fltk_secret_input_new(int x, int y, int w, int h, const(char) * label)Creates a new secret input widget.void fltk_secret_input_set_value(SecretInputPtr input, const(char) * value)Sets the secret input's text value.MultilineInputPtr fltk_multiline_input_new(int x, int y, int w, int h, const(char) * label)Creates a new multiline input widget.const(char) * fltk_multiline_input_value(MultilineInputPtr input)Gets the multiline input's text value.void fltk_multiline_input_set_value(MultilineInputPtr input, const(char) * value)Sets the multiline input's text value.WidgetPtr fltk_multiline_input_as_widget(MultilineInputPtr input)Casts a multiline input to widget.FileInputPtr fltk_file_input_new(int x, int y, int w, int h, const(char) * label)Creates a new file input widget.void fltk_file_input_set_value(FileInputPtr input, const(char) * value)Sets the file input's text value.MultilineOutputPtr fltk_multiline_output_new(int x, int y, int w, int h, const(char) * label)Creates a new multiline output widget.const(char) * fltk_multiline_output_value(MultilineOutputPtr output)Gets the multiline output's text value.void fltk_multiline_output_set_value(MultilineOutputPtr output, const(char) * value)Sets the multiline output's text value.WidgetPtr fltk_multiline_output_as_widget(MultilineOutputPtr output)Casts a multiline output to widget.CounterPtr fltk_counter_new(int x, int y, int w, int h, const(char) * label)Creates a new counter widget.void fltk_counter_set_type(CounterPtr counter, ubyte type)Sets the counter type (0=NORMAL, 1=SIMPLE).RollerPtr fltk_roller_new(int x, int y, int w, int h, const(char) * label)Creates a new roller widget.ScrollbarPtr fltk_scrollbar_new(int x, int y, int w, int h, const(char) * label)Creates a new scrollbar widget.void fltk_scrollbar_set_value(ScrollbarPtr scrollbar, double value)Sets the scrollbar's current value.void fltk_scrollbar_set_minimum(ScrollbarPtr scrollbar, double value)Sets the scrollbar's minimum value.void fltk_scrollbar_set_maximum(ScrollbarPtr scrollbar, double value)Sets the scrollbar's maximum value.ValueInputPtr fltk_value_input_new(int x, int y, int w, int h, const(char) * label)Creates a new value input widget.void fltk_value_input_set_value(ValueInputPtr input, double value)Sets the value input's current value.void fltk_value_input_set_minimum(ValueInputPtr input, double value)Sets the value input's minimum value.void fltk_value_input_set_maximum(ValueInputPtr input, double value)Sets the value input's maximum value.ValueOutputPtr fltk_value_output_new(int x, int y, int w, int h, const(char) * label)Creates a new value output widget.void fltk_value_output_set_value(ValueOutputPtr output, double value)Sets the value output's current value.void fltk_value_output_set_minimum(ValueOutputPtr output, double value)Sets the value output's minimum value.void fltk_value_output_set_maximum(ValueOutputPtr output, double value)Sets the value output's maximum value.AdjusterPtr fltk_adjuster_new(int x, int y, int w, int h, const(char) * label)Creates a new adjuster widget.void fltk_adjuster_set_value(AdjusterPtr adjuster, double value)Sets the adjuster's current value.void fltk_adjuster_set_minimum(AdjusterPtr adjuster, double value)Sets the adjuster's minimum value.void fltk_adjuster_set_maximum(AdjusterPtr adjuster, double value)Sets the adjuster's maximum value.WizardPtr fltk_wizard_new(int x, int y, int w, int h, const(char) * label)Creates a new wizard widget.SpinnerPtr fltk_spinner_new(int x, int y, int w, int h, const(char) * label)Creates a new spinner widget.MenuBarPtr fltk_menu_bar_new(int x, int y, int w, int h, const(char) * label)Creates a new menu bar widget.int 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.MenuButtonPtr fltk_menu_button_new(int x, int y, int w, int h, const(char) * label)Creates a new menu button widget.int 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.InputChoicePtr fltk_input_choice_new(int x, int y, int w, int h, const(char) * label)Creates a new input choice widget.void fltk_input_choice_set_value(InputChoicePtr input, const(char) * value)Sets the current text value.void fltk_input_choice_add(InputChoicePtr input, const(char) * text)Adds an item to the dropdown menu.TextEditorPtr fltk_text_editor_new(int x, int y, int w, int h, const(char) * label)Creates a new text editor widget.TextBufferPtr fltk_text_editor_buffer(TextEditorPtr editor)Gets the text buffer associated with the editor.void fltk_text_editor_set_buffer(TextEditorPtr editor, TextBufferPtr buffer)Sets the text buffer for the editor.void fltk_text_editor_insert(TextEditorPtr editor, const(char) * text)Inserts text at the current cursor position.OutputPtr fltk_output_new(int x, int y, int w, int h, const(char) * label)Creates a new output widget.ProgressPtr fltk_progress_new(int x, int y, int w, int h, const(char) * label)Creates a new progress widget.ScrollPtr fltk_scroll_new(int x, int y, int w, int h, const(char) * label)Creates a new scroll widget.ChoicePtr fltk_choice_new(int x, int y, int w, int h, const(char) * label)Creates a new choice widget.char * fltk_text_buffer_text(TextBufferPtr buffer)Gets the buffer's text content. Caller must free with fltktextbufferfreetext.void fltk_text_buffer_set_text(TextBufferPtr buffer, const(char) * text)Sets the buffer's text content.void fltk_text_buffer_insert(TextBufferPtr buffer, int pos, const(char) * text)Inserts text at a position.TextDisplayPtr fltk_text_display_new(int x, int y, int w, int h, const(char) * label)Creates a new text display widget.void fltk_text_display_set_buffer(TextDisplayPtr display, TextBufferPtr buffer)Sets the text buffer for the display.TextBufferPtr fltk_text_display_buffer(TextDisplayPtr display)Gets the text buffer for the display.void 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.void 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).void fltk_text_display_linenumber_width(TextDisplayPtr display, int width)Sets line number display width (0 to hide).int fltk_ask(const(char) * message)Shows a question dialog with Yes/No buttons. Returns 1 for Yes, 0 for No.int 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).const(char) * fltk_input_dialog(const(char) * message, const(char) * default_value)Shows a text input dialog. Returns entered text or null if cancelled.const(char) * fltk_password_dialog(const(char) * message, const(char) * default_value)Shows a password input dialog. Returns entered text or null if cancelled.void fltk_native_file_chooser_set_title(NativeFileChooserPtr fc, const(char) * title)Sets the title of the file chooser dialog.const(char) * fltk_native_file_chooser_title(NativeFileChooserPtr fc)Gets the title of the file chooser dialog.void fltk_native_file_chooser_set_filter(NativeFileChooserPtr fc, const(char) * filter)Sets the file filter pattern.const(char) * fltk_native_file_chooser_filter(NativeFileChooserPtr fc)Gets the file filter pattern.void fltk_native_file_chooser_set_directory(NativeFileChooserPtr fc, const(char) * dir)Sets the initial directory.const(char) * fltk_native_file_chooser_directory(NativeFileChooserPtr fc)Gets the current directory.void fltk_native_file_chooser_set_preset_file(NativeFileChooserPtr fc, const(char) * name)Sets the preset filename.const(char) * fltk_native_file_chooser_preset_file(NativeFileChooserPtr fc)Gets the preset filename.int fltk_native_file_chooser_show(NativeFileChooserPtr fc)Shows the file chooser dialog. Returns 0 if picked, 1 if cancelled, -1 on error.const(char) * fltk_native_file_chooser_filename(NativeFileChooserPtr fc, int index)Gets a selected filename by index.const(char) * fltk_native_file_chooser_errmsg(NativeFileChooserPtr fc)Gets the error message if show() returned -1.HoldBrowserPtr fltk_hold_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Hold Browser (single selection).MultiBrowserPtr fltk_multi_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Multi Browser (multiple selection).SelectBrowserPtr fltk_select_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Select Browser.void fltk_browser_insert(WidgetPtr w, int line, const(char) * text)Inserts an item at a position (1-based).void fltk_browser_set_text(WidgetPtr w, int line, const(char) * text)Sets the text of an item (1-based).int fltk_browser_selected(WidgetPtr w, int line)Checks if a line is selected (1-based). Returns 1 if selected.void fltk_browser_select(WidgetPtr w, int line, int selected)Selects or deselects a line (1-based).FileBrowserPtr fltk_file_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new File Browser.int fltk_file_browser_load(FileBrowserPtr b, const(char) * directory)Loads a directory into the file browser. Returns number of files loaded.void fltk_file_browser_set_filter(FileBrowserPtr b, const(char) * pattern)Sets the file filter pattern.void fltk_file_browser_set_filetype(FileBrowserPtr b, int type)Sets the file type display mode (0=files, 1=directories, 2=both).CheckBrowserPtr fltk_check_browser_new(int x, int y, int w, int h, const(char) * label)Creates a new Check Browser.int fltk_check_browser_add(CheckBrowserPtr b, const(char) * text)Adds an unchecked item. Returns number of items.int fltk_check_browser_add_checked(CheckBrowserPtr b, const(char) * text, int checked)Adds an item with specified checked state. Returns number of items.int fltk_check_browser_remove(CheckBrowserPtr b, int item)Removes an item (1-based). Returns number of items.int fltk_check_browser_checked(CheckBrowserPtr b, int item)Gets the checked state of an item (1-based).void fltk_check_browser_set_checked(CheckBrowserPtr b, int item, int checked)Sets the checked state of an item (1-based).int fltk_check_browser_value(CheckBrowserPtr b)Gets the currently selected item (1-based), or 0 if none.const(char) * fltk_check_browser_text(CheckBrowserPtr b, int item)Gets the text of an item (1-based).TreeItemPtr fltk_tree_add(TreePtr tree, const(char) * path)Adds an item by path (e.g., "Parent/Child"). Returns the new item.TreeItemPtr fltk_tree_next(TreePtr tree, TreeItemPtr item)Gets the next item after the given item.TreeItemPtr fltk_tree_next_selected_item(TreePtr tree, TreeItemPtr item)Gets the next selected item.int fltk_tree_close(TreePtr tree, TreeItemPtr item)Closes (collapses) an item. Returns 0 on success.void fltk_tree_item_set_label(TreeItemPtr item, const(char) * label)Sets the label of a tree item.int fltk_tree_item_array_total(TreeItemArrayPtr arr)Returns the total number of items in the array.TreeItemPtr fltk_tree_item_array_get(TreeItemArrayPtr arr, int index)Gets an item at the specified index.void fltk_tree_item_array_add(TreeItemArrayPtr arr, TreeItemPtr item)Adds an item to the end of the array.void fltk_tree_item_array_insert(TreeItemArrayPtr arr, int pos, TreeItemPtr item)Inserts an item at the specified position.void fltk_tree_item_array_replace(TreeItemArrayPtr arr, int pos, TreeItemPtr item)Replaces an item at the specified position.void fltk_tree_item_array_remove(TreeItemArrayPtr arr, int index)Removes an item at the specified index.int fltk_tree_item_array_move(TreeItemArrayPtr arr, int to, int from)Moves an item from one position to another. Returns 0 on success.void fltk_tree_set_item_labelfgcolor(TreePtr tree, uint color)Sets the tree's item foreground color.void fltk_tree_set_item_labelbgcolor(TreePtr tree, uint color)Sets the tree's item background color.void fltk_tree_set_openchild_marginbottom(TreePtr tree, int val)Sets the margin below an open child.HelpViewPtr fltk_help_view_new(int x, int y, int w, int h, const(char) * label)Creates a new Help View widget.int fltk_help_view_load(HelpViewPtr hv, const(char) * filename)Loads HTML from a file. Returns 0 on success, -1 on error.int 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.void fltk_copy(const(char) * text, int len, int destination)Copies text to clipboard. destination: 0=selection, 1=clipboardvoid fltk_paste(WidgetPtr receiver, int source)Requests paste to widget. source: 0=selection, 1=clipboardvoid fltk_add_fd(int fd, int when, FdCallback cb, void * userdata)Adds a file descriptor callback with event flags.void fltk_add_fd_read(int fd, FdCallback cb, void * userdata)Adds a file descriptor callback for read events.void fltk_screen_xywh(int screen, int * x, int * y, int * w, int * h)Gets the bounding rectangle of a screen.void fltk_screen_work_area(int screen, int * x, int * y, int * w, int * h)Gets the work area of a screen (excluding taskbars, etc.).TablePtr fltk_table_new(int x, int y, int w, int h, const(char) * label)Creates a new Table widget.void fltk_table_set_draw_cell_callback(TablePtr table,
TableCellCallback cb,
void * userdata)Sets the draw cell callback.int fltk_table_is_interactive_resize(TablePtr table)Returns non-zero if user is interactively resizing a row or column.void fltk_table_get_selection(TablePtr table, int * row_top, int * col_left, int * row_bot, int * col_right)Gets the current selection range.void fltk_table_set_selection(TablePtr table, int row_top, int col_left, int row_bot, int col_right)Sets the selection range.int 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.void fltk_table_visible_cells(TablePtr table, int * r1, int * r2, int * c1, int * c2)Gets the range of visible cells.int fltk_table_callback_col(TablePtr table)Gets the callback column (column that triggered callback).TableRowPtr fltk_table_row_new(int x, int y, int w, int h, const(char) * label)Creates a new Table Row widget.void fltk_table_row_set_draw_cell_callback(TableRowPtr table,
DrawCellCallback cb,
void * userdata)Sets the draw cell callback.void fltk_table_row_row_height(TableRowPtr table, int row, int height)Sets the height of a specific row.void fltk_table_row_col_width(TableRowPtr table, int col, int width)Sets the width of a specific column.void fltk_table_row_col_header_height(TableRowPtr table, int height)Sets the column header height.int fltk_table_row_is_interactive_resize(TableRowPtr table)Returns non-zero if user is interactively resizing a row or column.void fltk_table_row_col_resize_min(TableRowPtr table, int val)Sets the minimum column resize width.void fltk_table_row_get_selection(TableRowPtr table, int * row_top, int * col_left, int * row_bot, int * col_right)Gets the current selection range.void fltk_table_row_set_selection(TableRowPtr table, int row_top, int col_left, int row_bot, int col_right)Sets the selection range.int 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.void fltk_table_row_visible_cells(TableRowPtr table, int * r1, int * r2, int * c1, int * c2)Gets the range of visible cells.int fltk_table_row_callback_row(TableRowPtr table)Gets the callback row (row that triggered callback).int fltk_table_row_callback_col(TableRowPtr table)Gets the callback column (column that triggered callback).TiledImagePtr fltk_tiled_image_new(ImagePtr image, int w, int h)Creates a tiled image from another image.int fltk_pnm_image_fail(PnmImagePtr image)Checks if image failed to load. Returns non-zero on failure.void fltk_draw_color_rgb(ubyte r, ubyte g, ubyte b)Sets the current drawing color from RGB values.void 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.void fltk_draw_arc(int x, int y, int w, int h, double a1, double a2)Draws an arc (part of an ellipse outline).void fltk_draw_measure(const(char) * text, int * w, int * h)Measures the width and height of a string.int fltk_not_clipped(int x, int y, int w, int h)Tests if a rectangle is inside the current clip region.void fltk_polygon4(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3)Draws a filled 4-sided polygon.void fltk_loop3(int x0, int y0, int x1, int y1, int x2, int y2)Draws a 3-sided line loop (unfilled triangle).void 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).void fltk_vertices(int n, const(double) * xp, const(double) * yp)Adds a series of vertices from arrays.void 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.int 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.void fltk_text_extents(const(char) * text, int * dx, int * dy, int * w, int * h)Gets the bounding box extents of text.const(char) * fltk_latin1_to_local(const(char) * text, int n)Converts Latin-1 text to local encoding.const(char) * fltk_mac_roman_to_local(const(char) * text, int n)Converts Mac Roman text to local encoding.const(char) * fltk_local_to_mac_roman(const(char) * text, int n)Converts local encoding to Mac Roman.void fltk_draw_box(int boxtype, int x, int y, int w, int h, uint color)Draws a box with the specified type.void fltk_frame(const(char) * s, int x, int y, int w, int h)Draws a frame using a string specification.void fltk_frame2(const(char) * s, int x, int y, int w, int h)Draws a frame using a string specification (variant).void fltk_draw_image(const(ubyte) * buf, int x, int y, int w, int h, int d, int ld)Draws raw RGB image data.void fltk_draw_image_mono(const(ubyte) * buf, int x, int y, int w, int h, int d, int ld)Draws raw monochrome image data.ubyte * fltk_read_image(ubyte * p, int x, int y, int w, int h, int alpha)Reads pixels from the current window.uint fltk_color_average(uint c1, uint c2, float weight)Averages two colors. Weight 0.0=c2, 1.0=c1.uint fltk_contrast(uint fg, uint bg)Returns a contrasting color (white or black) for the given background.int 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.int fltk_printer_printable_rect(PrinterPtr printer, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.void fltk_printer_margins(PrinterPtr printer, int * left, int * top, int * right, int * bottom)Gets the page margins.void fltk_printer_print_widget(PrinterPtr printer, WidgetPtr widget, int delta_x, int delta_y)Prints a widget.void fltk_printer_print_window(PrinterPtr printer, WindowPtr window, int delta_x, int delta_y)Prints a window and its contents.int 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.int 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.int fltk_postscript_start_page(PostScriptFileDevicePtr ps)Starts a new page. Returns 0 on success.int fltk_postscript_end_page(PostScriptFileDevicePtr ps)Ends the current page. Returns 0 on success.int fltk_postscript_printable_rect(PostScriptFileDevicePtr ps, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.void fltk_postscript_margins(PostScriptFileDevicePtr ps, int * left, int * top, int * right, int * bottom)Gets the page margins.void fltk_postscript_get_origin(PostScriptFileDevicePtr ps, int * x, int * y)Gets the current origin.void fltk_postscript_set_origin(PostScriptFileDevicePtr ps, int x, int y)Sets the origin for drawing.void fltk_postscript_scale(PostScriptFileDevicePtr ps, float scale_x, float scale_y)Scales the drawing.void fltk_postscript_print_widget(PostScriptFileDevicePtr ps, WidgetPtr widget, int delta_x, int delta_y)Prints a widget to the PostScript output.void fltk_postscript_print_window(PostScriptFileDevicePtr ps, WindowPtr window, int delta_x, int delta_y)Prints a window and its contents to the PostScript output.void fltk_postscript_set_current(PostScriptFileDevicePtr ps)Sets the PostScript device as the current drawing surface.CustomWidgetPtr fltk_custom_widget_new(int x, int y, int w, int h, const(char) * label)Creates a new custom widget.WidgetPtr fltk_custom_widget_as_widget(CustomWidgetPtr widget)Casts a custom widget to base widget.void fltk_custom_widget_set_draw_callback(CustomWidgetPtr widget,
CustomWidgetDrawCallback callback,
void * userdata)Sets the draw callback for the custom widget.void fltk_custom_widget_set_handle_callback(CustomWidgetPtr widget,
CustomWidgetHandleCallback callback,
void * userdata)Sets the handle callback for the custom widget.int fltk_valuator_set_value(WidgetPtr widget, double val)Sets the current value of a valuator widget. Returns non-zero if value changed.void fltk_valuator_set_minimum(WidgetPtr widget, double val)Sets the minimum value of a valuator widget.void fltk_valuator_set_maximum(WidgetPtr widget, double val)Sets the maximum value of a valuator widget.void fltk_valuator_range(WidgetPtr widget, double min, double max)Sets the minimum and maximum values of a valuator widget.void fltk_valuator_bounds(WidgetPtr widget, double min, double max)Sets the minimum and maximum values of a valuator widget (alias for range).void fltk_valuator_set_step(WidgetPtr widget, double val)Sets the step value of a valuator widget.void fltk_valuator_set_step_fraction(WidgetPtr widget, double a, int b)Sets the step value as a fraction A/B.void fltk_valuator_precision(WidgetPtr widget, int digits)Sets the precision (number of decimal digits) for the valuator.double fltk_valuator_round(WidgetPtr widget, double val)Rounds a value to the nearest step multiple.double fltk_valuator_increment(WidgetPtr widget, double val, int n)Increments the value by n steps.int fltk_valuator_format(WidgetPtr widget, char * buffer)Formats the value as a string. Returns number of characters written.PositionerPtr fltk_positioner_new(int x, int y, int w, int h, const(char) * label)Creates a new positioner widget.int fltk_positioner_set_xvalue(PositionerPtr pos, double val)Sets the X axis value. Returns non-zero if value changed.int fltk_positioner_set_yvalue(PositionerPtr pos, double val)Sets the Y axis value. Returns non-zero if value changed.int fltk_positioner_value(PositionerPtr pos, double x, double y)Sets both X and Y values. Returns non-zero if either value changed.ChartPtr fltk_chart_new(int x, int y, int w, int h, const(char) * label)Creates a new chart widget.void fltk_chart_add(ChartPtr chart, double val, const(char) * str, uint col)Adds a data value to the chart.void fltk_chart_insert(ChartPtr chart, int ind, double val, const(char) * str, uint col)Inserts a data value at a specific index (1-based).void fltk_chart_replace(ChartPtr chart, int ind, double val, const(char) * str, uint col)Replaces a data value at a specific index (1-based).void fltk_chart_set_maxsize(ChartPtr chart, int m)Sets the maximum number of data values for the chart.void fltk_chart_set_autosize(ChartPtr chart, ubyte n)Sets whether the chart auto-sizes its bounds.ClockPtr fltk_clock_new(int x, int y, int w, int h, const(char) * label)Creates a new clock widget.ClockPtr 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.void fltk_clock_set_value_hms(ClockPtr clock, int h, int m, int s)Sets the clock's value using hour, minute, second.void fltk_help_dialog_load(HelpDialogPtr dialog, const(char) * filename)Loads a file into the help dialog.void fltk_help_dialog_set_value(HelpDialogPtr dialog, const(char) * content)Sets the HTML content directly.void fltk_help_dialog_topline_name(HelpDialogPtr dialog, const(char) * name)Scrolls to a named target in the document.void fltk_help_dialog_position(HelpDialogPtr dialog, int x, int y)Sets the position of the dialog window.void fltk_help_dialog_resize(HelpDialogPtr dialog, int x, int y, int w, int h)Resizes the dialog window.ColorChooserPtr fltk_color_chooser_new(int x, int y, int w, int h, const(char) * label)Creates a new color chooser widget.int fltk_color_chooser_mode(ColorChooserPtr cc)Gets the color chooser mode (0=rgb, 1=byte, 2=hex, 3=hsv).int fltk_color_chooser_hsv(ColorChooserPtr cc, double h, double s, double v)Sets the color using HSV values. Returns non-zero if color changed.int fltk_color_chooser_rgb(ColorChooserPtr cc, double r, double g, double b)Sets the color using RGB values. Returns non-zero if color changed.void fltk_color_chooser_hsv2rgb(double h, double s, double v, double * r, double * g, double * b)Converts HSV to RGB.void fltk_color_chooser_rgb2hsv(double r, double g, double b, double * h, double * s, double * v)Converts RGB to HSV.SysMenuBarPtr fltk_sys_menu_bar_new(int x, int y, int w, int h, const(char) * label)Creates a new system menu bar widget.int 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.int 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.void fltk_sys_menu_bar_replace(SysMenuBarPtr menu, int index, const(char) * name)Replaces the label of a menu item.int fltk_sys_menu_bar_clear_submenu(SysMenuBarPtr menu, int index)Clears a submenu. Returns 0 on success.void fltk_sys_menu_bar_set_mode(SysMenuBarPtr menu, int index, int flags)Sets the flags of a menu item.void fltk_sys_menu_bar_shortcut(SysMenuBarPtr menu, int index, int shortcut)Sets the shortcut of a menu item.short * fltk_file_icon_add_vertex(FileIconPtr icon, int x, int y)Adds a vertex value to the icon (integer coordinates 0-10000).short * 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).void fltk_file_icon_draw(FileIconPtr icon, int x, int y, int w, int h, uint ic, int active)Draws the icon.void fltk_file_icon_label(FileIconPtr icon, WidgetPtr widget)Associates the icon with a widget as its label.int fltk_file_icon_load_image(FileIconPtr icon, const(char) * filename)Loads icon data from an image file.FileIconPtr fltk_file_icon_find(const(char) * filename, int filetype)Finds an icon for a given filename.void fltk_multi_label_set_labela_text(MultiLabelPtr ml, const(char) * text)Sets the first label element as text.void fltk_multi_label_set_labelb_text(MultiLabelPtr ml, const(char) * text)Sets the second label element as text.void fltk_multi_label_set_labela_image(MultiLabelPtr ml, ImagePtr image)Sets the first label element as an image.void fltk_multi_label_set_labelb_image(MultiLabelPtr ml, ImagePtr image)Sets the second label element as an image.void fltk_multi_label_label_widget(MultiLabelPtr ml, WidgetPtr widget)Associates the multi-label with a widget.void fltk_multi_label_label_menu_item(MultiLabelPtr ml, MenuBarPtr menu, int index)Associates the multi-label with a menu item.PreferencesPtr fltk_preferences_new(int root, const(char) * vendor, const(char) * application)Creates a new preferences object with root location.PreferencesPtr fltk_preferences_new_with_path(const(char) * path, const(char) * vendor, const(char) * application)Creates a new preferences object with custom path.PreferencesPtr fltk_preferences_new_group(PreferencesPtr parent, const(char) * group)Creates a child preferences group.int fltk_preferences_groups(PreferencesPtr prefs)Returns the number of groups in this preferences.const(char) * fltk_preferences_group(PreferencesPtr prefs, int index)Returns the name of a group by index.int fltk_preferences_group_exists(PreferencesPtr prefs, const(char) * key)Checks if a group exists.int fltk_preferences_entries(PreferencesPtr prefs)Returns the number of entries in this preferences.const(char) * fltk_preferences_entry(PreferencesPtr prefs, int index)Returns the name of an entry by index.int fltk_preferences_entry_exists(PreferencesPtr prefs, const(char) * key)Checks if an entry exists.int fltk_preferences_set_int(PreferencesPtr prefs, const(char) * entry, int value)Sets an integer value.int fltk_preferences_set_float(PreferencesPtr prefs, const(char) * entry, float value)Sets a float value.int fltk_preferences_set_double(PreferencesPtr prefs, const(char) * entry, double value)Sets a double value.int fltk_preferences_set_string(PreferencesPtr prefs, const(char) * entry, const(char) * value)Sets a string value.int fltk_preferences_get_int(PreferencesPtr prefs, const(char) * entry, int * value, int defaultValue)Gets an integer value.int fltk_preferences_get_float(PreferencesPtr prefs, const(char) * entry, float * value, float defaultValue)Gets a float value.int fltk_preferences_get_double(PreferencesPtr prefs, const(char) * entry, double * value, double defaultValue)Gets a double value.int fltk_preferences_get_string(PreferencesPtr prefs, const(char) * entry, char * * value, const(char) * defaultValue)Gets a string value (caller must free the returned string).int fltk_preferences_size(PreferencesPtr prefs, const(char) * entry)Gets the size of an entry's data.int fltk_preferences_get_userdata_path(PreferencesPtr prefs, char * path, int pathlen)Gets the user data path for this application.void 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.PluginPtr fltk_plugin_new(const(char) * klass, const(char) * name)Creates a new plugin with the given class and name.PluginManagerPtr fltk_plugin_manager_new(const(char) * klass)Creates a new plugin manager for the given class.int fltk_plugin_manager_plugins(PluginManagerPtr mgr)Gets the number of plugins in the managed class.PluginPtr fltk_plugin_manager_plugin_by_index(PluginManagerPtr mgr, int index)Gets a plugin by index.PluginPtr fltk_plugin_manager_plugin_by_name(PluginManagerPtr mgr, const(char) * name)Gets a plugin by name.void * fltk_plugin_manager_add_plugin(PluginManagerPtr mgr, const(char) * name, PluginPtr plugin)Adds a plugin to the manager. Returns plugin ID.int fltk_plugin_manager_load(const(char) * filename)Loads a plugin from a dynamic library file. Returns 0 on success.int fltk_plugin_manager_load_all(const(char) * filepath, const(char) * pattern)Loads all plugins from a directory matching a pattern. Returns count loaded.CopySurfacePtr fltk_copy_surface_new(int w, int h)Creates a new copy surface for copying graphics to the clipboard.void fltk_copy_surface_delete(CopySurfacePtr surface)Deletes a copy surface and loads the clipboard with the graphical data.void fltk_copy_surface_set_current(CopySurfacePtr surface)Makes this surface the current drawing target.void fltk_copy_surface_draw(CopySurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y)Draws a widget to the copy surface.void fltk_copy_surface_draw_decorated_window(CopySurfacePtr surface, WindowPtr win, int delta_x, int delta_y)Draws a decorated window to the copy surface.ImageSurfacePtr fltk_image_surface_new(int w, int h, int highres)Creates a new image surface for drawing to an in-memory image.void fltk_image_surface_set_current(ImageSurfacePtr surface)Makes this surface the current drawing target.void fltk_image_surface_draw(ImageSurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y)Draws a widget to the image surface.void fltk_image_surface_draw_decorated_window(ImageSurfacePtr surface, WindowPtr win, int delta_x, int delta_y)Draws a decorated window to the image surface.ImagePtr fltk_image_surface_image(ImageSurfacePtr surface)Gets the resulting RGB image from the surface. Caller owns the returned image.ImagePtr fltk_image_surface_highres_image(ImageSurfacePtr surface)Gets a high-resolution shared image from the surface. Caller owns the returned image.PostScriptFileDevicePtr fltk_postscript_file_device_new()Creates a new FlPostScriptFile_Device for drawing to PostScript files.void fltk_postscript_file_device_delete(PostScriptFileDevicePtr dev)Deletes a PostScript file device.int 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.int fltk_postscript_file_device_start_page(PostScriptFileDevicePtr dev)Starts a new page. Returns 0 on success.int fltk_postscript_file_device_end_page(PostScriptFileDevicePtr dev)Ends the current page. Returns 0 on success.int fltk_postscript_file_device_printable_rect(PostScriptFileDevicePtr dev, int * w, int * h)Gets the printable rectangle dimensions. Returns 0 on success.void fltk_postscript_file_device_margins(PostScriptFileDevicePtr dev, int * left, int * top, int * right, int * bottom)Gets the page margins.void fltk_postscript_file_device_get_origin(PostScriptFileDevicePtr dev, int * x, int * y)Gets the current origin.void fltk_postscript_file_device_set_origin(PostScriptFileDevicePtr dev, int x, int y)Sets the origin for drawing operations.void fltk_postscript_file_device_scale(PostScriptFileDevicePtr dev, float scale_x, float scale_y)Sets the scale for drawing operations.void fltk_postscript_file_device_rotate(PostScriptFileDevicePtr dev, float angle)Rotates drawing operations.void fltk_postscript_file_device_translate(PostScriptFileDevicePtr dev, int x, int y)Translates the origin.void fltk_postscript_file_device_untranslate(PostScriptFileDevicePtr dev)Undoes the last translation.void fltk_postscript_file_device_print_widget(PostScriptFileDevicePtr dev, WidgetPtr widget, int delta_x, int delta_y)Prints a widget to the PostScript output.void 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.void fltk_postscript_file_device_set_current(PostScriptFileDevicePtr dev)Makes this device the current drawing target.double fltk_gl_width_n(const(char) * text, int n)Gets the width of n characters in the current OpenGL font.void fltk_gl_draw_n(const(char) * text, int n)Draws n characters at the current raster position in OpenGL.void fltk_gl_draw_at(const(char) * text, int x, int y)Draws text at integer coordinates in OpenGL.void fltk_gl_draw_at_f(const(char) * text, float x, float y)Draws text at floating-point coordinates in OpenGL.void 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.void fltk_gl_measure(const(char) * text, int * w, int * h)Measures text dimensions in the current OpenGL font.void fltk_gl_draw_image(const(ubyte) * data, int x, int y, int w, int h, int d, int ld)Draws an image in OpenGL.char * fltk_filename_setext(char * to, int tolen, const(char) * ext)Sets or replaces the extension of a filename.int fltk_filename_expand(char * to, int tolen, const(char) * from)Expands environment variables and ~ in a filename.int fltk_filename_absolute(char * to, int tolen, const(char) * from)Converts a relative path to absolute.int fltk_filename_relative(char * to, int tolen, const(char) * from)Converts an absolute path to relative.int fltk_filename_match(const(char) * name, const(char) * pattern)Matches a filename against a pattern.int fltk_open_uri(const(char) * uri, char * msg, int msglen)Opens a URI using the system's default handler.Variables 6
FLTK_OK = 0Operation completed successfully
FLTK_ERROR = - 1Generic error
FLTK_ERROR_INVALID = - 2Invalid parameter (null pointer, out of range, etc.)
FLTK_ERROR_NOMEM = - 3Memory allocation failed
FLTK_ERROR_NOTSUP = - 4Operation not supported
FLTK_PATH_MAX = 2048Maximum path length for filename buffers.