| Age | Commit message (Collapse) | Author |
|
Also, the application-level code to add widgets to a GL3 window becomes
platform-independent.
|
|
|
|
Under non-macOS platforms, the key is to call glUseProgram(0); after having used OpenGL 3
which allows to then use OpenGL 1 and draw FLTK widgets over the OpenGL3 scene.
Under macOS, this is impossible because macOS GL3 contexts are not compatible
with GL1. The solution implemented here is to create an additional Fl_Gl_Window
placed above and sized as the GL3-based window, to give it a non opaque,
GL1-based context, and to put the FLTK widgets in that additional window.
|
|
|
|
|
|
This new feature demonstrates that Fl_Flex can be used (almost) as
a drop-in replacement of Fl_Pack.
Add missing file to examples/.gitignore.
|
|
This demo program uses an Fl_Flex widget with one row of buttons.
|
|
|
|
|
|
CMake/resources.cmake: add NAMES option to find_library
examples/CMakeLists.txt: fix linking libGLEW/libglew32
|
|
|
|
... as discussed in fltk.coredev: "FLTK 1.4.0 release schedule"
https://groups.google.com/g/fltkcoredev/c/PDbHTRpXVh0/m/JqboexZ_AwAJ
|
|
Sorry for the noise, this statement was included in my proposed patch.
|
|
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.
|
|
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.
|
|
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.
|
|
The clipboard demo is more a test program than an example and very
useful even if the examples are not built.
Also update dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
Use window->hide() in quit callback instead.
|
|
Add includes of system headers in the implementation files
where necessary.
|
|
This example demonstrates how to build an entire program using fluid
and how to add static and virtual class methods as callbacks.
|
|
|
|
There are no functional changes to be expected, mostly formatting
and comments.
|
|
Fix more issues caused by moving fltk-versions from examples to test
and adding examples to the CMake build process (gitlab-ci)
|
|
- 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
|
|
The mentioned link to fltk.general was incorrect; fixed and added
thread title for further reference.
Fixed typo and adjusted comments.
|
|
[gcc] warning: invalid suffix on literal; C++11 requires a space
between literal and string macro [-Wliteral-suffix]
|
|
|
|
|
|
|
|
|
|
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.
|
|
- 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.
|
|
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.
|
|
Move ignored files in /examples/ and /test/ to their own folders,
i.e. to examples/.gitignore and test/.gitignore, resp.
|
|
|
|
|
|
|
|
|
|
|
|
'.SILENT:' statement had been commented out in previous commit.
|