summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2022-03-09CMake: Fix OpenGL3 examples libglew link order (#226)Albrecht Schlosser
2022-03-07CMake/MinGW/MSYS2: fix building examples with libglew32 (#226)Albrecht Schlosser
CMake/resources.cmake: add NAMES option to find_library examples/CMakeLists.txt: fix linking libGLEW/libglew32
2022-03-04Add the Wayland platform to FLTK 1.4ManoloFLTK
2022-01-23Remove experimental platforms Android, Pico, SDL (PR #376)Albrecht Schlosser
... as discussed in fltk.coredev: "FLTK 1.4.0 release schedule" https://groups.google.com/g/fltkcoredev/c/PDbHTRpXVh0/m/JqboexZ_AwAJ
2022-01-17Remove unnecessary CMake test statement (#358)Albrecht Schlosser
Sorry for the noise, this statement was included in my proposed patch.
2022-01-16Issue #358 cont'd: Fl_Cairo_Window coord system docsGreg Ercolano
Elaborated on Fl_Cairo_Window's use of FLTK style coordinates, and how this differs from cairo's default native normalized coordinate system, and shows how to switch from one to the other. Also, small comment fix to the cairo example regarding the "X" color.
2022-01-16Adding Albrecht's CMakeLists.txt patchGreg Ercolano
Albrecht submitted this in issue 358. Tested the variations: cmake .. -- examples and cairo off cmake -D FLTK_BUILD_EXAMPLES=on -- examples on, cairo off cmake -D FLTK_BUILD_EXAMPLES=on -D OPTION_CAIRO=on .. -- examples on, cairo on When examples are 'on', they build into the bin/examples directory.
2022-01-16For issue #358 - adds examples/cairo-draw-x.cxxGreg Ercolano
Since this is the first cairo example in the examples directory, it necessarily involved changes to the Makefile and to fltk-config to properly handle the absence/existance of the cairo libs. TBD: Add docs to the cario widget describing coordinate system and how it differs from the default cairo normalized coordinate system.
2021-11-18Reformat and move clipboard demo from examples to test folderAlbrecht Schlosser
The clipboard demo is more a test program than an example and very useful even if the examples are not built. Also update dependencies.
2021-11-16Fix remaining VS compiler warnings in example programsAlbrecht Schlosser
2021-11-08Add missing files (executables) to .gitignore filesAlbrecht Schlosser
2021-09-01Remove stray tabGreg Ercolano
2021-08-31Fix MSVC 'fileno' warning in example program (#109)Albrecht Schlosser
2021-08-30Fix MSVC compiler warnings (PR #267)fire-eggs
2021-08-30Fix VS2017 'pclose' error, and DIR formattingGreg Ercolano
2021-08-30Fix two compiler warnings [-Wunused-variable]Albrecht Schlosser
2021-08-27Remove compiler warnings '-Wextra-semi' (see also PR #266)Albrecht Schlosser
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
2021-06-26Fix "failure to call pclose" (#240)fire-eggs
2021-03-21Hide window in quit callback in wizard-simple exampleAlbrecht Schlosser
2021-03-21Fix menu-with-images example w/o using exit()Albrecht Schlosser
Use window->hide() in quit callback instead.
2021-03-21Remove unnecessary system includes from public headersAlbrecht Schlosser
Add includes of system headers in the implementation files where necessary.
2021-03-19Add fluid callback demo program to examples folderAlbrecht Schlosser
This example demonstrates how to build an entire program using fluid and how to add static and virtual class methods as callbacks.
2021-03-18Added chart-simple exampleGreg Ercolano
2021-02-15Update CMake and make files, minor edits onlyAlbrecht Schlosser
There are no functional changes to be expected, mostly formatting and comments.
2020-08-21Fix examples build (configure/make)Albrecht Schlosser
Fix more issues caused by moving fltk-versions from examples to test and adding examples to the CMake build process (gitlab-ci)
2020-08-21CMake: add examples folder to build (optional)Albrecht Schlosser
- replace misnamed option 'OPTION_BUILD_EXAMPLES' with 'FLTK_BUILD_TEST' - add option 'FLTK_BUILD_EXAMPLES' to build apps in examples folder - move examples/fltk-versions.cxx to test/fltk-versions.cxx - [Travis-CI] enable option 'FLTK_BUILD_EXAMPLES' for automatic builds
2020-08-20Fix link and comments in example programAlbrecht Schlosser
The mentioned link to fltk.general was incorrect; fixed and added thread title for further reference. Fixed typo and adjusted comments.
2020-08-15Fix compiler warning in example [-Wliteral-suffix]Albrecht Schlosser
[gcc] warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
2020-08-13Fix simple SVG example (howto-simple-svg)Albrecht Schlosser
2020-08-01Convert example from strdup -> std::stringGreg Ercolano
2020-08-01Remove unneeded strdup from example, fold tabsGreg Ercolano
2020-08-01Implement + deploy fl_strdup()Greg Ercolano
2020-07-13A few extra comments for table-spreadsheet.Greg Ercolano
Also small but unnecessary code change to reset row_edit/col to zero after editing for example clarity. Unnecessary b/c those vars are ignored anyway when input visibility turned off, so change is more cosmetic codewise.
2020-07-06Remove $Id$ tags, update URL's, and moreAlbrecht Schlosser
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
2020-06-29Move class Fl_SVG_File_Surface from libfltk to libfltk_images.ManoloFLTK
File examples/SVG_File_Surface.cxx is no longer useful because it was a very partial implementation of what is now class Fl_SVG_File_Surface.
2020-04-20Reorganize .gitignore file(s)Albrecht Schlosser
Move ignored files in /examples/ and /test/ to their own folders, i.e. to examples/.gitignore and test/.gitignore, resp.
2020-01-18Use visible size information when copying macOS image from clipboard.ManoloFLTK
2019-08-22Added simple "draw an 'X'" example.Greg Ercolano
2019-08-20Added table-with-right-column-stretch-fit.cxx exampleGreg Ercolano
2019-08-14Merge branch 'master' of github.com:fltk/fltkGreg Ercolano
2019-08-14Added new example code: howto-remap-numpad-keyboard-keys.cxxGreg Ercolano
2019-07-28Restore "silent" compilation of examplesAlbrecht Schlosser
'.SILENT:' statement had been commented out in previous commit.
2019-07-26Added new browser-simple.cxx exampleGreg Ercolano
2019-04-16Fix time drawing color (was not being set)Greg Ercolano
The items showing the current time looked ugly on linux when selected, since they were drawing in the leftover blue color used for drawing the R-G-B box pattern.
2019-04-04Update procedure for OpenGL3 support.ManoloFLTK
2018-12-10Update examples: minor changes, rename, update .gitignoreAlbrecht Schlosser
.gitignore, Makefile: add missing files, sort example filenames. Makefile.FLTK: update and extend FLTKCONFIG definition examples. Rename README.examples to README.txt (easier for Windows users). README.txt: minor edits, fix link, remove trailing whitespace.
2018-12-04Simpler implementation of class SVG_Graphics_Driver is enough.ManoloFLTK
2018-11-29Remove unnecessary platform-specific #if / #endif clauses.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13139 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-12MacOS ≥ 10.10: Fl_Window::fullscreen() and fullscreen_off() no longer call ↵Manolo Gouy
Fl_Window::hide() + Fl_Window::show() The new procedure essentially resizes the window, as done on the X11+EWMH and Windows platforms. This improves in particular the possibility to turn an Fl_Gl_Window fullscreen on and off. MacOS ≥ 10.10 is required because the procedure isn't stable (random crashes during fast switches) with 10.9. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13045 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-09-03Less code is enough to start the OpenGL 3 window fullscreen.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13040 ea41ed52-d2ee-0310-a9c1-e6b18d33e121