summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
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
2018-08-29Added example of dynamically setting style buffer with text editor.Greg Ercolano
This example greatly simplifies the test/editor example to focus on just the mechanics of dynamic style buffer manipulation via the add_modify_callback(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-08-21Show also how to create the OpenGL3 GLUT window fullscreen.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13024 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27Update Makefile + ignored files.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12986 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27Add proper FLTK header and footer to this new source file.Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-06-27Add examples/SVG_File_Surface.cxx and refer to it in the doc of class ↵Manolo Gouy
Fl_Surface_Device This example code shows how to subclass Fl_Surface_Device and Fl_Graphics_Driver to endow FLTK with a new kind of graphics output. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12980 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-04-29Slightly simplify examples/clipboard.cxx using Fl_Image::scale().Manolo Gouy
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12880 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-21Fixed title barGreg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12782 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-02-09Replace "WIN32" with "_WIN32" or "Windows".Albrecht Schlosser
Replace compiler/preprocessor/platform macro "WIN32" with "_WIN32". Replace "WIN32" in text and documentation with "Windows". Replace "MSWindows" with "Windows". To do: README.Windows.txt (and maybe other documentation as well) needs updates. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-01-31Replace FL/x.H with FL/platform.H - step 2 (STR #3435).Albrecht Schlosser
This second step replaces FL/x.H with FL/platform.H in all source files. Dependencies have been adjusted as well. This commit completes the replacement of FL/x.H with FL/platform.H. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-12-29Remove the requirement for opengl in fltk-config.Greg Ercolano
opengl apps were left out of the targets list on purpose so that only non-opengl apps would build. TODO: Determine a way to detect the presence of fltk opengl libs from within the Makefile using only fltk-config, so as to conditionally build the opengl examples. Do NOT use fltk's own build system (../makeinclude or cmake) to determine this, so the Makefiles will work as user examples. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-31Fix for STR#3421: Fl_SVG_Image crashes if passed an svg file that is a ↵Manolo Gouy
static const char* string git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30Added check if nanosvg is enabled or not.Greg Ercolano
The example posts a warning dialog if it's not (vis a vis test/cube demo) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12535 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30Makefile for new example.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12534 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-30Added a new example to demonstrate using Fl_SVG_Image.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-17Added Fl_Simple_Terminal widget, and mods to test+example programs (STR #3411).Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12506 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-10-13Replace remaining calls to getenv() with fl_getenv().Albrecht Schlosser
... except in driver code that uses Fl_System_Driver::getenv(). Todo: Check if all remaining calls of getenv() in driver code are correct or might use ::getenv() to avoid one calling level for optimization. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-12Add divider above Quit menu item. (needed for demo screenshot)Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Remove leading underscore from labeltype(s) in new demo.Albrecht Schlosser
Since svn r12443 we can use all labeltypes (including FL_IMAGE_LABEL and FL_MULTI_LABEL) w/o leading underscore. We can also use both documented variants to assign an FL_MULTI_LABEL to an Fl_Menu_Item. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12444 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Simplified the example's menu item callback.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12442 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Applied Manolo's recommendation (fltk.coredev), removing unnecessary ↵Greg Ercolano
item->image(*pixmap) call. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-11Added example code to demonstrate Fl_Multi_Label for STR#3400.Greg Ercolano
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-09-08Enhance howto-drag-and-drop example program.Albrecht Schlosser
Refer to discussion if fltk.general, thread "Drag and drop issue" in August September 2017. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-08-12Add tooltips to new draggable-group example program.Albrecht Schlosser
... as suggested by Greg. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121