Cargo Features
FLTK has no features set by default.
[dependencies]
fltk = { version = "1.4.36", features = ["fltk-bundled", "enable-glwindow", "no-pango", "fltk-shared", "use-ninja", "system-fltk", "system-libpng", "system-libjpeg", "system-zlib", "no-gdiplus", "no-images", "legacy-opengl", "single-threaded", "use-wayland", "static-msvcrt", "cairoext", "fltk-config", "pkg-config", "gtk-decor", "raw-window-handle", "rwh05", "rwh06"] }
- fltk-bundled
-
Support for bundled versions of cfltk and fltk (requires curl and tar)
Enables fltk-bundled of fltk-sys
- enable-glwindow
-
Support for systems without OpenGL
Enables enable-glwindow of fltk-sys
Affects
visual::set_gl_visual
,routines::gl_start
,routines::gl_finish
,window::GlutWindow
,window::GlWindow
,window::experimental.GlWidgetWindow
,visual::set_color_with_alpha
… - no-pango
-
You can use this if you don't need rtl or cjk unicode support
-
Builds a shared lib of fltk
Enables fltk-shared of fltk-sys
- use-ninja
-
If you have ninja build installed or it's available, it builds faster than make or VS
- system-fltk
-
If you would like to use the installed fltk library, should be FLTK 1.4
Enables system-fltk of fltk-sys
- system-libpng
-
Uses the system libpng
Enables system-libpng of fltk-sys
- system-libjpeg
-
Uses the system libjpeg
Enables system-libjpeg of fltk-sys
- system-zlib
-
Uses the system zlib
Enables system-zlib of fltk-sys
- no-gdiplus
-
Disable gdiplus drawing
Enables no-gdiplus of fltk-sys
- no-images
-
(Experimental) You can use this feature if your app doesn't use images to reduce binary size
- legacy-opengl
-
(Experimental) Support of Lagacy OpenGL
Enables legacy-opengl of fltk-sys
- single-threaded
-
(Experimental) Disable multithreading support when linking X11 libs non-mt x11 libs.
Enables single-threaded of fltk-sys
Affects
widget::WidgetTrackerWrapper
… - use-wayland
-
Use FLTK's wayland backend on linux systems.
Enables use-wayland of fltk-sys
Affects
window::RawHandle
… - static-msvcrt
-
Ensure MSVCRT is linked statically even if cargo does not pass the flag to the build script.
Enables static-msvcrt of fltk-sys
- cairoext
-
Sets FLTK's FLTK_OPTION_CAIRO_EXT which enables user code to get the cairo context for drawing
Affects
visual::set_color_with_alpha
… - fltk-config
-
Allows the use of an installed instance of FLTK via fltk-config. This requires FLTK 1.4
Enables fltk-config of fltk-sys
- pkg-config
-
Allows the use of an installed instance of cfltk via pkg-config.
Enables pkg-config of fltk-sys
- gtk-decor
-
Enables libdecor gtk plugin. Links Gtk3 libs
Features from optional dependencies
- raw-window-handle implicit feature
-
Enables raw-window-handle ^0.4
Enables getting a raw window handle on supported platforms, fixed at version 0.4 for fltk 1.* compat
- rwh05 implicit feature
-
Enables raw-window-handle ^0.5
Enables getting a raw window handle on supported platforms, fixed at version 0.5 for fltk 1.* compat
- rwh06 implicit feature
-
Enables raw-window-handle
Enables getting a raw window handle on supported platforms, fixed at version 0.6 for fltk 1.* compat