summaryrefslogtreecommitdiff
path: root/FL/Fl_Widget.H
AgeCommit message (Collapse)Author
3 dayswi[maxim nikonov
2025-10-31Fix MSVC Level 4 warnings (#1126)MatthiasWM
2025-10-29Add information on Fl_Widget::type_.Matthias Melcher
2025-07-02Remove deprecated methods and functionsAlbrecht Schlosser
In FLTK 1.5 we remove most (but not all) methods and functions that were deprecated in FLTK 1.3 or earlier.
2024-10-17Clarify the documentation of class Fl_Callback_User_DataManoloFLTK
2024-10-15Fix documentation typos and trailing whitespaceAlbrecht Schlosser
2024-08-27Adding horiizonatl and vertical label marginMatthias Melcher
- sizeof(Fl_Widget) not increased - label positions can be adjusted - try it out in test/label app - full support in FLUD
2024-08-14Adding Fl_Widget::label_image_spacing() (#1039)Matthias Melcher
- May need a better method name. - This makes the gap between the image in a label and the label text user settable. - Can be tested using test/label app
2024-02-05Fl_Window_Driver::set_popup_window(), ↵ManoloFLTK
Fl_Screen_Driver::screen_boundaries_known() Fl_Window_Driver::set_popup_window() is to be used to declare a window should be positioned relatively to a previously mapped other window. This allows a platform to process such windows differently from other windows if needed. Menu and tooltip windows are so declared. A call to Fl_Window_Driver::set_popup_window() also allows to distinguish a real menu or tooltip window from a window marked by Fl_Window::set_menu_window() or by Fl_Window::set_tooltip_window() but that's not a real menu or tooltip. New member function bool Fl_Screen_Driver::screen_boundaries_known() returns true by default. A platform where the position of windows inside a screen is hidden (e.g., Wayland) returns false. This allows FLTK to refrain from trying to make sure a computed position is inside a screen.
2023-11-17Enhance documentation of event processingAlbrecht Schlosser
2023-11-05Add Fl_Window::maximize() and Fl_Window::un_maximize()ManoloFLTK
2023-08-17Fix typos in names of Doxygen items (#729)ManoloFLTK
2023-08-15Improved, yet compatible, widget callback system using macros (#729)Matthias Melcher
* adds FL/fl_callback.macros.H * adds FL_FUNCTION_CALLBACK_n(widget, function, [type, data]) * adds FL_METHOD_CALLBACK_n(widget, class, instance, method, [type, data]) * adds FL_INLINE_CALLBACK_n(widget, [type, name, data], callback_body) * adds `examples/callback` * full documentation
2023-04-13Fix compiler warning if user code is compiled with '-Wextra' (2)Albrecht Schlosser
Replace '(void*)' cast with '(fl_intptr_t)' because older gcc (4.8.2) issues a warning with '(void*)'.
2023-04-11Add public accessor methods Fl_Widget::needs_keyboard()Albrecht Schlosser
- add public getter and setter for - document the new methods - document that these methods are not yet used internally - remove unnecessary friend declaration 'NEEDS_KEYBOARD' flag - simplify Fl::focus(Fl_Widget *) using the new methods.
2023-04-11Fix compiler warning if user code is compiled with '-Wextra'Albrecht Schlosser
This commit fixes two similar warnings: "cast between incompatible function types from ‘void (*)(Fl_Widget*)’ to ‘void (*)(Fl_Widget*, void*)’ [-Wcast-function-type]"
2023-03-18Fix and update alignment #346 (#701)Matthias Melcher
* interactive layout alignment rewritten * interface for new alignment rules * new alignment dialog box * user defined layout rules added * layout rules can be stored in projects, settings, and external files * Valgrind verification
2023-02-06Fix "\todo Complete documentation of class Fl_String"ManoloFLTK
Also - fix "\todo Unicode?" in Fl_Text_Display::display_insert() after verification - fix "\todo [Internal] The user_data value must be implemented using \p fl_intptr_t" because that's now in place.
2023-02-05Remove a bunch of \todo items from documentationManoloFLTK
2023-01-08Fix missing parameter documentationMatthias Melcher
2023-01-05Add close buttons for individual tabs in Fl_Tabs (#628)Matthias Melcher
Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features
2022-12-13Fix trailing whitespace and dependenciesAlbrecht Schlosser
2022-12-10Add option to bind images to a widget (#589)Matthias Melcher
Adding image binding to FLUID as well
2022-01-14Improve focus box drawing and documentationAlbrecht Schlosser
Add new method Fl_Widget::draw_focus(Fl_Boxtype t, int x, int y, int w, int h, Fl_Color bg) ... with background color for correct contrast testing (in Fl_Tabs) Draw the focus box of the "tabs" of Fl_Tabs widgets with the correct boxtype and background color. Make 'unsigned int visible_focus()' const so it can be used in 'const' methods. Do not draw the focus box if the per-widget focus box option is off.
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-18Document who's responsible for deletion of widget's image labels.ManoloFLTK
2020-03-03Clarify documentation of Fl_PackAlbrecht Schlosser
2020-01-26Fix 2 typos in Fl_Widget::shortcut_label() Doxygen doc.ManoloFLTK
2020-01-26Add Fl_Widget::shortcut_label(int) to control effect of '&' in some widget ↵ManoloFLTK
labels
2019-11-06Link Doxygen doc of Fl_Widget::label(text) to relevant part of FLTK ↵ManoloFLTK
programming manual.
2018-10-19Document that Fl_Widget::GROUP_RELATIVE bit is not used.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13073 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2018-03-26Android: Widgets can now request the on-screen keyboard when they get focus. ↵Matthias Melcher
This may fail if visible_focus is disabled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-07-20Improve docs of Fl_Widget::callback() and do_callback().Albrecht Schlosser
Clarify that all variants of do_callback() call clear_changed() after the callback and that 'long Fl_Widget::argument()' may truncate the user_data value on some (particularly Windows 64-bit) platforms. Some code has been reformatted and refactored with better variable names, but there are no effective code changes. Obsolete, inactive code was removed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23Move typedef fl_(u)intptr_t to FL/platform_types.h.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13Window functions to retrieve more detailed window typeMatthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-05Documentation updates on callbacks and Fl::readqueue().Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10677 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-04-04Fix Windows 64-bit compilation warnings (STR #2813).Albrecht Schlosser
Thanks to Csaba for providing a patch. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-04Add some doxygen descriptions for the (previously undocumented) ↵Ian MacArthur
Fl_Multi_Label struct, and make some minor related adjustments to the docs for Fl_Label and Fl_Labeltype. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2015-02-03Add method Fl_Widget::is_label_copied() as discussed in fltk.general.Albrecht Schlosser
Thread was: "How get X,Y,W,H for current clip region ?" on Feb 2-3, 2015. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10552 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-09-08Expose the INACTIVE flag in Fl_Widget similarly to other flags. STR #3122Lauri Kasanen
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-02-08Clarify docs of Fl_Widget::measure_label().Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10096 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2014-01-11Fix clang support on Win64 (STR #3027).Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10053 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10As per notes from STR#2948:Greg Ercolano
Moved top_window_offset() to being a member of Fl_Widget (was Fl_Window) and moved its code near implementations of top_window() and window(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-04-10Solve STR#2948: Add new method Fl_Widget::top_window() to return the ↵Greg Ercolano
widget's top-level window. Docs for existing Fl_Widget::window() revised to clarify the difference between these two methods. Docs for window() also moved from .H -> .cxx as per CMP (docs should be where code implementation is). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9871 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2013-01-13Mac OS: added support for the text input feature introduced in OS 10.7 ↵Manolo Gouy
"Lion" where pressing and holding some key opens a window with possible accented characters. This feature is used by the Fl_Input_ and Fl_Text_Editor widgets. User-defined text input widgets can optionally use this feature, but the default behavior is to not use it. Fl_Secret_Input turns it off, for example. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-23Reverted flags in Fl_Widget to protected.Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-22Updated PNG library to current version 1.5.10Matthias Melcher
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-09Removed Fl_Widget::is_fullscreen() that is just another name for ↵Manolo Gouy
Fl_Window::fullscreen_active() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9331 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05fix a typo and indenting.Albrecht Schlosser
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2012-04-05Fixed build error in msvs because Fl ref to FULLSCREEN enum was not ↵Fabien Costantini
accessible in Fl_Widget. new inline is_fullscreen() getter has been implemented to avoid a build error with (at least) msvc compilers. Fixed a ton of warnings / problems when bilding on windows 64 bits target with ms toolchain. cleaned up about 200 warnings raised when building win74 targets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9325 ea41ed52-d2ee-0310-a9c1-e6b18d33e121