Cargo Features
[dependencies]
fltk2 = { version = "0.1.1", default-features = false, features = ["fltk-bundled", "enable-glwindow", "no-pango-cairo", "fltk-shared", "use-ninja", "system-fltk", "system-libpng", "system-libjpeg", "system-zlib", "no-gdiplus", "use-images", "legacy-opengl", "single-threaded", "no-wayland", "wayland-only", "static-msvcrt", "cairoext", "fltk-config", "pkg-config", "gtk-decor", "rwh06"] }
- default = use-images
-
The
use-images
feature is set by default wheneverfltk2
is added without
somewhere in the dependency tree.default-features = false - fltk-bundled
-
Support for bundled versions of cfltk and fltk (requires curl and tar)
Enables fltk-bundled of fltk2-sys
- enable-glwindow
-
Support for systems without OpenGL
Enables enable-glwindow of fltk2-sys
Affects
visual::set_gl_visual
,routines::gl_start
,routines::gl_finish
,window::GlContext
,window::GlutWindow
,window::GlWindow
,window::GlWidgetWindow
,visual::set_color_with_alpha
… - no-pango-cairo
-
You can use this if you don't need rtl or cjk unicode support
Enables no-pango-cairo of fltk2-sys
-
Builds a shared lib of fltk
Enables fltk-shared of fltk2-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 fltk2-sys
- system-libpng
-
Uses the system libpng
Enables system-libpng of fltk2-sys
- system-libjpeg
-
Uses the system libjpeg
Enables system-libjpeg of fltk2-sys
- system-zlib
-
Uses the system zlib
Enables system-zlib of fltk2-sys
- no-gdiplus
-
Disable gdiplus drawing
Enables no-gdiplus of fltk2-sys
- use-images default
-
(Experimental) You can use this feature if your app doesn't use images to reduce binary size
Enables use-images of fltk2-sys
Affects
image::SharedImage
,image::JpegImage
,image::PngImage
,image::SvgImage
,image::BmpImage
,image::GifImage
,image::AnimGifImage
,image::PnmImage
,image::IcoImage
,image::IconDirEntry
… - legacy-opengl
-
(Experimental) Support of Lagacy OpenGL
Enables legacy-opengl of fltk2-sys
- single-threaded
-
(Experimental) Disable multithreading support when linking X11 libs non-mt x11 libs.
Enables single-threaded of fltk2-sys
- no-wayland
-
Don't build a hybrid wayland/x11 app on linux
Enables no-wayland of fltk2-sys
Affects
window::RawHandle
… - wayland-only
-
Use FLTK's wayland backend only on linux systems.
Enables wayland-only of fltk2-sys
- static-msvcrt
-
Ensure MSVCRT is linked statically even if cargo does not pass the flag to the build script.
Enables static-msvcrt of fltk2-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 fltk2-sys
- pkg-config
-
Allows the use of an installed instance of cfltk via pkg-config.
Enables pkg-config of fltk2-sys
- gtk-decor
-
Enables libdecor gtk plugin. Links Gtk3 libs
Features from optional dependencies
- 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