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
double fltk_version() extern(C) nothrow @nogcGets the FLTK version as a double (e.g., 1.0304 for 1.3.4).int fltk_api_version() extern(C) nothrow @nogcGets the FLTK API version as an integer (e.g., 10304 for 1.3.4).void fltk_display(const(char) * d) extern(C) nothrow @nogcSets the X display to use for subsequent windows.void fltk_get_system_colors() extern(C) nothrow @nogcLoads system colors into FLTK's color palette.void fltk_foreground(ubyte r, ubyte g, ubyte b) extern(C) nothrow @nogcSets the default foreground color for labels.void fltk_background(ubyte r, ubyte g, ubyte b) extern(C) nothrow @nogcSets the default background color.void fltk_background2(ubyte r, ubyte g, ubyte b) extern(C) nothrow @nogcSets the default background color for text widgets.void fltk_add_check(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcAdds a check callback (called during event processing).int fltk_has_check(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcChecks if a check callback exists.void fltk_remove_check(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcRemoves a check callback.WindowPtr fltk_next_window(WindowPtr win) extern(C) nothrow @nogcGets the next window after the given one.void fltk_add_timeout(double seconds, TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcAdds a one-shot timeout callback.void fltk_repeat_timeout(double seconds, TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcRepeats a timeout from within a timeout callback.int fltk_has_timeout(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcChecks if a timeout callback exists.void fltk_remove_timeout(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcRemoves a timeout callback.void fltk_add_idle(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcAdds an idle callback.int fltk_has_idle(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcChecks if an idle callback exists.void fltk_remove_idle(TimeoutHandler callback, void * userdata) extern(C) nothrow @nogcRemoves an idle callback.int fltk_event_button() extern(C) nothrow @nogcGets the mouse button that triggered the current event.const(char) * fltk_event_text() extern(C) nothrow @nogcGets the text for the current keyboard event.int fltk_event_original_key() extern(C) nothrow @nogcGets the original key code before any remapping.int fltk_event_is_click() extern(C) nothrow @nogcChecks if the current event is a click (not a drag).void fltk_event_set_is_click(int val) extern(C) nothrow @nogcSets the click flag for the current event.int fltk_event_inside_rect(int x, int y, int w, int h) extern(C) nothrow @nogcChecks if the event is inside a rectangle.int fltk_event_inside_widget(WidgetPtr widget) extern(C) nothrow @nogcChecks if the event is inside a widget.void fltk_widget_resize(WidgetPtr widget, int x, int y, int w, int h) extern(C) nothrow @nogcResizes and repositions a widget.const(char) * fltk_widget_label(WidgetPtr widget) extern(C) nothrow @nogcGets the widget's label text.void fltk_widget_set_label(WidgetPtr widget, const(char) * label) extern(C) nothrow @nogcSets the widget's label text.void fltk_widget_set_callback(WidgetPtr widget, ShimCallback callback, void * userdata) extern(C) nothrow @nogcSets the widget's callback function.WindowPtr fltk_window_new(int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new window.WindowPtr fltk_window_new_xy(int x, int y, int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new window at specific position.void fltk_window_resizable(WindowPtr window, WidgetPtr resizable) extern(C) nothrow @nogcMakes the window resizable.void fltk_window_size_range(WindowPtr window, int minw, int minh, int maxw, int maxh) extern(C) nothrow @nogcSets the window's size range.WidgetPtr fltk_window_as_widget(WindowPtr window) extern(C) nothrow @nogcCasts a window to widget for common operations.GroupPtr fltk_window_as_group(WindowPtr window) extern(C) nothrow @nogcCasts a window to group for container operations.DoubleWindowPtr fltk_double_window_new(int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new double-buffered window.void fltk_double_window_delete(DoubleWindowPtr window) extern(C) nothrow @nogcDestroys a double-buffered window.WindowPtr fltk_double_window_as_window(DoubleWindowPtr window) extern(C) nothrow @nogcCasts a double window to regular window.SingleWindowPtr fltk_single_window_new(int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new single-buffered window.SingleWindowPtr fltk_single_window_new_xy(int x, int y, int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new single-buffered window with position.void fltk_single_window_delete(SingleWindowPtr window) extern(C) nothrow @nogcDestroys a single-buffered window.WindowPtr fltk_single_window_as_window(SingleWindowPtr window) extern(C) nothrow @nogcCasts a single window to regular window.MenuWindowPtr fltk_menu_window_new(int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new menu window.MenuWindowPtr fltk_menu_window_new_xy(int x, int y, int w, int h, const(char) * title) extern(C) nothrow @nogcCreates a new menu window with position.WindowPtr fltk_menu_window_as_window(MenuWindowPtr window) extern(C) nothrow @nogcCasts a menu window to regular window.int fltk_menu_window_overlay(MenuWindowPtr window) extern(C) nothrow @nogcReturns whether hardware overlay mode is enabled.void fltk_menu_window_set_overlay(MenuWindowPtr window) extern(C) nothrow @nogcEnables hardware overlay mode if available.void fltk_menu_window_clear_overlay(MenuWindowPtr window) extern(C) nothrow @nogcDisables hardware overlay mode (use normal drawing planes).GroupPtr fltk_group_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new group widget.void fltk_group_add(GroupPtr group, WidgetPtr widget) extern(C) nothrow @nogcAdds a widget to the group.void fltk_group_remove(GroupPtr group, WidgetPtr widget) extern(C) nothrow @nogcRemoves a widget from the group.int fltk_group_children(GroupPtr group) extern(C) nothrow @nogcGets the number of children in the group.WidgetPtr fltk_group_child(GroupPtr group, int index) extern(C) nothrow @nogcGets a child widget by index.BoxPtr fltk_box_new(int boxtype, int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new box widget.ButtonPtr fltk_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new button widget.int fltk_button_value(ButtonPtr button) extern(C) nothrow @nogcGets the button's value (pressed state).void fltk_button_set_value(ButtonPtr button, int value) extern(C) nothrow @nogcSets the button's value (pressed state).WidgetPtr fltk_button_as_widget(ButtonPtr button) extern(C) nothrow @nogcCasts a button to widget.InputPtr fltk_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new input widget.const(char) * fltk_input_value(InputPtr input) extern(C) nothrow @nogcGets the input's text value.void fltk_input_set_value(InputPtr input, const(char) * value) extern(C) nothrow @nogcSets the input's text value.ValueSliderPtr fltk_value_slider_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new value slider widget.void fltk_value_slider_delete(ValueSliderPtr slider) extern(C) nothrow @nogcDestroys a value slider widget.double fltk_value_slider_value(ValueSliderPtr slider) extern(C) nothrow @nogcGets the slider's current value.void fltk_value_slider_set_value(ValueSliderPtr slider, double value) extern(C) nothrow @nogcSets the slider's current value.void fltk_value_slider_set_minimum(ValueSliderPtr slider, double min) extern(C) nothrow @nogcSets the slider's minimum value.void fltk_value_slider_set_maximum(ValueSliderPtr slider, double max) extern(C) nothrow @nogcSets the slider's maximum value.void fltk_value_slider_set_range(ValueSliderPtr slider, double min, double max) extern(C) nothrow @nogcSets the slider's range (minimum and maximum).void fltk_value_slider_set_step(ValueSliderPtr slider, double step) extern(C) nothrow @nogcSets the slider's step value.void fltk_value_slider_set_type(ValueSliderPtr slider, ubyte type) extern(C) nothrow @nogcSets the slider type (orientation).WidgetPtr fltk_value_slider_as_widget(ValueSliderPtr slider) extern(C) nothrow @nogcCasts a value slider to widget.SliderPtr fltk_slider_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new slider widget.double fltk_slider_value(SliderPtr slider) extern(C) nothrow @nogcGets the slider's current value.void fltk_slider_set_value(SliderPtr slider, double value) extern(C) nothrow @nogcSets the slider's current value.void fltk_slider_set_range(SliderPtr slider, double min, double max) extern(C) nothrow @nogcSets the slider's range (minimum and maximum).void fltk_slider_set_step(SliderPtr slider, double step) extern(C) nothrow @nogcSets the slider's step value.void fltk_slider_set_type(SliderPtr slider, ubyte type) extern(C) nothrow @nogcSets the slider type (orientation).WidgetPtr fltk_slider_as_widget(SliderPtr slider) extern(C) nothrow @nogcCasts a slider to widget.CheckButtonPtr fltk_check_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new check button widget.void fltk_check_button_delete(CheckButtonPtr button) extern(C) nothrow @nogcDestroys a check button widget.int fltk_check_button_value(CheckButtonPtr button) extern(C) nothrow @nogcGets the check button's value (checked state).void fltk_check_button_set_value(CheckButtonPtr button, int value) extern(C) nothrow @nogcSets the check button's value (checked state).WidgetPtr fltk_check_button_as_widget(CheckButtonPtr button) extern(C) nothrow @nogcCasts a check button to widget.RadioButtonPtr fltk_radio_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new radio button widget.void fltk_radio_button_delete(RadioButtonPtr button) extern(C) nothrow @nogcDestroys a radio button widget.int fltk_radio_button_value(RadioButtonPtr button) extern(C) nothrow @nogcGets the radio button's value (selected state).void fltk_radio_button_set_value(RadioButtonPtr button, int value) extern(C) nothrow @nogcSets the radio button's value (selected state).WidgetPtr fltk_radio_button_as_widget(RadioButtonPtr button) extern(C) nothrow @nogcCasts a radio button to widget.ToggleButtonPtr fltk_toggle_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new toggle button widget.void fltk_toggle_button_delete(ToggleButtonPtr button) extern(C) nothrow @nogcDestroys a toggle button widget.int fltk_toggle_button_value(ToggleButtonPtr button) extern(C) nothrow @nogcGets the toggle button's value (toggled state).void fltk_toggle_button_set_value(ToggleButtonPtr button, int value) extern(C) nothrow @nogcSets the toggle button's value (toggled state).WidgetPtr fltk_toggle_button_as_widget(ToggleButtonPtr button) extern(C) nothrow @nogcCasts a toggle button to widget.LightButtonPtr fltk_light_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new light button widget.void fltk_light_button_delete(LightButtonPtr button) extern(C) nothrow @nogcDestroys a light button widget.int fltk_light_button_value(LightButtonPtr button) extern(C) nothrow @nogcGets the light button's value (on/off state).void fltk_light_button_set_value(LightButtonPtr button, int value) extern(C) nothrow @nogcSets the light button's value (on/off state).WidgetPtr fltk_light_button_as_widget(LightButtonPtr button) extern(C) nothrow @nogcCasts a light button to widget.RadioLightButtonPtr fltk_radio_light_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new radio light button widget.void fltk_radio_light_button_delete(RadioLightButtonPtr button) extern(C) nothrow @nogcDestroys a radio light button widget.int fltk_radio_light_button_value(RadioLightButtonPtr button) extern(C) nothrow @nogcGets the radio light button's value (on/off state).void fltk_radio_light_button_set_value(RadioLightButtonPtr button, int value) extern(C) nothrow @nogcSets the radio light button's value (on/off state).WidgetPtr fltk_radio_light_button_as_widget(RadioLightButtonPtr button) extern(C) nothrow @nogcCasts a radio light button to widget.RadioRoundButtonPtr fltk_radio_round_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new radio round button widget.void fltk_radio_round_button_delete(RadioRoundButtonPtr button) extern(C) nothrow @nogcDestroys a radio round button widget.int fltk_radio_round_button_value(RadioRoundButtonPtr button) extern(C) nothrow @nogcGets the radio round button's value (on/off state).void fltk_radio_round_button_set_value(RadioRoundButtonPtr button, int value) extern(C) nothrow @nogcSets the radio round button's value (on/off state).WidgetPtr fltk_radio_round_button_as_widget(RadioRoundButtonPtr button) extern(C) nothrow @nogcCasts a radio round button to widget.ToggleLightButtonPtr fltk_toggle_light_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new toggle light button widget.void fltk_toggle_light_button_delete(ToggleLightButtonPtr button) extern(C) nothrow @nogcDestroys a toggle light button widget.int fltk_toggle_light_button_value(ToggleLightButtonPtr button) extern(C) nothrow @nogcGets the toggle light button's value (on/off state).void fltk_toggle_light_button_set_value(ToggleLightButtonPtr button, int value) extern(C) nothrow @nogcSets the toggle light button's value (on/off state).WidgetPtr fltk_toggle_light_button_as_widget(ToggleLightButtonPtr button) extern(C) nothrow @nogcCasts a toggle light button to widget.ToggleRoundButtonPtr fltk_toggle_round_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new toggle round button widget.void fltk_toggle_round_button_delete(ToggleRoundButtonPtr button) extern(C) nothrow @nogcDestroys a toggle round button widget.int fltk_toggle_round_button_value(ToggleRoundButtonPtr button) extern(C) nothrow @nogcGets the toggle round button's value (on/off state).void fltk_toggle_round_button_set_value(ToggleRoundButtonPtr button, int value) extern(C) nothrow @nogcSets the toggle round button's value (on/off state).WidgetPtr fltk_toggle_round_button_as_widget(ToggleRoundButtonPtr button) extern(C) nothrow @nogcCasts a toggle round button to widget.RepeatButtonPtr fltk_repeat_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new repeat button widget.void fltk_repeat_button_delete(RepeatButtonPtr button) extern(C) nothrow @nogcDestroys a repeat button widget.WidgetPtr fltk_repeat_button_as_widget(RepeatButtonPtr button) extern(C) nothrow @nogcCasts a repeat button to widget.ReturnButtonPtr fltk_return_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new return button widget.void fltk_return_button_delete(ReturnButtonPtr button) extern(C) nothrow @nogcDestroys a return button widget.WidgetPtr fltk_return_button_as_widget(ReturnButtonPtr button) extern(C) nothrow @nogcCasts a return button to widget.RoundButtonPtr fltk_round_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new round button widget.void fltk_round_button_delete(RoundButtonPtr button) extern(C) nothrow @nogcDestroys a round button widget.int fltk_round_button_value(RoundButtonPtr button) extern(C) nothrow @nogcGets the round button's value (selected state).void fltk_round_button_set_value(RoundButtonPtr button, int value) extern(C) nothrow @nogcSets the round button's value (selected state).WidgetPtr fltk_round_button_as_widget(RoundButtonPtr button) extern(C) nothrow @nogcCasts a round button to widget.FloatInputPtr fltk_float_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new float input widget.void fltk_float_input_delete(FloatInputPtr input) extern(C) nothrow @nogcDestroys a float input widget.const(char) * fltk_float_input_value(FloatInputPtr input) extern(C) nothrow @nogcGets the float input's text value.void fltk_float_input_set_value(FloatInputPtr input, const(char) * value) extern(C) nothrow @nogcSets the float input's text value.WidgetPtr fltk_float_input_as_widget(FloatInputPtr input) extern(C) nothrow @nogcCasts a float input to widget.IntInputPtr fltk_int_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new int input widget.void fltk_int_input_delete(IntInputPtr input) extern(C) nothrow @nogcDestroys an int input widget.const(char) * fltk_int_input_value(IntInputPtr input) extern(C) nothrow @nogcGets the int input's text value.void fltk_int_input_set_value(IntInputPtr input, const(char) * value) extern(C) nothrow @nogcSets the int input's text value.WidgetPtr fltk_int_input_as_widget(IntInputPtr input) extern(C) nothrow @nogcCasts an int input to widget.SecretInputPtr fltk_secret_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new secret input widget.void fltk_secret_input_delete(SecretInputPtr input) extern(C) nothrow @nogcDestroys a secret input widget.const(char) * fltk_secret_input_value(SecretInputPtr input) extern(C) nothrow @nogcGets the secret input's text value.void fltk_secret_input_set_value(SecretInputPtr input, const(char) * value) extern(C) nothrow @nogcSets the secret input's text value.WidgetPtr fltk_secret_input_as_widget(SecretInputPtr input) extern(C) nothrow @nogcCasts a secret input to widget.MultilineInputPtr fltk_multiline_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new multiline input widget.void fltk_multiline_input_delete(MultilineInputPtr input) extern(C) nothrow @nogcDestroys a multiline input widget.const(char) * fltk_multiline_input_value(MultilineInputPtr input) extern(C) nothrow @nogcGets the multiline input's text value.void fltk_multiline_input_set_value(MultilineInputPtr input, const(char) * value) extern(C) nothrow @nogcSets the multiline input's text value.WidgetPtr fltk_multiline_input_as_widget(MultilineInputPtr input) extern(C) nothrow @nogcCasts a multiline input to widget.FileInputPtr fltk_file_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new file input widget.void fltk_file_input_delete(FileInputPtr input) extern(C) nothrow @nogcDestroys a file input widget.const(char) * fltk_file_input_value(FileInputPtr input) extern(C) nothrow @nogcGets the file input's text value.void fltk_file_input_set_value(FileInputPtr input, const(char) * value) extern(C) nothrow @nogcSets the file input's text value.WidgetPtr fltk_file_input_as_widget(FileInputPtr input) extern(C) nothrow @nogcCasts a file input to widget.MultilineOutputPtr fltk_multiline_output_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new multiline output widget.void fltk_multiline_output_delete(MultilineOutputPtr output) extern(C) nothrow @nogcDestroys a multiline output widget.const(char) * fltk_multiline_output_value(MultilineOutputPtr output) extern(C) nothrow @nogcGets the multiline output's text value.void fltk_multiline_output_set_value(MultilineOutputPtr output, const(char) * value) extern(C) nothrow @nogcSets the multiline output's text value.WidgetPtr fltk_multiline_output_as_widget(MultilineOutputPtr output) extern(C) nothrow @nogcCasts a multiline output to widget.DialPtr fltk_dial_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new dial widget.void fltk_dial_set_value(DialPtr dial, double value) extern(C) nothrow @nogcSets the dial's current value.void fltk_dial_set_minimum(DialPtr dial, double value) extern(C) nothrow @nogcSets the dial's minimum value.void fltk_dial_set_maximum(DialPtr dial, double value) extern(C) nothrow @nogcSets the dial's maximum value.void fltk_dial_set_range(DialPtr dial, double min, double max) extern(C) nothrow @nogcSets the dial's range.int fltk_dial_type(DialPtr dial) extern(C) nothrow @nogcGets the dial type (0=NORMAL, 1=LINE, 2=FILL).void fltk_dial_set_type(DialPtr dial, int type) extern(C) nothrow @nogcSets the dial type (0=NORMAL, 1=LINE, 2=FILL).short fltk_dial_angle1(DialPtr dial) extern(C) nothrow @nogcGets the first angle (start angle for the dial arc).short fltk_dial_angle2(DialPtr dial) extern(C) nothrow @nogcGets the second angle (end angle for the dial arc).void fltk_dial_set_angle2(DialPtr dial, short angle) extern(C) nothrow @nogcSets the second angle.void fltk_dial_angles(DialPtr dial, short a1, short a2) extern(C) nothrow @nogcSets both angles at once.CounterPtr fltk_counter_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new counter widget.double fltk_counter_value(CounterPtr counter) extern(C) nothrow @nogcGets the counter's current value.void fltk_counter_set_value(CounterPtr counter, double value) extern(C) nothrow @nogcSets the counter's current value.double fltk_counter_minimum(CounterPtr counter) extern(C) nothrow @nogcGets the counter's minimum value.void fltk_counter_set_minimum(CounterPtr counter, double value) extern(C) nothrow @nogcSets the counter's minimum value.double fltk_counter_maximum(CounterPtr counter) extern(C) nothrow @nogcGets the counter's maximum value.void fltk_counter_set_maximum(CounterPtr counter, double value) extern(C) nothrow @nogcSets the counter's maximum value.void fltk_counter_set_step(CounterPtr counter, double step) extern(C) nothrow @nogcSets the counter's step size.ubyte fltk_counter_get_type(CounterPtr counter) extern(C) nothrow @nogcGets the counter type (0=NORMAL, 1=SIMPLE).void fltk_counter_set_type(CounterPtr counter, ubyte type) extern(C) nothrow @nogcSets the counter type (0=NORMAL, 1=SIMPLE).WidgetPtr fltk_counter_as_widget(CounterPtr counter) extern(C) nothrow @nogcCasts a counter to widget.RollerPtr fltk_roller_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new roller widget.double fltk_roller_value(RollerPtr roller) extern(C) nothrow @nogcGets the roller's current value.void fltk_roller_set_value(RollerPtr roller, double value) extern(C) nothrow @nogcSets the roller's current value.double fltk_roller_minimum(RollerPtr roller) extern(C) nothrow @nogcGets the roller's minimum value.void fltk_roller_set_minimum(RollerPtr roller, double value) extern(C) nothrow @nogcSets the roller's minimum value.double fltk_roller_maximum(RollerPtr roller) extern(C) nothrow @nogcGets the roller's maximum value.void fltk_roller_set_maximum(RollerPtr roller, double value) extern(C) nothrow @nogcSets the roller's maximum value.WidgetPtr fltk_roller_as_widget(RollerPtr roller) extern(C) nothrow @nogcCasts a roller to widget.ScrollbarPtr fltk_scrollbar_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new scrollbar widget.void fltk_scrollbar_delete(ScrollbarPtr scrollbar) extern(C) nothrow @nogcDestroys a scrollbar widget.double fltk_scrollbar_value(ScrollbarPtr scrollbar) extern(C) nothrow @nogcGets the scrollbar's current value.void fltk_scrollbar_set_value(ScrollbarPtr scrollbar, double value) extern(C) nothrow @nogcSets the scrollbar's current value.double fltk_scrollbar_minimum(ScrollbarPtr scrollbar) extern(C) nothrow @nogcGets the scrollbar's minimum value.void fltk_scrollbar_set_minimum(ScrollbarPtr scrollbar, double value) extern(C) nothrow @nogcSets the scrollbar's minimum value.double fltk_scrollbar_maximum(ScrollbarPtr scrollbar) extern(C) nothrow @nogcGets the scrollbar's maximum value.void fltk_scrollbar_set_maximum(ScrollbarPtr scrollbar, double value) extern(C) nothrow @nogcSets the scrollbar's maximum value.WidgetPtr fltk_scrollbar_as_widget(ScrollbarPtr scrollbar) extern(C) nothrow @nogcCasts a scrollbar to widget.ValueInputPtr fltk_value_input_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new value input widget.void fltk_value_input_delete(ValueInputPtr input) extern(C) nothrow @nogcDestroys a value input widget.double fltk_value_input_value(ValueInputPtr input) extern(C) nothrow @nogcGets the value input's current value.void fltk_value_input_set_value(ValueInputPtr input, double value) extern(C) nothrow @nogcSets the value input's current value.double fltk_value_input_minimum(ValueInputPtr input) extern(C) nothrow @nogcGets the value input's minimum value.void fltk_value_input_set_minimum(ValueInputPtr input, double value) extern(C) nothrow @nogcSets the value input's minimum value.double fltk_value_input_maximum(ValueInputPtr input) extern(C) nothrow @nogcGets the value input's maximum value.void fltk_value_input_set_maximum(ValueInputPtr input, double value) extern(C) nothrow @nogcSets the value input's maximum value.WidgetPtr fltk_value_input_as_widget(ValueInputPtr input) extern(C) nothrow @nogcCasts a value input to widget.ValueOutputPtr fltk_value_output_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new value output widget.void fltk_value_output_delete(ValueOutputPtr output) extern(C) nothrow @nogcDestroys a value output widget.double fltk_value_output_value(ValueOutputPtr output) extern(C) nothrow @nogcGets the value output's current value.void fltk_value_output_set_value(ValueOutputPtr output, double value) extern(C) nothrow @nogcSets the value output's current value.double fltk_value_output_minimum(ValueOutputPtr output) extern(C) nothrow @nogcGets the value output's minimum value.void fltk_value_output_set_minimum(ValueOutputPtr output, double value) extern(C) nothrow @nogcSets the value output's minimum value.double fltk_value_output_maximum(ValueOutputPtr output) extern(C) nothrow @nogcGets the value output's maximum value.void fltk_value_output_set_maximum(ValueOutputPtr output, double value) extern(C) nothrow @nogcSets the value output's maximum value.WidgetPtr fltk_value_output_as_widget(ValueOutputPtr output) extern(C) nothrow @nogcCasts a value output to widget.AdjusterPtr fltk_adjuster_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new adjuster widget.void fltk_adjuster_delete(AdjusterPtr adjuster) extern(C) nothrow @nogcDestroys an adjuster widget.double fltk_adjuster_value(AdjusterPtr adjuster) extern(C) nothrow @nogcGets the adjuster's current value.void fltk_adjuster_set_value(AdjusterPtr adjuster, double value) extern(C) nothrow @nogcSets the adjuster's current value.double fltk_adjuster_minimum(AdjusterPtr adjuster) extern(C) nothrow @nogcGets the adjuster's minimum value.void fltk_adjuster_set_minimum(AdjusterPtr adjuster, double value) extern(C) nothrow @nogcSets the adjuster's minimum value.double fltk_adjuster_maximum(AdjusterPtr adjuster) extern(C) nothrow @nogcGets the adjuster's maximum value.void fltk_adjuster_set_maximum(AdjusterPtr adjuster, double value) extern(C) nothrow @nogcSets the adjuster's maximum value.WidgetPtr fltk_adjuster_as_widget(AdjusterPtr adjuster) extern(C) nothrow @nogcCasts an adjuster to widget.TilePtr fltk_tile_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new tile widget.WizardPtr fltk_wizard_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new wizard widget.WidgetPtr fltk_wizard_value(WizardPtr wizard) extern(C) nothrow @nogcGets the currently visible widget.void fltk_wizard_set_value(WizardPtr wizard, WidgetPtr widget) extern(C) nothrow @nogcSets the currently visible widget.WidgetPtr fltk_wizard_as_widget(WizardPtr wizard) extern(C) nothrow @nogcCasts a wizard to widget.SpinnerPtr fltk_spinner_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new spinner widget.double fltk_spinner_value(SpinnerPtr spinner) extern(C) nothrow @nogcGets the spinner's current value.void fltk_spinner_set_value(SpinnerPtr spinner, double value) extern(C) nothrow @nogcSets the spinner's current value.double fltk_spinner_minimum(SpinnerPtr spinner) extern(C) nothrow @nogcGets the spinner's minimum value.void fltk_spinner_set_minimum(SpinnerPtr spinner, double value) extern(C) nothrow @nogcSets the spinner's minimum value.double fltk_spinner_maximum(SpinnerPtr spinner) extern(C) nothrow @nogcGets the spinner's maximum value.void fltk_spinner_set_maximum(SpinnerPtr spinner, double value) extern(C) nothrow @nogcSets the spinner's maximum value.void fltk_spinner_set_step(SpinnerPtr spinner, double step) extern(C) nothrow @nogcSets the spinner's step size.WidgetPtr fltk_spinner_as_widget(SpinnerPtr spinner) extern(C) nothrow @nogcCasts a spinner to widget.MenuBarPtr fltk_menu_bar_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new menu bar widget.int fltk_menu_bar_add(MenuBarPtr menu, const(char) * path, int shortcut,
ShimCallback callback, void * userdata, int flags) extern(C) nothrow @nogcAdds a menu item to the menu bar.WidgetPtr fltk_menu_bar_as_widget(MenuBarPtr menu) extern(C) nothrow @nogcCasts a menu bar to widget.MenuButtonPtr fltk_menu_button_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new menu button widget.void fltk_menu_button_delete(MenuButtonPtr menu) extern(C) nothrow @nogcDestroys a menu button widget.int fltk_menu_button_add(MenuButtonPtr menu, const(char) * path, int shortcut,
ShimCallback callback, void * userdata, int flags) extern(C) nothrow @nogcAdds a menu item to the menu button.WidgetPtr fltk_menu_button_as_widget(MenuButtonPtr menu) extern(C) nothrow @nogcCasts a menu button to widget.InputChoicePtr fltk_input_choice_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new input choice widget.void fltk_input_choice_delete(InputChoicePtr input) extern(C) nothrow @nogcDestroys an input choice widget.const(char) * fltk_input_choice_value(InputChoicePtr input) extern(C) nothrow @nogcGets the current text value.void fltk_input_choice_set_value(InputChoicePtr input, const(char) * value) extern(C) nothrow @nogcSets the current text value.void fltk_input_choice_add(InputChoicePtr input, const(char) * text) extern(C) nothrow @nogcAdds an item to the dropdown menu.WidgetPtr fltk_input_choice_as_widget(InputChoicePtr input) extern(C) nothrow @nogcCasts an input choice to widget.TextEditorPtr fltk_text_editor_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new text editor widget.void fltk_text_editor_delete(TextEditorPtr editor) extern(C) nothrow @nogcDestroys a text editor widget.TextBufferPtr fltk_text_editor_buffer(TextEditorPtr editor) extern(C) nothrow @nogcGets the text buffer associated with the editor.void fltk_text_editor_set_buffer(TextEditorPtr editor, TextBufferPtr buffer) extern(C) nothrow @nogcSets the text buffer for the editor.void fltk_text_editor_copy(TextEditorPtr editor) extern(C) nothrow @nogcCopies selected text to clipboard.void fltk_text_editor_cut(TextEditorPtr editor) extern(C) nothrow @nogcCuts selected text to clipboard.void fltk_text_editor_paste(TextEditorPtr editor) extern(C) nothrow @nogcPastes text from clipboard.void fltk_text_editor_insert(TextEditorPtr editor, const(char) * text) extern(C) nothrow @nogcInserts text at the current cursor position.WidgetPtr fltk_text_editor_as_widget(TextEditorPtr editor) extern(C) nothrow @nogcCasts a text editor to widget.OutputPtr fltk_output_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new output widget.const(char) * fltk_output_value(OutputPtr output) extern(C) nothrow @nogcGets the output's text value.void fltk_output_set_value(OutputPtr output, const(char) * value) extern(C) nothrow @nogcSets the output's text value.WidgetPtr fltk_output_as_widget(OutputPtr output) extern(C) nothrow @nogcCasts an output to widget.ProgressPtr fltk_progress_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new progress widget.void fltk_progress_delete(ProgressPtr progress) extern(C) nothrow @nogcDestroys a progress widget.void fltk_progress_set_value(ProgressPtr progress, double value) extern(C) nothrow @nogcSets the progress value.void fltk_progress_set_minimum(ProgressPtr progress, double min) extern(C) nothrow @nogcSets the progress minimum value.void fltk_progress_set_maximum(ProgressPtr progress, double max) extern(C) nothrow @nogcSets the progress maximum value.WidgetPtr fltk_progress_as_widget(ProgressPtr progress) extern(C) nothrow @nogcCasts a progress to widget.PackPtr fltk_pack_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new pack widget.void fltk_pack_set_spacing(PackPtr pack, int spacing) extern(C) nothrow @nogcSets the pack spacing.void fltk_pack_set_type(PackPtr pack, ubyte type) extern(C) nothrow @nogcSets the pack type (horizontal or vertical).TabsPtr fltk_tabs_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new tabs widget.WidgetPtr fltk_tabs_value(TabsPtr tabs) extern(C) nothrow @nogcGets the currently selected tab (child widget).void fltk_tabs_set_value(TabsPtr tabs, WidgetPtr child) extern(C) nothrow @nogcSets the currently selected tab.ScrollPtr fltk_scroll_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new scroll widget.void fltk_scroll_begin(ScrollPtr scroll) extern(C) nothrow @nogcBegins adding children to the scroll.void fltk_scroll_scroll_to(ScrollPtr scroll, int x, int y) extern(C) nothrow @nogcScrolls to a position.int fltk_scroll_xposition(ScrollPtr scroll) extern(C) nothrow @nogcGets the horizontal scroll position.int fltk_scroll_yposition(ScrollPtr scroll) extern(C) nothrow @nogcGets the vertical scroll position.ChoicePtr fltk_choice_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new choice widget.int fltk_choice_add(ChoicePtr choice, const(char) * text) extern(C) nothrow @nogcAdds an item to the choice menu.void fltk_choice_clear(ChoicePtr choice) extern(C) nothrow @nogcClears all items from the choice menu.int fltk_choice_value(ChoicePtr choice) extern(C) nothrow @nogcGets the currently selected item index.void fltk_choice_set_value(ChoicePtr choice, int index) extern(C) nothrow @nogcSets the currently selected item by index.const(char) * fltk_choice_text(ChoicePtr choice) extern(C) nothrow @nogcGets the text of the currently selected item.char * fltk_text_buffer_text(TextBufferPtr buffer) extern(C) nothrow @nogcGets the buffer's text content. Caller must free with fltk_text_buffer_free_text.void fltk_text_buffer_free_text(char * text) extern(C) nothrow @nogcFrees text returned by fltk_text_buffer_text.void fltk_text_buffer_set_text(TextBufferPtr buffer, const(char) * text) extern(C) nothrow @nogcSets the buffer's text content.int fltk_text_buffer_length(TextBufferPtr buffer) extern(C) nothrow @nogcGets the buffer's length in bytes.void fltk_text_buffer_append(TextBufferPtr buffer, const(char) * text) extern(C) nothrow @nogcAppends text to the buffer.void fltk_text_buffer_insert(TextBufferPtr buffer, int pos, const(char) * text) extern(C) nothrow @nogcInserts text at a position.void fltk_text_buffer_remove(TextBufferPtr buffer, int start, int end) extern(C) nothrow @nogcRemoves text from a range.TextDisplayPtr fltk_text_display_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new text display widget.void fltk_text_display_delete(TextDisplayPtr display) extern(C) nothrow @nogcDestroys a text display widget.void fltk_text_display_set_buffer(TextDisplayPtr display, TextBufferPtr buffer) extern(C) nothrow @nogcSets the text buffer for the display.TextBufferPtr fltk_text_display_buffer(TextDisplayPtr display) extern(C) nothrow @nogcGets the text buffer for the display.void fltk_text_display_scroll(TextDisplayPtr display, int line) extern(C) nothrow @nogcScrolls to a line.void fltk_text_display_highlight_data(TextDisplayPtr display,
TextBufferPtr style_buffer, const(void) * style_table, int n_styles, char unfinished_style) extern(C) nothrow @nogcSets highlight data for syntax highlighting.void fltk_text_display_textfont(TextDisplayPtr display, int font) extern(C) nothrow @nogcSets the text font.int fltk_text_display_get_textfont(TextDisplayPtr display) extern(C) nothrow @nogcGets the text font.void fltk_text_display_textsize(TextDisplayPtr display, int size) extern(C) nothrow @nogcSets the text size.int fltk_text_display_get_textsize(TextDisplayPtr display) extern(C) nothrow @nogcGets the text size.void fltk_text_display_textcolor(TextDisplayPtr display, uint color) extern(C) nothrow @nogcSets the text color.uint fltk_text_display_get_textcolor(TextDisplayPtr display) extern(C) nothrow @nogcGets the text color.void fltk_text_display_cursor_color(TextDisplayPtr display, uint color) extern(C) nothrow @nogcSets the cursor color.void fltk_text_display_show_cursor(TextDisplayPtr display, int visible) extern(C) nothrow @nogcShows or hides the cursor.void fltk_text_display_wrap_mode(TextDisplayPtr display, int mode, int margin) extern(C) nothrow @nogcSets wrap mode (0=none, 1=at column, 2=at pixel, 3=at bounds).void fltk_text_display_linenumber_width(TextDisplayPtr display, int width) extern(C) nothrow @nogcSets line number display width (0 to hide).int fltk_text_display_get_linenumber_width(TextDisplayPtr display) extern(C) nothrow @nogcGets line number display width.WidgetPtr fltk_text_display_as_widget(TextDisplayPtr display) extern(C) nothrow @nogcCasts text display to widget.void fltk_alert(const(char) * message) extern(C) nothrow @nogcShows an alert dialog with an OK button.void fltk_message(const(char) * message) extern(C) nothrow @nogcShows a message dialog with an OK button.int fltk_ask(const(char) * message) extern(C) nothrow @nogcShows 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) extern(C) nothrow @nogcShows 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) extern(C) nothrow @nogcShows a text input dialog. Returns entered text or null if cancelled.const(char) * fltk_password_dialog(const(char) * message, const(char) * default_value) extern(C) nothrow @nogcShows a password input dialog. Returns entered text or null if cancelled.NativeFileChooserPtr fltk_native_file_chooser_new(int type) extern(C) nothrow @nogcCreates a new native file chooser.void fltk_native_file_chooser_delete(NativeFileChooserPtr fc) extern(C) nothrow @nogcDeletes a native file chooser.void fltk_native_file_chooser_set_title(NativeFileChooserPtr fc, const(char) * title) extern(C) nothrow @nogcSets the title of the file chooser dialog.const(char) * fltk_native_file_chooser_title(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the title of the file chooser dialog.void fltk_native_file_chooser_set_filter(NativeFileChooserPtr fc, const(char) * filter) extern(C) nothrow @nogcSets the file filter pattern.const(char) * fltk_native_file_chooser_filter(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the file filter pattern.void fltk_native_file_chooser_set_directory(NativeFileChooserPtr fc, const(char) * dir) extern(C) nothrow @nogcSets the initial directory.const(char) * fltk_native_file_chooser_directory(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the current directory.void fltk_native_file_chooser_set_preset_file(NativeFileChooserPtr fc, const(char) * name) extern(C) nothrow @nogcSets the preset filename.const(char) * fltk_native_file_chooser_preset_file(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the preset filename.int fltk_native_file_chooser_show(NativeFileChooserPtr fc) extern(C) nothrow @nogcShows the file chooser dialog. Returns 0 if picked, 1 if cancelled, -1 on error.int fltk_native_file_chooser_count(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the number of selected files.const(char) * fltk_native_file_chooser_filename(NativeFileChooserPtr fc, int index) extern(C) nothrow @nogcGets a selected filename by index.const(char) * fltk_native_file_chooser_errmsg(NativeFileChooserPtr fc) extern(C) nothrow @nogcGets the error message if show() returned -1.HoldBrowserPtr fltk_hold_browser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Hold Browser (single selection).WidgetPtr fltk_hold_browser_as_widget(HoldBrowserPtr b) extern(C) nothrow @nogcCasts a Hold Browser to widget.MultiBrowserPtr fltk_multi_browser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Multi Browser (multiple selection).WidgetPtr fltk_multi_browser_as_widget(MultiBrowserPtr b) extern(C) nothrow @nogcCasts a Multi Browser to widget.SelectBrowserPtr fltk_select_browser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Select Browser.void fltk_select_browser_delete(SelectBrowserPtr b) extern(C) nothrow @nogcDeletes a Select Browser.WidgetPtr fltk_select_browser_as_widget(SelectBrowserPtr b) extern(C) nothrow @nogcCasts a Select Browser to widget.void fltk_browser_add(WidgetPtr w, const(char) * text) extern(C) nothrow @nogcAdds an item to the browser.void fltk_browser_insert(WidgetPtr w, int line, const(char) * text) extern(C) nothrow @nogcInserts an item at a position (1-based).const(char) * fltk_browser_text(WidgetPtr w, int line) extern(C) nothrow @nogcGets the text of an item (1-based).void fltk_browser_set_text(WidgetPtr w, int line, const(char) * text) extern(C) nothrow @nogcSets the text of an item (1-based).int fltk_browser_value(WidgetPtr w) extern(C) nothrow @nogcGets the currently selected line (1-based), or 0 if none.void fltk_browser_set_value(WidgetPtr w, int line) extern(C) nothrow @nogcSelects a line (1-based).int fltk_browser_selected(WidgetPtr w, int line) extern(C) nothrow @nogcChecks if a line is selected (1-based). Returns 1 if selected.void fltk_browser_select(WidgetPtr w, int line, int selected) extern(C) nothrow @nogcSelects or deselects a line (1-based).void fltk_browser_make_visible(WidgetPtr w, int line) extern(C) nothrow @nogcMakes a line visible by scrolling (1-based).void fltk_browser_set_topline(WidgetPtr w, int line) extern(C) nothrow @nogcSets the topmost visible line.FileBrowserPtr fltk_file_browser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new File Browser.WidgetPtr fltk_file_browser_as_widget(FileBrowserPtr b) extern(C) nothrow @nogcCasts a File Browser to widget.int fltk_file_browser_load(FileBrowserPtr b, const(char) * directory) extern(C) nothrow @nogcLoads a directory into the file browser. Returns number of files loaded.void fltk_file_browser_set_filter(FileBrowserPtr b, const(char) * pattern) extern(C) nothrow @nogcSets the file filter pattern.const(char) * fltk_file_browser_filter(FileBrowserPtr b) extern(C) nothrow @nogcGets the file filter pattern.void fltk_file_browser_set_filetype(FileBrowserPtr b, int type) extern(C) nothrow @nogcSets the file type display mode (0=files, 1=directories, 2=both).int fltk_file_browser_filetype(FileBrowserPtr b) extern(C) nothrow @nogcGets the file type display mode.CheckBrowserPtr fltk_check_browser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Check Browser.WidgetPtr fltk_check_browser_as_widget(CheckBrowserPtr b) extern(C) nothrow @nogcCasts a Check Browser to widget.int fltk_check_browser_add(CheckBrowserPtr b, const(char) * text) extern(C) nothrow @nogcAdds an unchecked item. Returns number of items.int fltk_check_browser_add_checked(CheckBrowserPtr b, const(char) * text, int checked) extern(C) nothrow @nogcAdds an item with specified checked state. Returns number of items.int fltk_check_browser_remove(CheckBrowserPtr b, int item) extern(C) nothrow @nogcRemoves an item (1-based). Returns number of items.int fltk_check_browser_nchecked(CheckBrowserPtr b) extern(C) nothrow @nogcGets the number of checked items.int fltk_check_browser_checked(CheckBrowserPtr b, int item) extern(C) nothrow @nogcGets the checked state of an item (1-based).void fltk_check_browser_set_checked(CheckBrowserPtr b, int item, int checked) extern(C) nothrow @nogcSets the checked state of an item (1-based).int fltk_check_browser_value(CheckBrowserPtr b) extern(C) nothrow @nogcGets the currently selected item (1-based), or 0 if none.const(char) * fltk_check_browser_text(CheckBrowserPtr b, int item) extern(C) nothrow @nogcGets the text of an item (1-based).TreePtr fltk_tree_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Tree widget.TreeItemPtr fltk_tree_add(TreePtr tree, const(char) * path) extern(C) nothrow @nogcAdds an item by path (e.g., "Parent/Child"). Returns the new item.int fltk_tree_remove(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcRemoves an item. Returns 0 on success.void fltk_tree_clear_children(TreePtr tree) extern(C) nothrow @nogcClears all children (keeps root).TreeItemPtr fltk_tree_find_item(TreePtr tree, const(char) * path) extern(C) nothrow @nogcFinds an item by path.TreeItemPtr fltk_tree_next(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcGets the next item after the given item.TreeItemPtr fltk_tree_first_selected_item(TreePtr tree) extern(C) nothrow @nogcGets the first selected item.TreeItemPtr fltk_tree_next_selected_item(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcGets the next selected item.int fltk_tree_open(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcOpens (expands) an item. Returns 0 on success.int fltk_tree_close(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcCloses (collapses) an item. Returns 0 on success.int fltk_tree_is_open(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcChecks if an item is open.int fltk_tree_select(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcSelects an item. Returns 0 on success.int fltk_tree_deselect(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcDeselects an item. Returns 0 on success.int fltk_tree_deselect_all(TreePtr tree) extern(C) nothrow @nogcDeselects all items. Returns count deselected.int fltk_tree_is_selected(TreePtr tree, TreeItemPtr item) extern(C) nothrow @nogcChecks if an item is selected.void fltk_tree_showroot(TreePtr tree, int show) extern(C) nothrow @nogcShows or hides the root item.const(char) * fltk_tree_item_label(TreeItemPtr item) extern(C) nothrow @nogcGets the label of a tree item.void fltk_tree_item_set_label(TreeItemPtr item, const(char) * label) extern(C) nothrow @nogcSets the label of a tree item.TreeItemPtr fltk_tree_item_parent(TreeItemPtr item) extern(C) nothrow @nogcGets the parent of an item.TreeItemPtr fltk_tree_item_child(TreeItemPtr item, int index) extern(C) nothrow @nogcGets a child by index (0-based).int fltk_tree_item_has_children(TreeItemPtr item) extern(C) nothrow @nogcChecks if item has children.int fltk_tree_item_depth(TreeItemPtr item) extern(C) nothrow @nogcGets the depth of an item (0 for root).TreeItemArrayPtr fltk_tree_item_array_new(int chunksize) extern(C) nothrow @nogcCreates a new tree item array.void fltk_tree_item_array_delete(TreeItemArrayPtr arr) extern(C) nothrow @nogcDeletes a tree item array.int fltk_tree_item_array_total(TreeItemArrayPtr arr) extern(C) nothrow @nogcReturns the total number of items in the array.TreeItemPtr fltk_tree_item_array_get(TreeItemArrayPtr arr, int index) extern(C) nothrow @nogcGets an item at the specified index.void fltk_tree_item_array_add(TreeItemArrayPtr arr, TreeItemPtr item) extern(C) nothrow @nogcAdds an item to the end of the array.void fltk_tree_item_array_insert(TreeItemArrayPtr arr, int pos, TreeItemPtr item) extern(C) nothrow @nogcInserts an item at the specified position.void fltk_tree_item_array_replace(TreeItemArrayPtr arr, int pos, TreeItemPtr item) extern(C) nothrow @nogcReplaces an item at the specified position.void fltk_tree_item_array_remove(TreeItemArrayPtr arr, int index) extern(C) nothrow @nogcRemoves an item at the specified index.void fltk_tree_item_array_clear(TreeItemArrayPtr arr) extern(C) nothrow @nogcClears all items from the array.void fltk_tree_item_array_swap(TreeItemArrayPtr arr, int ax, int bx) extern(C) nothrow @nogcSwaps two items in the array.int fltk_tree_item_array_move(TreeItemArrayPtr arr, int to, int from) extern(C) nothrow @nogcMoves an item from one position to another. Returns 0 on success.int fltk_tree_item_labelfont(TreePtr tree) extern(C) nothrow @nogcGets the tree's item label font.void fltk_tree_set_item_labelfont(TreePtr tree, int font) extern(C) nothrow @nogcSets the tree's item label font.int fltk_tree_item_labelsize(TreePtr tree) extern(C) nothrow @nogcGets the tree's item label size.void fltk_tree_set_item_labelsize(TreePtr tree, int size) extern(C) nothrow @nogcSets the tree's item label size.uint fltk_tree_item_labelfgcolor(TreePtr tree) extern(C) nothrow @nogcGets the tree's item foreground color.void fltk_tree_set_item_labelfgcolor(TreePtr tree, uint color) extern(C) nothrow @nogcSets the tree's item foreground color.uint fltk_tree_item_labelbgcolor(TreePtr tree) extern(C) nothrow @nogcGets the tree's item background color.void fltk_tree_set_item_labelbgcolor(TreePtr tree, uint color) extern(C) nothrow @nogcSets the tree's item background color.void fltk_tree_set_marginleft(TreePtr tree, int val) extern(C) nothrow @nogcSets the tree's left margin.void fltk_tree_set_margintop(TreePtr tree, int val) extern(C) nothrow @nogcSets the tree's top margin.int fltk_tree_connectorstyle(TreePtr tree) extern(C) nothrow @nogcGets the tree's connector style.void fltk_tree_set_connectorstyle(TreePtr tree, int style) extern(C) nothrow @nogcSets the tree's connector style.uint fltk_tree_connectorcolor(TreePtr tree) extern(C) nothrow @nogcGets the tree's connector color.void fltk_tree_set_connectorcolor(TreePtr tree, uint color) extern(C) nothrow @nogcSets the tree's connector color.int fltk_tree_connectorwidth(TreePtr tree) extern(C) nothrow @nogcGets the tree's connector width.void fltk_tree_set_connectorwidth(TreePtr tree, int val) extern(C) nothrow @nogcSets the tree's connector width.void fltk_tree_set_linespacing(TreePtr tree, int val) extern(C) nothrow @nogcSets the tree's line spacing.void fltk_tree_set_selectmode(TreePtr tree, int mode) extern(C) nothrow @nogcSets the tree's selection mode.void fltk_tree_set_sortorder(TreePtr tree, int order) extern(C) nothrow @nogcSets the tree's sort order.int fltk_tree_openchild_marginbottom(TreePtr tree) extern(C) nothrow @nogcGets the margin below an open child.void fltk_tree_set_openchild_marginbottom(TreePtr tree, int val) extern(C) nothrow @nogcSets the margin below an open child.int fltk_tree_usericonmarginleft(TreePtr tree) extern(C) nothrow @nogcGets the user icon's left margin.void fltk_tree_set_usericonmarginleft(TreePtr tree, int val) extern(C) nothrow @nogcSets the user icon's left margin.void fltk_tree_set_labelmarginleft(TreePtr tree, int val) extern(C) nothrow @nogcSets the label's left margin.void fltk_tree_set_showcollapse(TreePtr tree, int val) extern(C) nothrow @nogcSets if collapse icons should be shown.void fltk_tree_set_selectbox(TreePtr tree, int val) extern(C) nothrow @nogcSets the selection box style.HelpViewPtr fltk_help_view_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Help View widget.WidgetPtr fltk_help_view_as_widget(HelpViewPtr hv) extern(C) nothrow @nogcCasts a Help View to widget.void fltk_help_view_value(HelpViewPtr hv, const(char) * val) extern(C) nothrow @nogcSets the HTML value/content.const(char) * fltk_help_view_get_value(HelpViewPtr hv) extern(C) nothrow @nogcGets the current HTML value/content.int fltk_help_view_load(HelpViewPtr hv, const(char) * filename) extern(C) nothrow @nogcLoads HTML from a file. Returns 0 on success, -1 on error.void fltk_help_view_textcolor(HelpViewPtr hv, uint color) extern(C) nothrow @nogcSets the text color.int fltk_color_chooser_dialog(const(char) * name, double * r, double * g, double * b, int mode) extern(C) nothrow @nogcShows a color chooser dialog. Returns 1 if color selected, 0 if cancelled.int fltk_set_scheme(const(char) * scheme) extern(C) nothrow @nogcSets the UI scheme. Returns 1 on success, 0 on failure.void fltk_copy(const(char) * text, int len, int destination) extern(C) nothrow @nogcCopies text to clipboard. destination: 0=selection, 1=clipboardvoid fltk_paste(WidgetPtr receiver, int source) extern(C) nothrow @nogcRequests paste to widget. source: 0=selection, 1=clipboardint fltk_dnd() extern(C) nothrow @nogcInitiates a drag and drop operation. Returns non-zero if drop accepted.void fltk_add_fd(int fd, int when, FdCallback cb, void * userdata) extern(C) nothrow @nogcAdds a file descriptor callback with event flags.void fltk_add_fd_read(int fd, FdCallback cb, void * userdata) extern(C) nothrow @nogcAdds a file descriptor callback for read events.void fltk_remove_fd(int fd, int when) extern(C) nothrow @nogcRemoves a file descriptor callback for specific events.void fltk_remove_fd_all(int fd) extern(C) nothrow @nogcRemoves all callbacks for a file descriptor.void fltk_screen_xywh(int screen, int * x, int * y, int * w, int * h) extern(C) nothrow @nogcGets the bounding rectangle of a screen.void fltk_screen_work_area(int screen, int * x, int * y, int * w, int * h) extern(C) nothrow @nogcGets the work area of a screen (excluding taskbars, etc.).void fltk_screen_dpi(int screen, float * h, float * v) extern(C) nothrow @nogcGets the DPI of a screen.TablePtr fltk_table_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Table widget.void fltk_table_set_draw_cell_callback(TablePtr table,
TableCellCallback cb,
void * userdata) extern(C) nothrow @nogcSets the draw cell callback.void fltk_table_cols(TablePtr table, int count) extern(C) nothrow @nogcSets the number of columns.void fltk_table_row_height(TablePtr table, int row, int height) extern(C) nothrow @nogcSets the height of a specific row.int fltk_table_get_row_height(TablePtr table, int row) extern(C) nothrow @nogcGets the height of a specific row.void fltk_table_row_height_all(TablePtr table, int height) extern(C) nothrow @nogcSets the height of all rows.void fltk_table_col_width(TablePtr table, int col, int width) extern(C) nothrow @nogcSets the width of a specific column.int fltk_table_get_col_width(TablePtr table, int col) extern(C) nothrow @nogcGets the width of a specific column.void fltk_table_col_width_all(TablePtr table, int width) extern(C) nothrow @nogcSets the width of all columns.void fltk_table_row_header(TablePtr table, int flag) extern(C) nothrow @nogcEnables or disables row headers.int fltk_table_get_row_header(TablePtr table) extern(C) nothrow @nogcGets whether row headers are enabled.void fltk_table_col_header(TablePtr table, int flag) extern(C) nothrow @nogcEnables or disables column headers.int fltk_table_get_col_header(TablePtr table) extern(C) nothrow @nogcGets whether column headers are enabled.void fltk_table_row_header_width(TablePtr table, int width) extern(C) nothrow @nogcSets the row header width.int fltk_table_get_row_header_width(TablePtr table) extern(C) nothrow @nogcGets the row header width.void fltk_table_col_header_height(TablePtr table, int height) extern(C) nothrow @nogcSets the column header height.int fltk_table_get_col_header_height(TablePtr table) extern(C) nothrow @nogcGets the column header height.void fltk_table_row_header_color(TablePtr table, uint color) extern(C) nothrow @nogcSets the row header color.uint fltk_table_get_row_header_color(TablePtr table) extern(C) nothrow @nogcGets the row header color.void fltk_table_col_header_color(TablePtr table, uint color) extern(C) nothrow @nogcSets the column header color.uint fltk_table_get_col_header_color(TablePtr table) extern(C) nothrow @nogcGets the column header color.void fltk_table_row_resize(TablePtr table, int flag) extern(C) nothrow @nogcEnables or disables row resizing.int fltk_table_get_row_resize(TablePtr table) extern(C) nothrow @nogcGets whether row resizing is enabled.void fltk_table_col_resize(TablePtr table, int flag) extern(C) nothrow @nogcEnables or disables column resizing.int fltk_table_get_col_resize(TablePtr table) extern(C) nothrow @nogcGets whether column resizing is enabled.void fltk_table_table_box(TablePtr table, int boxtype) extern(C) nothrow @nogcSets the box type for the table.int fltk_table_get_table_box(TablePtr table) extern(C) nothrow @nogcGets the box type for the table.void fltk_table_clear(TablePtr table) extern(C) nothrow @nogcClears the table (removes all rows and columns).int fltk_table_is_interactive_resize(TablePtr table) extern(C) nothrow @nogcReturns non-zero if user is interactively resizing a row or column.void fltk_table_row_resize_min(TablePtr table, int val) extern(C) nothrow @nogcSets the minimum row resize height.int fltk_table_get_row_resize_min(TablePtr table) extern(C) nothrow @nogcGets the minimum row resize height.void fltk_table_col_resize_min(TablePtr table, int val) extern(C) nothrow @nogcSets the minimum column resize width.int fltk_table_get_col_resize_min(TablePtr table) extern(C) nothrow @nogcGets the minimum column resize width.void fltk_table_row_position(TablePtr table, int row) extern(C) nothrow @nogcSets the row scroll position.int fltk_table_get_row_position(TablePtr table) extern(C) nothrow @nogcGets the current row scroll position.void fltk_table_col_position(TablePtr table, int col) extern(C) nothrow @nogcSets the column scroll position.int fltk_table_get_col_position(TablePtr table) extern(C) nothrow @nogcGets the current column scroll position.int fltk_table_is_selected(TablePtr table, int row, int col) extern(C) nothrow @nogcChecks if a cell is selected.void fltk_table_get_selection(TablePtr table, int * row_top, int * col_left, int * row_bot, int * col_right) extern(C) nothrow @nogcGets the current selection range.void fltk_table_set_selection(TablePtr table, int row_top, int col_left, int row_bot, int col_right) extern(C) nothrow @nogcSets the selection range.int fltk_table_move_cursor(TablePtr table, int row, int col, int shiftselect) extern(C) nothrow @nogcMoves 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) extern(C) nothrow @nogcGets the range of visible cells.int fltk_table_callback_row(TablePtr table) extern(C) nothrow @nogcGets the callback row (row that triggered callback).int fltk_table_callback_col(TablePtr table) extern(C) nothrow @nogcGets the callback column (column that triggered callback).TableRowPtr fltk_table_row_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new Table Row widget.WidgetPtr fltk_table_row_as_widget(TableRowPtr table) extern(C) nothrow @nogcCasts a Table Row to widget.GroupPtr fltk_table_row_as_group(TableRowPtr table) extern(C) nothrow @nogcCasts a Table Row to group.void fltk_table_row_set_draw_cell_callback(TableRowPtr table,
DrawCellCallback cb,
void * userdata) extern(C) nothrow @nogcSets the draw cell callback.void fltk_table_row_rows(TableRowPtr table, int count) extern(C) nothrow @nogcSets the number of rows.void fltk_table_row_cols(TableRowPtr table, int count) extern(C) nothrow @nogcSets the number of columns.void fltk_table_row_row_height(TableRowPtr table, int row, int height) extern(C) nothrow @nogcSets the height of a specific row.int fltk_table_row_get_row_height(TableRowPtr table, int row) extern(C) nothrow @nogcGets the height of a specific row.void fltk_table_row_row_height_all(TableRowPtr table, int height) extern(C) nothrow @nogcSets the height of all rows.void fltk_table_row_col_width(TableRowPtr table, int col, int width) extern(C) nothrow @nogcSets the width of a specific column.int fltk_table_row_get_col_width(TableRowPtr table, int col) extern(C) nothrow @nogcGets the width of a specific column.void fltk_table_row_col_width_all(TableRowPtr table, int width) extern(C) nothrow @nogcSets the width of all columns.void fltk_table_row_row_header(TableRowPtr table, int flag) extern(C) nothrow @nogcEnables or disables row headers.int fltk_table_row_get_row_header(TableRowPtr table) extern(C) nothrow @nogcGets whether row headers are enabled.void fltk_table_row_col_header(TableRowPtr table, int flag) extern(C) nothrow @nogcEnables or disables column headers.int fltk_table_row_get_col_header(TableRowPtr table) extern(C) nothrow @nogcGets whether column headers are enabled.void fltk_table_row_row_header_width(TableRowPtr table, int width) extern(C) nothrow @nogcSets the row header width.int fltk_table_row_get_row_header_width(TableRowPtr table) extern(C) nothrow @nogcGets the row header width.void fltk_table_row_col_header_height(TableRowPtr table, int height) extern(C) nothrow @nogcSets the column header height.int fltk_table_row_get_col_header_height(TableRowPtr table) extern(C) nothrow @nogcGets the column header height.void fltk_table_row_row_header_color(TableRowPtr table, uint color) extern(C) nothrow @nogcSets the row header color.uint fltk_table_row_get_row_header_color(TableRowPtr table) extern(C) nothrow @nogcGets the row header color.void fltk_table_row_col_header_color(TableRowPtr table, uint color) extern(C) nothrow @nogcSets the column header color.uint fltk_table_row_get_col_header_color(TableRowPtr table) extern(C) nothrow @nogcGets the column header color.void fltk_table_row_row_resize(TableRowPtr table, int flag) extern(C) nothrow @nogcEnables or disables row resizing.int fltk_table_row_get_row_resize(TableRowPtr table) extern(C) nothrow @nogcGets whether row resizing is enabled.void fltk_table_row_col_resize(TableRowPtr table, int flag) extern(C) nothrow @nogcEnables or disables column resizing.int fltk_table_row_get_col_resize(TableRowPtr table) extern(C) nothrow @nogcGets whether column resizing is enabled.void fltk_table_row_type(TableRowPtr table, int mode) extern(C) nothrow @nogcSets the selection mode.int fltk_table_row_row_selected(TableRowPtr table, int row) extern(C) nothrow @nogcChecks if a row is selected.int fltk_table_row_select_row(TableRowPtr table, int row, int flag) extern(C) nothrow @nogcSelects or deselects a row.void fltk_table_row_select_all_rows(TableRowPtr table, int flag) extern(C) nothrow @nogcSelects or deselects all rows.void fltk_table_row_table_box(TableRowPtr table, int boxtype) extern(C) nothrow @nogcSets the box type for the table.int fltk_table_row_get_table_box(TableRowPtr table) extern(C) nothrow @nogcGets the box type for the table.void fltk_table_row_clear(TableRowPtr table) extern(C) nothrow @nogcClears the table (removes all rows and columns).int fltk_table_row_is_interactive_resize(TableRowPtr table) extern(C) nothrow @nogcReturns non-zero if user is interactively resizing a row or column.void fltk_table_row_row_resize_min(TableRowPtr table, int val) extern(C) nothrow @nogcSets the minimum row resize height.int fltk_table_row_get_row_resize_min(TableRowPtr table) extern(C) nothrow @nogcGets the minimum row resize height.void fltk_table_row_col_resize_min(TableRowPtr table, int val) extern(C) nothrow @nogcSets the minimum column resize width.int fltk_table_row_get_col_resize_min(TableRowPtr table) extern(C) nothrow @nogcGets the minimum column resize width.void fltk_table_row_row_position(TableRowPtr table, int row) extern(C) nothrow @nogcSets the row scroll position.int fltk_table_row_get_row_position(TableRowPtr table) extern(C) nothrow @nogcGets the current row scroll position.void fltk_table_row_col_position(TableRowPtr table, int col) extern(C) nothrow @nogcSets the column scroll position.int fltk_table_row_get_col_position(TableRowPtr table) extern(C) nothrow @nogcGets the current column scroll position.int fltk_table_row_is_selected(TableRowPtr table, int row, int col) extern(C) nothrow @nogcChecks if a cell is selected.void fltk_table_row_get_selection(TableRowPtr table, int * row_top, int * col_left, int * row_bot, int * col_right) extern(C) nothrow @nogcGets the current selection range.void fltk_table_row_set_selection(TableRowPtr table, int row_top, int col_left, int row_bot, int col_right) extern(C) nothrow @nogcSets the selection range.int fltk_table_row_move_cursor(TableRowPtr table, int row, int col, int shiftselect) extern(C) nothrow @nogcMoves 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) extern(C) nothrow @nogcGets the range of visible cells.int fltk_table_row_callback_row(TableRowPtr table) extern(C) nothrow @nogcGets the callback row (row that triggered callback).int fltk_table_row_callback_col(TableRowPtr table) extern(C) nothrow @nogcGets the callback column (column that triggered callback).int fltk_table_row_callback_context(TableRowPtr table) extern(C) nothrow @nogcGets the callback context.BitmapPtr fltk_bitmap_new(const(ubyte) * bits, int w, int h) extern(C) nothrow @nogcCreates a bitmap from XBM data.PixmapPtr fltk_pixmap_new(const(char *) * data) extern(C) nothrow @nogcCreates a pixmap from XPM data.TiledImagePtr fltk_tiled_image_new(ImagePtr image, int w, int h) extern(C) nothrow @nogcCreates a tiled image from another image.ImagePtr fltk_tiled_image_as_image(TiledImagePtr ti) extern(C) nothrow @nogcCasts a tiled image to base image.PnmImagePtr fltk_pnm_image_new(const(char) * filename) extern(C) nothrow @nogcCreates a new PNM image from a file.ImagePtr fltk_pnm_image_as_image(PnmImagePtr image) extern(C) nothrow @nogcCasts a PNM image to base image.int fltk_pnm_image_fail(PnmImagePtr image) extern(C) nothrow @nogcChecks if image failed to load. Returns non-zero on failure.void fltk_draw_color_rgb(ubyte r, ubyte g, ubyte b) extern(C) nothrow @nogcSets the current drawing color from RGB values.void fltk_draw_line(int x1, int y1, int x2, int y2) extern(C) nothrow @nogcDraws a line between two points.void fltk_draw_rect(int x, int y, int w, int h) extern(C) nothrow @nogcDraws an outlined rectangle.void fltk_draw_rectf_rgb(int x, int y, int w, int h, ubyte r, ubyte g, ubyte b) extern(C) nothrow @nogcDraws a filled rectangle with specific color.void fltk_draw_arc(int x, int y, int w, int h, double a1, double a2) extern(C) nothrow @nogcDraws an arc (part of an ellipse outline).void fltk_draw_pie(int x, int y, int w, int h, double a1, double a2) extern(C) nothrow @nogcDraws a filled pie slice.void fltk_draw_circle(double x, double y, double r) extern(C) nothrow @nogcDraws a circle outline.double fltk_draw_width(const(char) * text) extern(C) nothrow @nogcGets the width of a string in the current font.void fltk_draw_measure(const(char) * text, int * w, int * h) extern(C) nothrow @nogcMeasures the width and height of a string.void fltk_draw_text(const(char) * text, int x, int y) extern(C) nothrow @nogcDraws text at a position.void fltk_push_clip(int x, int y, int w, int h) extern(C) nothrow @nogcPushes a clipping rectangle onto the stack.int fltk_not_clipped(int x, int y, int w, int h) extern(C) nothrow @nogcTests if a rectangle is inside the current clip region.void fltk_push_no_clip() extern(C) nothrow @nogcPushes an empty clipping region (nothing visible).void fltk_end_complex_polygon() extern(C) nothrow @nogcEnds a complex polygon definition and draws it filled.void fltk_polygon3(int x0, int y0, int x1, int y1, int x2, int y2) extern(C) nothrow @nogcDraws a filled 3-sided polygon.void fltk_polygon4(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) extern(C) nothrow @nogcDraws a filled 4-sided polygon.void fltk_loop3(int x0, int y0, int x1, int y1, int x2, int y2) extern(C) nothrow @nogcDraws 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) extern(C) nothrow @nogcDraws a 4-sided line loop (unfilled quadrilateral).void fltk_vertices(int n, const(double) * xp, const(double) * yp) extern(C) nothrow @nogcAdds a series of vertices from arrays.void fltk_overlay_rect(int x, int y, int w, int h) extern(C) nothrow @nogcDraws an XOR overlay rectangle.void fltk_cursor_color(int cursor, uint fg, uint bg) extern(C) nothrow @nogcSets the cursor shape with colors.void fltk_scroll(int x, int y, int w, int h, int dx, int dy, ScrollDrawAreaCallback draw_area, void * data) extern(C) nothrow @nogcScrolls a rectangle and calls a callback to draw uncovered areas.const(char) * fltk_shortcut_label(uint shortcut) extern(C) nothrow @nogcGets the label string for a keyboard shortcut.int fltk_draw_symbol(const(char) * label, int x, int y, int w, int h, uint color) extern(C) nothrow @nogcDraws a named symbol. Returns non-zero if recognized.void fltk_text_extents(const(char) * text, int * dx, int * dy, int * w, int * h) extern(C) nothrow @nogcGets the bounding box extents of text.const(char) * fltk_latin1_to_local(const(char) * text, int n) extern(C) nothrow @nogcConverts Latin-1 text to local encoding.const(char) * fltk_local_to_latin1(const(char) * text, int n) extern(C) nothrow @nogcConverts local encoding to Latin-1.const(char) * fltk_mac_roman_to_local(const(char) * text, int n) extern(C) nothrow @nogcConverts Mac Roman text to local encoding.const(char) * fltk_local_to_mac_roman(const(char) * text, int n) extern(C) nothrow @nogcConverts local encoding to Mac Roman.void fltk_draw_box(int boxtype, int x, int y, int w, int h, uint color) extern(C) nothrow @nogcDraws a box with the specified type.void fltk_frame(const(char) * s, int x, int y, int w, int h) extern(C) nothrow @nogcDraws a frame using a string specification.void fltk_frame2(const(char) * s, int x, int y, int w, int h) extern(C) nothrow @nogcDraws 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) extern(C) nothrow @nogcDraws raw RGB image data.void fltk_draw_image_mono(const(ubyte) * buf, int x, int y, int w, int h, int d, int ld) extern(C) nothrow @nogcDraws raw monochrome image data.ubyte * fltk_read_image(ubyte * p, int x, int y, int w, int h, int alpha) extern(C) nothrow @nogcReads pixels from the current window.uint fltk_color_average(uint c1, uint c2, float weight) extern(C) nothrow @nogcAverages two colors. Weight 0.0=c2, 1.0=c1.uint fltk_contrast(uint fg, uint bg) extern(C) nothrow @nogcReturns a contrasting color (white or black) for the given background.uint fltk_inactive_color(uint c) extern(C) nothrow @nogcReturns an inactive (grayed) version of a color.uint fltk_show_colormap(uint oldcol) extern(C) nothrow @nogcShows a color selection popup and returns the selected color.int fltk_printer_start_job(PrinterPtr printer, int pagecount, int * frompage, int * topage) extern(C) nothrow @nogcStarts a print job. Returns 0 on success, non-zero on error or cancel.int fltk_printer_start_page(PrinterPtr printer) extern(C) nothrow @nogcStarts a new page. Returns 0 on success.int fltk_printer_end_page(PrinterPtr printer) extern(C) nothrow @nogcEnds the current page. Returns 0 on success.int fltk_printer_printable_rect(PrinterPtr printer, int * w, int * h) extern(C) nothrow @nogcGets the printable rectangle dimensions. Returns 0 on success.void fltk_printer_margins(PrinterPtr printer, int * left, int * top, int * right, int * bottom) extern(C) nothrow @nogcGets the page margins.void fltk_printer_get_origin(PrinterPtr printer, int * x, int * y) extern(C) nothrow @nogcGets the current origin.void fltk_printer_set_origin(PrinterPtr printer, int x, int y) extern(C) nothrow @nogcSets the origin for drawing.void fltk_printer_scale(PrinterPtr printer, float scale_x, float scale_y) extern(C) nothrow @nogcScales the drawing.void fltk_printer_rotate(PrinterPtr printer, float angle) extern(C) nothrow @nogcRotates the drawing.void fltk_printer_translate(PrinterPtr printer, int x, int y) extern(C) nothrow @nogcTranslates the origin.void fltk_printer_untranslate(PrinterPtr printer) extern(C) nothrow @nogcRemoves the last translation.void fltk_printer_print_widget(PrinterPtr printer, WidgetPtr widget, int delta_x, int delta_y) extern(C) nothrow @nogcPrints a widget.void fltk_printer_print_window(PrinterPtr printer, WindowPtr window, int delta_x, int delta_y) extern(C) nothrow @nogcPrints a window and its contents.void fltk_printer_set_current(PrinterPtr printer) extern(C) nothrow @nogcSets the printer as the current drawing surface.int fltk_printer_is_supported() extern(C) nothrow @nogcChecks if printing is supported on this platform.PostScriptFileDevicePtr fltk_postscript_new() extern(C) nothrow @nogcCreates a new PostScript file device.void fltk_postscript_delete(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcDestroys a PostScript file device.int fltk_postscript_start_job(PostScriptFileDevicePtr ps, const(char) * filename, int pagecount, int format, int layout) extern(C) nothrow @nogcStarts 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) extern(C) nothrow @nogcStarts a PostScript output job to an existing FILE pointer. Returns 0 on success.void fltk_postscript_end_job(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcEnds the current PostScript job.int fltk_postscript_start_page(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcStarts a new page. Returns 0 on success.int fltk_postscript_end_page(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcEnds the current page. Returns 0 on success.int fltk_postscript_printable_rect(PostScriptFileDevicePtr ps, int * w, int * h) extern(C) nothrow @nogcGets the printable rectangle dimensions. Returns 0 on success.void fltk_postscript_margins(PostScriptFileDevicePtr ps, int * left, int * top, int * right, int * bottom) extern(C) nothrow @nogcGets the page margins.void fltk_postscript_get_origin(PostScriptFileDevicePtr ps, int * x, int * y) extern(C) nothrow @nogcGets the current origin.void fltk_postscript_set_origin(PostScriptFileDevicePtr ps, int x, int y) extern(C) nothrow @nogcSets the origin for drawing.void fltk_postscript_scale(PostScriptFileDevicePtr ps, float scale_x, float scale_y) extern(C) nothrow @nogcScales the drawing.void fltk_postscript_rotate(PostScriptFileDevicePtr ps, float angle) extern(C) nothrow @nogcRotates the drawing.void fltk_postscript_translate(PostScriptFileDevicePtr ps, int x, int y) extern(C) nothrow @nogcTranslates the origin.void fltk_postscript_untranslate(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcRemoves the last translation.void fltk_postscript_print_widget(PostScriptFileDevicePtr ps, WidgetPtr widget, int delta_x, int delta_y) extern(C) nothrow @nogcPrints a widget to the PostScript output.void fltk_postscript_print_window(PostScriptFileDevicePtr ps, WindowPtr window, int delta_x, int delta_y) extern(C) nothrow @nogcPrints a window and its contents to the PostScript output.void fltk_postscript_set_current(PostScriptFileDevicePtr ps) extern(C) nothrow @nogcSets the PostScript device as the current drawing surface.CustomWidgetPtr fltk_custom_widget_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new custom widget.void fltk_custom_widget_delete(CustomWidgetPtr widget) extern(C) nothrow @nogcDestroys a custom widget.WidgetPtr fltk_custom_widget_as_widget(CustomWidgetPtr widget) extern(C) nothrow @nogcCasts a custom widget to base widget.void fltk_custom_widget_set_draw_callback(CustomWidgetPtr widget,
CustomWidgetDrawCallback callback,
void * userdata) extern(C) nothrow @nogcSets the draw callback for the custom widget.void fltk_custom_widget_set_handle_callback(CustomWidgetPtr widget,
CustomWidgetHandleCallback callback,
void * userdata) extern(C) nothrow @nogcSets the handle callback for the custom widget.void fltk_custom_widget_redraw(CustomWidgetPtr widget) extern(C) nothrow @nogcTriggers a redraw of the custom widget.double fltk_valuator_value(WidgetPtr widget) extern(C) nothrow @nogcGets the current value of a valuator widget.int fltk_valuator_set_value(WidgetPtr widget, double val) extern(C) nothrow @nogcSets the current value of a valuator widget. Returns non-zero if value changed.double fltk_valuator_minimum(WidgetPtr widget) extern(C) nothrow @nogcGets the minimum value of a valuator widget.void fltk_valuator_set_minimum(WidgetPtr widget, double val) extern(C) nothrow @nogcSets the minimum value of a valuator widget.double fltk_valuator_maximum(WidgetPtr widget) extern(C) nothrow @nogcGets the maximum value of a valuator widget.void fltk_valuator_set_maximum(WidgetPtr widget, double val) extern(C) nothrow @nogcSets the maximum value of a valuator widget.void fltk_valuator_range(WidgetPtr widget, double min, double max) extern(C) nothrow @nogcSets the minimum and maximum values of a valuator widget.void fltk_valuator_bounds(WidgetPtr widget, double min, double max) extern(C) nothrow @nogcSets the minimum and maximum values of a valuator widget (alias for range).double fltk_valuator_step(WidgetPtr widget) extern(C) nothrow @nogcGets the step value of a valuator widget.void fltk_valuator_set_step(WidgetPtr widget, double val) extern(C) nothrow @nogcSets the step value of a valuator widget.void fltk_valuator_set_step_fraction(WidgetPtr widget, double a, int b) extern(C) nothrow @nogcSets the step value as a fraction A/B.void fltk_valuator_precision(WidgetPtr widget, int digits) extern(C) nothrow @nogcSets the precision (number of decimal digits) for the valuator.double fltk_valuator_round(WidgetPtr widget, double val) extern(C) nothrow @nogcRounds a value to the nearest step multiple.double fltk_valuator_clamp(WidgetPtr widget, double val) extern(C) nothrow @nogcClamps a value to the valuator's range.double fltk_valuator_increment(WidgetPtr widget, double val, int n) extern(C) nothrow @nogcIncrements the value by n steps.int fltk_valuator_format(WidgetPtr widget, char * buffer) extern(C) nothrow @nogcFormats 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) extern(C) nothrow @nogcCreates a new positioner widget.void fltk_positioner_delete(PositionerPtr pos) extern(C) nothrow @nogcDestroys a positioner widget.WidgetPtr fltk_positioner_as_widget(PositionerPtr pos) extern(C) nothrow @nogcCasts a positioner to widget.int fltk_positioner_set_xvalue(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the X axis value. Returns non-zero if value changed.int fltk_positioner_set_yvalue(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the Y axis value. Returns non-zero if value changed.int fltk_positioner_value(PositionerPtr pos, double x, double y) extern(C) nothrow @nogcSets both X and Y values. Returns non-zero if either value changed.double fltk_positioner_xminimum(PositionerPtr pos) extern(C) nothrow @nogcGets the X axis minimum.void fltk_positioner_set_xminimum(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the X axis minimum.double fltk_positioner_xmaximum(PositionerPtr pos) extern(C) nothrow @nogcGets the X axis maximum.void fltk_positioner_set_xmaximum(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the X axis maximum.void fltk_positioner_xbounds(PositionerPtr pos, double min, double max) extern(C) nothrow @nogcSets the X axis bounds.double fltk_positioner_yminimum(PositionerPtr pos) extern(C) nothrow @nogcGets the Y axis minimum.void fltk_positioner_set_yminimum(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the Y axis minimum.double fltk_positioner_ymaximum(PositionerPtr pos) extern(C) nothrow @nogcGets the Y axis maximum.void fltk_positioner_set_ymaximum(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the Y axis maximum.void fltk_positioner_ybounds(PositionerPtr pos, double min, double max) extern(C) nothrow @nogcSets the Y axis bounds.void fltk_positioner_set_xstep(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the X axis step value.void fltk_positioner_set_ystep(PositionerPtr pos, double val) extern(C) nothrow @nogcSets the Y axis step value.ChartPtr fltk_chart_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new chart widget.void fltk_chart_add(ChartPtr chart, double val, const(char) * str, uint col) extern(C) nothrow @nogcAdds a data value to the chart.void fltk_chart_insert(ChartPtr chart, int ind, double val, const(char) * str, uint col) extern(C) nothrow @nogcInserts a data value at a specific index (1-based).void fltk_chart_replace(ChartPtr chart, int ind, double val, const(char) * str, uint col) extern(C) nothrow @nogcReplaces a data value at a specific index (1-based).void fltk_chart_bounds(ChartPtr chart, double * a, double * b) extern(C) nothrow @nogcGets the chart bounds.void fltk_chart_set_bounds(ChartPtr chart, double a, double b) extern(C) nothrow @nogcSets the chart bounds.int fltk_chart_size(ChartPtr chart) extern(C) nothrow @nogcGets the number of data values in the chart.int fltk_chart_maxsize(ChartPtr chart) extern(C) nothrow @nogcGets the maximum number of data values for the chart.void fltk_chart_set_maxsize(ChartPtr chart, int m) extern(C) nothrow @nogcSets the maximum number of data values for the chart.void fltk_chart_set_textfont(ChartPtr chart, int s) extern(C) nothrow @nogcSets the chart's text font.void fltk_chart_set_textsize(ChartPtr chart, int s) extern(C) nothrow @nogcSets the chart's text size.void fltk_chart_set_textcolor(ChartPtr chart, uint n) extern(C) nothrow @nogcSets the chart's text color.ubyte fltk_chart_autosize(ChartPtr chart) extern(C) nothrow @nogcGets whether the chart auto-sizes its bounds.void fltk_chart_set_autosize(ChartPtr chart, ubyte n) extern(C) nothrow @nogcSets whether the chart auto-sizes its bounds.ClockPtr fltk_clock_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new clock widget.ClockPtr fltk_clock_new_with_type(ubyte type, int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new clock widget with specified type.ulong fltk_clock_value(ClockPtr clock) extern(C) nothrow @nogcGets the clock's value as Unix time.void fltk_clock_set_value(ClockPtr clock, ulong v) extern(C) nothrow @nogcSets the clock's value as Unix time.void fltk_clock_set_value_hms(ClockPtr clock, int h, int m, int s) extern(C) nothrow @nogcSets the clock's value using hour, minute, second.int fltk_help_dialog_visible(HelpDialogPtr dialog) extern(C) nothrow @nogcReturns whether the dialog is visible.void fltk_help_dialog_load(HelpDialogPtr dialog, const(char) * filename) extern(C) nothrow @nogcLoads a file into the help dialog.void fltk_help_dialog_set_value(HelpDialogPtr dialog, const(char) * content) extern(C) nothrow @nogcSets the HTML content directly.const(char) * fltk_help_dialog_value(HelpDialogPtr dialog) extern(C) nothrow @nogcGets the current HTML content.void fltk_help_dialog_set_textsize(HelpDialogPtr dialog, int size) extern(C) nothrow @nogcSets the text size.void fltk_help_dialog_topline_name(HelpDialogPtr dialog, const(char) * name) extern(C) nothrow @nogcScrolls to a named target in the document.void fltk_help_dialog_topline(HelpDialogPtr dialog, int line) extern(C) nothrow @nogcScrolls to a specific line number.void fltk_help_dialog_position(HelpDialogPtr dialog, int x, int y) extern(C) nothrow @nogcSets the position of the dialog window.void fltk_help_dialog_resize(HelpDialogPtr dialog, int x, int y, int w, int h) extern(C) nothrow @nogcResizes the dialog window.ColorChooserPtr fltk_color_chooser_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new color chooser widget.void fltk_color_chooser_delete(ColorChooserPtr cc) extern(C) nothrow @nogcDestroys a color chooser widget.WidgetPtr fltk_color_chooser_as_widget(ColorChooserPtr cc) extern(C) nothrow @nogcCasts a color chooser to widget.GroupPtr fltk_color_chooser_as_group(ColorChooserPtr cc) extern(C) nothrow @nogcCasts a color chooser to group.int fltk_color_chooser_mode(ColorChooserPtr cc) extern(C) nothrow @nogcGets the color chooser mode (0=rgb, 1=byte, 2=hex, 3=hsv).void fltk_color_chooser_set_mode(ColorChooserPtr cc, int mode) extern(C) nothrow @nogcSets the color chooser mode.double fltk_color_chooser_hue(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current hue value (0-6).double fltk_color_chooser_saturation(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current saturation value (0-1).double fltk_color_chooser_value(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current value/brightness (0-1).double fltk_color_chooser_r(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current red component (0-1).double fltk_color_chooser_g(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current green component (0-1).double fltk_color_chooser_b(ColorChooserPtr cc) extern(C) nothrow @nogcGets the current blue component (0-1).int fltk_color_chooser_hsv(ColorChooserPtr cc, double h, double s, double v) extern(C) nothrow @nogcSets the color using HSV values. Returns non-zero if color changed.int fltk_color_chooser_rgb(ColorChooserPtr cc, double r, double g, double b) extern(C) nothrow @nogcSets 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) extern(C) nothrow @nogcConverts HSV to RGB.void fltk_color_chooser_rgb2hsv(double r, double g, double b, double * h, double * s, double * v) extern(C) nothrow @nogcConverts RGB to HSV.SysMenuBarPtr fltk_sys_menu_bar_new(int x, int y, int w, int h, const(char) * label) extern(C) nothrow @nogcCreates a new system menu bar widget.void fltk_sys_menu_bar_delete(SysMenuBarPtr menu) extern(C) nothrow @nogcDestroys a system menu bar widget.WidgetPtr fltk_sys_menu_bar_as_widget(SysMenuBarPtr menu) extern(C) nothrow @nogcCasts a system menu bar to widget.int fltk_sys_menu_bar_add(SysMenuBarPtr menu, const(char) * path, int shortcut,
ShimCallback callback, void * userdata, int flags) extern(C) nothrow @nogcAdds 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) extern(C) nothrow @nogcInserts a menu item at index. Returns index of new item.void fltk_sys_menu_bar_remove(SysMenuBarPtr menu, int index) extern(C) nothrow @nogcRemoves a menu item.void fltk_sys_menu_bar_replace(SysMenuBarPtr menu, int index, const(char) * name) extern(C) nothrow @nogcReplaces the label of a menu item.int fltk_sys_menu_bar_clear_submenu(SysMenuBarPtr menu, int index) extern(C) nothrow @nogcClears a submenu. Returns 0 on success.void fltk_sys_menu_bar_update(SysMenuBarPtr menu) extern(C) nothrow @nogcUpdates the system menu bar to reflect changes.int fltk_sys_menu_bar_mode(SysMenuBarPtr menu, int index) extern(C) nothrow @nogcGets the flags of a menu item.void fltk_sys_menu_bar_set_mode(SysMenuBarPtr menu, int index, int flags) extern(C) nothrow @nogcSets the flags of a menu item.void fltk_sys_menu_bar_shortcut(SysMenuBarPtr menu, int index, int shortcut) extern(C) nothrow @nogcSets the shortcut of a menu item.FileIconPtr fltk_file_icon_new(const(char) * pattern, int type) extern(C) nothrow @nogcCreates a new file icon.void fltk_file_icon_clear(FileIconPtr icon) extern(C) nothrow @nogcClears all icon data from the icon.short * fltk_file_icon_add(FileIconPtr icon, short d) extern(C) nothrow @nogcAdds a data value to the icon.short * fltk_file_icon_add_color(FileIconPtr icon, uint c) extern(C) nothrow @nogcAdds a color value to the icon.short * fltk_file_icon_add_vertex(FileIconPtr icon, int x, int y) extern(C) nothrow @nogcAdds a vertex value to the icon (integer coordinates 0-10000).short * fltk_file_icon_add_vertex_float(FileIconPtr icon, float x, float y) extern(C) nothrow @nogcAdds 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) extern(C) nothrow @nogcDraws the icon.void fltk_file_icon_label(FileIconPtr icon, WidgetPtr widget) extern(C) nothrow @nogcAssociates the icon with a widget as its label.void fltk_file_icon_load(FileIconPtr icon, const(char) * filename) extern(C) nothrow @nogcLoads icon data from a file.int fltk_file_icon_load_fti(FileIconPtr icon, const(char) * fti) extern(C) nothrow @nogcLoads icon data from an FTI file.int fltk_file_icon_load_image(FileIconPtr icon, const(char) * filename) extern(C) nothrow @nogcLoads icon data from an image file.FileIconPtr fltk_file_icon_next(FileIconPtr icon) extern(C) nothrow @nogcReturns the next file icon in the linked list.const(char) * fltk_file_icon_pattern(FileIconPtr icon) extern(C) nothrow @nogcReturns the filename matching pattern.int fltk_file_icon_size(FileIconPtr icon) extern(C) nothrow @nogcReturns the number of data words in the icon.int fltk_file_icon_type(FileIconPtr icon) extern(C) nothrow @nogcReturns the file type associated with the icon.short * fltk_file_icon_value(FileIconPtr icon) extern(C) nothrow @nogcReturns the data array for the icon.FileIconPtr fltk_file_icon_find(const(char) * filename, int filetype) extern(C) nothrow @nogcFinds an icon for a given filename.FileIconPtr fltk_file_icon_first() extern(C) nothrow @nogcReturns the first icon in the linked list.void fltk_multi_label_set_labela_text(MultiLabelPtr ml, const(char) * text) extern(C) nothrow @nogcSets the first label element as text.void fltk_multi_label_set_labelb_text(MultiLabelPtr ml, const(char) * text) extern(C) nothrow @nogcSets the second label element as text.void fltk_multi_label_set_labela_image(MultiLabelPtr ml, ImagePtr image) extern(C) nothrow @nogcSets the first label element as an image.void fltk_multi_label_set_labelb_image(MultiLabelPtr ml, ImagePtr image) extern(C) nothrow @nogcSets the second label element as an image.int fltk_multi_label_typea(MultiLabelPtr ml) extern(C) nothrow @nogcGets the type of the first label element.int fltk_multi_label_typeb(MultiLabelPtr ml) extern(C) nothrow @nogcGets the type of the second label element.void fltk_multi_label_label_widget(MultiLabelPtr ml, WidgetPtr widget) extern(C) nothrow @nogcAssociates the multi-label with a widget.void fltk_multi_label_label_menu_item(MultiLabelPtr ml, MenuBarPtr menu, int index) extern(C) nothrow @nogcAssociates the multi-label with a menu item.PreferencesPtr fltk_preferences_new(int root, const(char) * vendor, const(char) * application) extern(C) nothrow @nogcCreates a new preferences object with root location.PreferencesPtr fltk_preferences_new_with_path(const(char) * path, const(char) * vendor, const(char) * application) extern(C) nothrow @nogcCreates a new preferences object with custom path.PreferencesPtr fltk_preferences_new_group(PreferencesPtr parent, const(char) * group) extern(C) nothrow @nogcCreates a child preferences group.void fltk_preferences_delete(PreferencesPtr prefs) extern(C) nothrow @nogcDestroys a preferences object.int fltk_preferences_groups(PreferencesPtr prefs) extern(C) nothrow @nogcReturns the number of groups in this preferences.const(char) * fltk_preferences_group(PreferencesPtr prefs, int index) extern(C) nothrow @nogcReturns the name of a group by index.int fltk_preferences_group_exists(PreferencesPtr prefs, const(char) * key) extern(C) nothrow @nogcChecks if a group exists.int fltk_preferences_delete_group(PreferencesPtr prefs, const(char) * group) extern(C) nothrow @nogcDeletes a group.int fltk_preferences_delete_all_groups(PreferencesPtr prefs) extern(C) nothrow @nogcDeletes all groups.int fltk_preferences_entries(PreferencesPtr prefs) extern(C) nothrow @nogcReturns the number of entries in this preferences.const(char) * fltk_preferences_entry(PreferencesPtr prefs, int index) extern(C) nothrow @nogcReturns the name of an entry by index.int fltk_preferences_entry_exists(PreferencesPtr prefs, const(char) * key) extern(C) nothrow @nogcChecks if an entry exists.int fltk_preferences_delete_entry(PreferencesPtr prefs, const(char) * entry) extern(C) nothrow @nogcDeletes an entry.int fltk_preferences_delete_all_entries(PreferencesPtr prefs) extern(C) nothrow @nogcDeletes all entries.int fltk_preferences_clear(PreferencesPtr prefs) extern(C) nothrow @nogcClears all entries and groups.int fltk_preferences_set_int(PreferencesPtr prefs, const(char) * entry, int value) extern(C) nothrow @nogcSets an integer value.int fltk_preferences_set_float(PreferencesPtr prefs, const(char) * entry, float value) extern(C) nothrow @nogcSets a float value.int fltk_preferences_set_double(PreferencesPtr prefs, const(char) * entry, double value) extern(C) nothrow @nogcSets a double value.int fltk_preferences_set_string(PreferencesPtr prefs, const(char) * entry, const(char) * value) extern(C) nothrow @nogcSets a string value.int fltk_preferences_get_int(PreferencesPtr prefs, const(char) * entry, int * value, int defaultValue) extern(C) nothrow @nogcGets an integer value.int fltk_preferences_get_float(PreferencesPtr prefs, const(char) * entry, float * value, float defaultValue) extern(C) nothrow @nogcGets a float value.int fltk_preferences_get_double(PreferencesPtr prefs, const(char) * entry, double * value, double defaultValue) extern(C) nothrow @nogcGets a double value.int fltk_preferences_get_string(PreferencesPtr prefs, const(char) * entry, char * * value, const(char) * defaultValue) extern(C) nothrow @nogcGets a string value (caller must free the returned string).int fltk_preferences_size(PreferencesPtr prefs, const(char) * entry) extern(C) nothrow @nogcGets the size of an entry's data.int fltk_preferences_get_userdata_path(PreferencesPtr prefs, char * path, int pathlen) extern(C) nothrow @nogcGets the user data path for this application.float fltk_tooltip_hoverdelay() extern(C) nothrow @nogcGets the tooltip hover delay (delay between tooltips).void fltk_tooltip_set_hoverdelay(float f) extern(C) nothrow @nogcSets the tooltip hover delay (delay between tooltips).void fltk_tooltip_enable(int b) extern(C) nothrow @nogcEnables or disables tooltips on all widgets.void fltk_tooltip_set_font(int font) extern(C) nothrow @nogcSets the typeface for the tooltip text.void fltk_tooltip_set_color(uint c) extern(C) nothrow @nogcSets the background color for tooltips.int fltk_tooltip_margin_width() extern(C) nothrow @nogcGets the margin width (extra space left/right of text).void fltk_tooltip_set_margin_width(int v) extern(C) nothrow @nogcSets the margin width (extra space left/right of text).int fltk_tooltip_margin_height() extern(C) nothrow @nogcGets the margin height (extra space above/below text).void fltk_tooltip_set_margin_height(int v) extern(C) nothrow @nogcSets the margin height (extra space above/below text).int fltk_tooltip_wrap_width() extern(C) nothrow @nogcGets the maximum width for tooltip text before word wrap.void fltk_tooltip_set_wrap_width(int v) extern(C) nothrow @nogcSets the maximum width for tooltip text before word wrap.void fltk_tooltip_set_current(WidgetPtr w) extern(C) nothrow @nogcSets the current tooltip target widget.void fltk_tooltip_enter_area(WidgetPtr w, int x, int y, int width, int height, const(char) * tip) extern(C) nothrow @nogcManually enter a tooltip area for a widget.PluginPtr fltk_plugin_new(const(char) * klass, const(char) * name) extern(C) nothrow @nogcCreates a new plugin with the given class and name.PluginManagerPtr fltk_plugin_manager_new(const(char) * klass) extern(C) nothrow @nogcCreates a new plugin manager for the given class.void fltk_plugin_manager_delete(PluginManagerPtr mgr) extern(C) nothrow @nogcDeletes a plugin manager.int fltk_plugin_manager_plugins(PluginManagerPtr mgr) extern(C) nothrow @nogcGets the number of plugins in the managed class.PluginPtr fltk_plugin_manager_plugin_by_index(PluginManagerPtr mgr, int index) extern(C) nothrow @nogcGets a plugin by index.PluginPtr fltk_plugin_manager_plugin_by_name(PluginManagerPtr mgr, const(char) * name) extern(C) nothrow @nogcGets a plugin by name.void * fltk_plugin_manager_add_plugin(PluginManagerPtr mgr, const(char) * name, PluginPtr plugin) extern(C) nothrow @nogcAdds a plugin to the manager. Returns plugin ID.void fltk_plugin_manager_remove_plugin(void * id) extern(C) nothrow @nogcRemoves a plugin by its ID.int fltk_plugin_manager_load(const(char) * filename) extern(C) nothrow @nogcLoads a plugin from a dynamic library file. Returns 0 on success.int fltk_plugin_manager_load_all(const(char) * filepath, const(char) * pattern) extern(C) nothrow @nogcLoads all plugins from a directory matching a pattern. Returns count loaded.CopySurfacePtr fltk_copy_surface_new(int w, int h) extern(C) nothrow @nogcCreates a new copy surface for copying graphics to the clipboard.void fltk_copy_surface_delete(CopySurfacePtr surface) extern(C) nothrow @nogcDeletes a copy surface and loads the clipboard with the graphical data.void fltk_copy_surface_set_current(CopySurfacePtr surface) extern(C) nothrow @nogcMakes this surface the current drawing target.void fltk_copy_surface_draw(CopySurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y) extern(C) nothrow @nogcDraws a widget to the copy surface.void fltk_copy_surface_draw_decorated_window(CopySurfacePtr surface, WindowPtr win, int delta_x, int delta_y) extern(C) nothrow @nogcDraws a decorated window to the copy surface.int fltk_copy_surface_w(CopySurfacePtr surface) extern(C) nothrow @nogcGets the width of the copy surface.int fltk_copy_surface_h(CopySurfacePtr surface) extern(C) nothrow @nogcGets the height of the copy surface.ImageSurfacePtr fltk_image_surface_new(int w, int h, int highres) extern(C) nothrow @nogcCreates a new image surface for drawing to an in-memory image.void fltk_image_surface_delete(ImageSurfacePtr surface) extern(C) nothrow @nogcDeletes an image surface.void fltk_image_surface_set_current(ImageSurfacePtr surface) extern(C) nothrow @nogcMakes this surface the current drawing target.void fltk_image_surface_draw(ImageSurfacePtr surface, WidgetPtr widget, int delta_x, int delta_y) extern(C) nothrow @nogcDraws a widget to the image surface.void fltk_image_surface_draw_decorated_window(ImageSurfacePtr surface, WindowPtr win, int delta_x, int delta_y) extern(C) nothrow @nogcDraws a decorated window to the image surface.ImagePtr fltk_image_surface_image(ImageSurfacePtr surface) extern(C) nothrow @nogcGets the resulting RGB image from the surface. Caller owns the returned image.ImagePtr fltk_image_surface_highres_image(ImageSurfacePtr surface) extern(C) nothrow @nogcGets a high-resolution shared image from the surface. Caller owns the returned image.PostScriptFileDevicePtr fltk_postscript_file_device_new() extern(C) nothrow @nogcCreates a new Fl_PostScript_File_Device for drawing to PostScript files.void fltk_postscript_file_device_delete(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcDeletes a PostScript file device.int fltk_postscript_file_device_start_job_file(PostScriptFileDevicePtr dev, void * output, int pagecount, int format, int layout) extern(C) nothrow @nogcStarts a print job to a FILE stream (non-interactive). Returns 0 on success.int fltk_postscript_file_device_start_page(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcStarts a new page. Returns 0 on success.int fltk_postscript_file_device_end_page(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcEnds the current page. Returns 0 on success.void fltk_postscript_file_device_end_job(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcEnds the print job.int fltk_postscript_file_device_printable_rect(PostScriptFileDevicePtr dev, int * w, int * h) extern(C) nothrow @nogcGets the printable rectangle dimensions. Returns 0 on success.void fltk_postscript_file_device_margins(PostScriptFileDevicePtr dev, int * left, int * top, int * right, int * bottom) extern(C) nothrow @nogcGets the page margins.void fltk_postscript_file_device_get_origin(PostScriptFileDevicePtr dev, int * x, int * y) extern(C) nothrow @nogcGets the current origin.void fltk_postscript_file_device_set_origin(PostScriptFileDevicePtr dev, int x, int y) extern(C) nothrow @nogcSets the origin for drawing operations.void fltk_postscript_file_device_scale(PostScriptFileDevicePtr dev, float scale_x, float scale_y) extern(C) nothrow @nogcSets the scale for drawing operations.void fltk_postscript_file_device_rotate(PostScriptFileDevicePtr dev, float angle) extern(C) nothrow @nogcRotates drawing operations.void fltk_postscript_file_device_translate(PostScriptFileDevicePtr dev, int x, int y) extern(C) nothrow @nogcTranslates the origin.void fltk_postscript_file_device_untranslate(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcUndoes the last translation.void fltk_postscript_file_device_print_widget(PostScriptFileDevicePtr dev, WidgetPtr widget, int delta_x, int delta_y) extern(C) nothrow @nogcPrints a widget to the PostScript output.void fltk_postscript_file_device_print_window(PostScriptFileDevicePtr dev, WindowPtr win, int x_offset, int y_offset) extern(C) nothrow @nogcPrints a window with decorations to the PostScript output.void fltk_postscript_file_device_set_current(PostScriptFileDevicePtr dev) extern(C) nothrow @nogcMakes this device the current drawing target.void fltk_gl_rect(int x, int y, int w, int h) extern(C) nothrow @nogcDraws an outlined rectangle in OpenGL.void fltk_gl_rectf(int x, int y, int w, int h) extern(C) nothrow @nogcDraws a filled rectangle in OpenGL.void fltk_gl_font(int fontid, int size) extern(C) nothrow @nogcSets the font for OpenGL text drawing.double fltk_gl_width(const(char) * text) extern(C) nothrow @nogcGets the width of a string in the current OpenGL font.double fltk_gl_width_n(const(char) * text, int n) extern(C) nothrow @nogcGets the width of n characters in the current OpenGL font.void fltk_gl_draw(const(char) * text) extern(C) nothrow @nogcDraws text at the current raster position in OpenGL.void fltk_gl_draw_n(const(char) * text, int n) extern(C) nothrow @nogcDraws n characters at the current raster position in OpenGL.void fltk_gl_draw_at(const(char) * text, int x, int y) extern(C) nothrow @nogcDraws text at integer coordinates in OpenGL.void fltk_gl_draw_at_f(const(char) * text, float x, float y) extern(C) nothrow @nogcDraws 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_) extern(C) nothrow @nogcDraws text within a bounding box with alignment in OpenGL.void fltk_gl_measure(const(char) * text, int * w, int * h) extern(C) nothrow @nogcMeasures 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) extern(C) nothrow @nogcDraws an image in OpenGL.const(char) * fltk_filename_name(const(char) * filename) extern(C) nothrow @nogcGets the filename portion of a path.const(char) * fltk_filename_ext(const(char) * buf) extern(C) nothrow @nogcGets the extension portion of a filename.char * fltk_filename_setext(char * to, int tolen, const(char) * ext) extern(C) nothrow @nogcSets or replaces the extension of a filename.int fltk_filename_expand(char * to, int tolen, const(char) * from) extern(C) nothrow @nogcExpands environment variables and ~ in a filename.int fltk_filename_absolute(char * to, int tolen, const(char) * from) extern(C) nothrow @nogcConverts a relative path to absolute.int fltk_filename_relative(char * to, int tolen, const(char) * from) extern(C) nothrow @nogcConverts an absolute path to relative.int fltk_filename_match(const(char) * name, const(char) * pattern) extern(C) nothrow @nogcMatches a filename against a pattern.int fltk_filename_isdir(const(char) * name) extern(C) nothrow @nogcChecks if a path is a directory.int fltk_open_uri(const(char) * uri, char * msg, int msglen) extern(C) nothrow @nogcOpens 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.