Manolo Gouy
c530cdeda6
Use Fl_Graphics_Driver::default_driver() when convenient.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12088 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-09 09:49:48 +00:00
Manolo Gouy
a5b584f8f6
MacOS: use less temporary copies of image data for image printing.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12086 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-08 21:59:26 +00:00
Manolo Gouy
6eea76e187
Slightly improve the parameter list of member function int Fl_Graphics_Driver::start_image(...)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-05 06:00:52 +00:00
Manolo Gouy
0c31411df9
Rename Fl_Bitmap::start() to Fl_Bitmap::prepare().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12078 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-03 21:28:09 +00:00
Manolo Gouy
95a9edcb55
Factorize repeated code across platform-specific graphics drivers and image types
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-03 16:34:13 +00:00
Manolo Gouy
d3f1a3c167
Replace declarations such as "friend class Fl_Xlib_Graphics_Driver;" by platform-independent declarations.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12076 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-11-02 21:08:15 +00:00
Manolo Gouy
3ae2b1d74e
Add virtual Fl_RGB_Image* Fl_Image::as_rgb_image() to detect whether an Fl_Image is derived from Fl_RGB_Image
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12061 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-30 07:26:13 +00:00
Manolo Gouy
da276e6efa
Add one more argument to virtual Fl_System_Driver::file_browser_load_filesystem() giving length of the filename argument
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12050 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-19 08:40:41 +00:00
Albrecht Schlosser
bacced2c92
Add non-const version of Fl_Tree_Item::tree().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12036 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-17 12:51:05 +00:00
Manolo Gouy
fc62d39db5
Add Doxygen note that class Fl_Device_Plugin is not intended for public use.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12031 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-16 15:12:46 +00:00
Albrecht Schlosser
e3670dfda6
Fix inconsistent interpretation of ld() in image handling (STR #3308 ).
...
Documentation has been fixed and clarified, and ld() handling is now
consistent in Fl_(RGB_)Image, their subclasses and fl_draw_image()
and similar functions.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12029 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-14 16:35:52 +00:00
Manolo Gouy
c7c238675a
Introduce virtual void Fl_Menu_Bar::update() with a platform-specific reimplementation to support Fl_Sys_Menu_Bar.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-06 16:42:59 +00:00
Albrecht Schlosser
cf413d53fc
Fl_Shared_Image documentation enhancements and clarifications.
...
Minor code changes (e.g. renaming of variables) included, but no functional
changes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@12003 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-10-01 22:43:56 +00:00
Manolo Gouy
1b3e273fa7
Rename Fl_System_Driver::flNoValue to Fl_System_Driver::fl_NoValue to follow the CMP
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11988 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 19:35:20 +00:00
Manolo Gouy
7698a4b98e
MacOS platform: centralize check whether a font has been set before drawing text
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11979 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-26 06:26:59 +00:00
Albrecht Schlosser
34f5e4f752
X11: More explicit warning when using rotated text w/o Xft.
...
The warning is issued to stderr only once (previously: every time rotated
text was used).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11978 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-25 11:23:27 +00:00
Albrecht Schlosser
c2fd05633c
Fl_Tree documentation fixes and two missing statements.
...
Missing statements found while merging fixes from branch-1.3.
Todo: check if they have been 'lost' in the porting process
or removed deliberately in branch-1.3-porting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11976 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 23:15:48 +00:00
Manolo Gouy
6ad1d3f2e8
Add MAC_OS_X_VERSION_10_12 preprocessor variable
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11974 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-24 06:27:18 +00:00
Manolo Gouy
cccb475fa8
Remove useless forward declaration.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11972 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 15:22:02 +00:00
Manolo Gouy
0250c5a98a
Move font-related member functions from Fl_Screen_Driver to Fl_Graphics_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-23 13:56:07 +00:00
Manolo Gouy
0e33655853
Fl_Screen_Driver class: its platform dependent member functions should not be static.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11966 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-22 13:22:03 +00:00
Manolo Gouy
02535d1222
Rewrite Fl::set_fonts(), Fl::get_font_sizes(), Fl::get_font_name() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11965 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-22 07:44:34 +00:00
Albrecht Schlosser
26601983c6
Update dependencies.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11957 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-20 13:35:44 +00:00
Manolo Gouy
3c0b74b284
Remove virtual bool Fl_Graphics_Driver::high_resolution() unlikely to be useful across platforms.
...
HighDPI support is done with very different means across platforms, so a boolean
value is unlikely to be meaningful across platforms.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11950 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-19 15:33:21 +00:00
Manolo Gouy
6b86d9fbaf
Remove static bool Fl_Display_Device::high_resolution() which may not be really useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11949 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-19 15:10:28 +00:00
Manolo Gouy
75e9a9f55c
Documentation: restructure the description of function Fl::paste().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11946 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-16 09:27:32 +00:00
Manolo Gouy
c34255f8b9
Remove code requiring config.h from public header FL/x.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11937 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 15:48:09 +00:00
Manolo Gouy
b43a5cf1fe
Create virtual void Fl_Graphics_Driver::draw(Fl_Shared_Image*,...)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11936 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-12 12:02:38 +00:00
Manolo Gouy
70194e154a
Change FL/porting.H after having rewritten x.H and platform_types.h under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 14:24:36 +00:00
Manolo Gouy
35a5148ee8
Put the code that defines the layout of struct _XRegion in FL/x.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11930 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-11 07:12:11 +00:00
Manolo Gouy
c5960df5fb
Rewrite fl_open_callback() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11929 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-09-09 15:56:33 +00:00
Manolo Gouy
f551d538f2
Add Doxygen comments for the Fl_RGB_Image::alloc_array and ::array public attributes.
...
Also, document what is the value of alloc_array after construction of an Fl_RGB_Image object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-27 14:16:32 +00:00
Manolo Gouy
616bcb6357
Step back from r11886 that is not correct.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11888 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 15:25:22 +00:00
Manolo Gouy
b7146df369
Make Fl_Gl_Window::make_current() set the value of the fl_window global variable under the X11 platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 11:35:42 +00:00
Manolo Gouy
0267781cec
Change return type of Fl_Screen_Driver::read_win_rectangle() to Fl_RGB_Image*
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11884 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-23 09:38:46 +00:00
Albrecht Schlosser
78d853891c
[CMake] Fix Windows dll build with Visual Studio generator.
...
Now you can set OPTION_BUILD_SHARED_LIBS:BOOL=ON to build FLTK dll's with
Visual Studio. Tested and works (Visual Studio 2010 + 2015).
Note: Linux fixes included, tested and works (Ubuntu).
Todo: dll names and target directories may need some changes.
We really need to get rid of that "_SHARED" suffix in .so names.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11867 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-08-09 14:11:42 +00:00
Greg Ercolano
e92fa6914b
Bringing over fix [r11840] from 1.3 current to the porting branch.
...
Solves STR#3294; added methods to let user set the userdeicon,
and removed the performance degrading automatic deicon creation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11841 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-21 00:51:14 +00:00
Greg Ercolano
6465c2c544
Bringing over fix [r11756] from 1.3 current to the porting branch.
...
Small doxygen doc fix for scrollbar_width().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11830 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 01:07:10 +00:00
Greg Ercolano
1b238e52cd
Bringing over fix [r11766] from 1.3 current to the porting branch.
...
Doc fix: fixes STR#3312.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-20 00:50:36 +00:00
Greg Ercolano
f375b6098f
Bringing over fix [r11786] from 1.3 current to the porting branch.
...
Some small Fl_Sys_Menu_Bar related doc mods as per STR#3317.
WIP -- more to come; just checking in what I have for now..
1) rank -> index
2) Added docs for index \return values for some methods
3) Some clarification in the internal docs about rank vs. index
4) Enabled Fl_Menu_Item's enum flags to be able to be links (added @file
to Fl_Menu_Item.H) so references to e.g. "::FL_MENU_TOGGLE" will show
up as links in doxygen docs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11825 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:50:09 +00:00
Greg Ercolano
4f9345b40a
Bringing over this fix [r11798] from 1.3 current to the porting branch.
...
Small doc improvements/elaborations.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:27:34 +00:00
Greg Ercolano
2436521610
Bringing over this fix from 1.3 current to the porting branch.
...
Document savefile() return value, see also references to/from outputfile()
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:23:28 +00:00
Greg Ercolano
ec4120795d
Removed ABI guards that snuck in with r11819.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11822 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 23:19:16 +00:00
Greg Ercolano
dfd97e4639
Bringing over this fix from 1.3 current to the porting branch.
...
Fixes STR #3305 ; adds tab_nav() method allowing Fl_Text_Editor
to honor tab key focus navigation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11820 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 20:18:18 +00:00
Greg Ercolano
dc8a00fbba
Bringing over this fix from 1.3 current to the porting branch.
...
Fixes STR #3306 ; const version of bound_key_function().
Also affects patches in STR #3305 , which will be applied in next commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11819 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-19 20:12:21 +00:00
Albrecht Schlosser
d0fa58f700
Clarification and better documentation of ABI version configuration.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11804 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 18:47:06 +00:00
Albrecht Schlosser
d1b9d1032f
Documentation fixes and clarifications.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11802 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-07-09 17:14:22 +00:00
Manolo Gouy
22596d3f5f
Make Fl_Gl_Window::pixels_per_unit() return a float (rather than int) value.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11794 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-22 07:45:53 +00:00
Manolo Gouy
a7af6ab04c
Make Fl_Sys_Menu_Bar::update() public and cross-platform.
...
It was before protected and Mac OS-specific.
This allows to call it after direct modification of menu items.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-06-17 12:56:18 +00:00
Manolo Gouy
dc7d04c889
Give all virtual methods of class Fl_Graphics_Driver do-nothing implementations.
...
Thus, Fl_Graphics_Driver can be subclassed and only that part of its virtual methods
that is useful for an application is re-implemented.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11762 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-31 09:25:56 +00:00
Albrecht Schlosser
ffbcd89b53
Fix compiler warnings.
...
FL/platform_types.h: C++ style comments are not allowed in ISO C90.
src/Fl_Help_View.cxx: type qualifiers ignored on function return type.
src/Fl_Image_Surface.cxx: (Linux) converting to non-pointer type
‘long unsigned int’ from NULL [-Wconversion-null]
Line #70 : In member function ‘Fl_Offscreen Fl_Image_Surface::offscreen()’
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11748 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-22 13:36:40 +00:00
Manolo Gouy
867e640cb8
Fix handing of html entities in copied text by Fl_Help_View widget.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-19 16:50:09 +00:00
Albrecht Schlosser
ccf3681097
Fix Fl_Help_View buffer overflow (STR #3275 ).
...
This version works much better than the previous one:
- fixed buffer overflow ("stack corruption")
- fixed potential long text truncation
- fixed tab formatting at line start or any offset divisible by 8
- better handling of HTML entities (aka quoted characters)
- code simplifications, e.g. HV_Edit_Buffer::cmp() + width()
Todo:
- improve and standardize handling of HTML entities
- more tests
Missing features and known bugs:
- strike out text (not implemented)
- table and horizontal line formatting issues (STR #3227 )
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11746 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-17 16:33:50 +00:00
Manolo Gouy
8eb1517ffc
More accurate message about how to port the stat() function to a new platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11741 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-16 10:54:13 +00:00
Manolo Gouy
207d8fe09b
Add GLContext to the set of platform-dependent types defined in FL/platform_types.h
...
If a platform does not support OpenGL, it can just typedef GLContext as void*
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11733 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-13 06:45:40 +00:00
Manolo Gouy
cc35e003eb
Move GL-related member functions from class Fl_Cocoa_Screen_Driver to class Fl_Cocoa_Gl_Window_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11728 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-09 16:10:54 +00:00
Albrecht Schlosser
2dacc9a1db
Fix documentation of Fl_Tile (STR #3303 ).
...
Clarify that the resizable() box should be the first child to ensure
correct event delivery to children.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-09 11:29:59 +00:00
Manolo Gouy
8fcccb05d4
Rewrite file src/gl_draw.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11718 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 15:51:11 +00:00
Manolo Gouy
268a2507e8
Set file properties
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11717 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 06:57:13 +00:00
Manolo Gouy
300747225c
Rewrite OpenGL-related code under the driver model.
...
Class Fl_Gl_Window_Driver, with its platform-specific derived classes, is created
to hold platform-specific, OpenGL code.
File gl_draw.cxx still needs to be converted to the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11716 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-08 06:42:57 +00:00
Manolo Gouy
048bb2b0f6
Documentation: detail ownership of the image data when pasting from an image-containing clipboard.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11714 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-05 08:35:52 +00:00
Manolo Gouy
d47b431750
Fix potential memory leak under X11 when pasted image is not accepted by the receiving app.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11709 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-05-03 14:28:45 +00:00
Manolo Gouy
86a7bbe93a
Member function Fl_Widget_Surface::draw(Fl_Widget*,int,int) does not need to be virtual.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11708 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-30 15:07:16 +00:00
Manolo Gouy
5a4d10faea
Use standard fopen() as default implementation of virtual Fl_System_Driver::fopen()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11706 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-27 17:25:17 +00:00
Manolo Gouy
25b4076b03
Set more accurately the protections of the members of class Fl_Display_Device.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-26 05:44:54 +00:00
Manolo Gouy
8f9f17456b
Remove unnecessary #include directive.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11696 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-25 06:29:36 +00:00
Manolo Gouy
93d1c43b7a
Remove FL_ABI_VERSION directives
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11692 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:39:27 +00:00
Manolo Gouy
a877a2d06b
Add 2 Doxygen member function descriptions.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11691 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 19:30:17 +00:00
Manolo Gouy
6d8b062453
Complete DOxygen documentation of the Fl_Graphics_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 16:22:38 +00:00
Manolo Gouy
98f071fa16
Add Doxygen comments for members of the Fl_Graphics_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11689 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-24 08:38:11 +00:00
Manolo Gouy
8dddcb2d1d
Move Doxygen comments of Fl_PostScript_File_Device members to Fl_PostScript_File_Device.H for Doxygen visibility.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11688 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 17:55:08 +00:00
Manolo Gouy
9941c3c1d7
Move Doxygen comments of Fl_PostScript_File_Device members to Fl_PostScript_File_Device.H for Doxygen visibility.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11687 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 17:52:34 +00:00
Albrecht Schlosser
1db8d51eae
Move typedef fl_(u)intptr_t to FL/platform_types.h.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11686 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 15:08:26 +00:00
Albrecht Schlosser
c89a609be2
Fix compilation warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11685 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 14:25:15 +00:00
Manolo Gouy
e2edfcbe4f
Add Doxygen definitions to the new Fl_XXX_Driver classes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 06:27:31 +00:00
Manolo Gouy
a56124c20b
Remove #if FLTK_ABI_VERSION >= xxx directives.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11679 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-23 04:30:39 +00:00
Manolo Gouy
163c65dc6f
Avoid the expression "foreign language" in comments.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-20 07:19:19 +00:00
Manolo Gouy
ae23f0cb5e
Progress toward support of CMake OPTION_APPLE_SDL
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-20 04:49:36 +00:00
Manolo Gouy
747e88abdc
Add missing typedef statement for CGContextRef.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11672 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-20 04:09:01 +00:00
Manolo Gouy
c28b65f5f5
Clean #include directives used by x.H, mac.H, win32.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-20 04:03:03 +00:00
Matthias Melcher
f45389d2cf
Cleaning Pico
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 22:51:09 +00:00
Matthias Melcher
d40b765c86
Fixed Fl_X for Pico
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 22:49:05 +00:00
Matthias Melcher
769d151a12
Virtualized add_fd and remove_fd into System Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 22:45:22 +00:00
Manolo Gouy
cd4498021e
Have headers x.H, win32.H and mac.H share a unique definition of class Fl_X
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11667 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 20:47:25 +00:00
Matthias Melcher
8d796c2cce
SDL fix.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11665 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 20:05:24 +00:00
Manolo Gouy
1e8a53ecc4
Move private_dc from Fl_X for WIN32 platform to Fl_WinAPI_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11664 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 19:37:49 +00:00
Manolo Gouy
9f78323574
Move GL-related static member functions of the Fl_X class on Mac OS to class Fl_Cocoa_Screen_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11662 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 16:58:17 +00:00
Manolo Gouy
f29fb8c539
Complete the implementations of virtual Fl_X* Fl_Window_Driver::makeWindow() with the X11 platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11661 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 16:00:30 +00:00
Manolo Gouy
24487a719f
Move Fl_X::make_fullscreen() for WIN32 platform to Fl_WinAPI_Window_Driver:: make_fullscreen().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11660 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 15:47:23 +00:00
Manolo Gouy
1e060f6408
Transform Fl_X::make(Fl_Window*) for WIN32 platform into virtual Fl_X* Fl_Window_Driver::makeWindow().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11659 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 15:33:58 +00:00
Manolo Gouy
6600993adc
Transform Fl_X::make(Fl_Window*) for Mac platform into Fl_X *Fl_Cocoa_Window_Driver::makeWindow()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11658 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 15:00:02 +00:00
Manolo Gouy
f9edd86753
Move several of the methods of class Fl_X for Mac platform to class Fl_Cocoa_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11657 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 14:25:47 +00:00
Manolo Gouy
034cfc94a3
Move Fl_X::set_high_resolution() to classes Fl_Graphics_Driver and Fl_Quartz_Graphics_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11656 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 12:46:07 +00:00
Manolo Gouy
366f4bfbc9
Move the set_key_window() member function from class Fl_X to class Fl_Cocoa_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-19 06:34:40 +00:00
Manolo Gouy
c0f14ca2f0
Move other_xid member variable from class Fl_X to class F_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11654 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 17:02:44 +00:00
Manolo Gouy
e790ac9653
Move wait_for_expose member variable from class Fl_X to class Fl_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 16:11:15 +00:00
Manolo Gouy
0629b40afd
Move set_cursor() member functions from class Fl_X to classes Fl_Window_Driver and derived.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 14:31:07 +00:00
Manolo Gouy
516d0e5f9c
Replace static void Fl_X::activate_window(Window) under X11 platform by void Fl_X11_Window_Driver::activate_window()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 13:40:34 +00:00
Manolo Gouy
9df9ffdc4c
Replace Fl_X::sendxjunk() under USE_X11 by Fl_X11_Window_Driver::sendxjunk().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11650 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 13:17:09 +00:00
Manolo Gouy
cb95d40067
Remove Fl_X::setwindow(Fl_Window*) from WIN32 and USE_X11 Fl_X classes.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11649 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 12:48:40 +00:00
Manolo Gouy
3df26257d0
Move Fl_X::backbuffer_bad under USE_X11 to class Fl_X11_Wi,dow_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 12:28:57 +00:00
Manolo Gouy
1d279de044
Remove Fl_X::x(w,X) and Fl_X::y(w,Y) on the USE_X11 platform that are unused in FLTK.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11647 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 12:12:17 +00:00
Manolo Gouy
85b5f02a8b
Replace member function void Fl_X::flush() by virtual void Fl_Window_Driver::flush()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11646 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-18 11:58:46 +00:00
Matthias Melcher
cdf85352c4
virtualized some Region calls.
...
There is a deeper issue here: regions should be handled by the graphics driver that is associated with the Fl_Window of this widget... .
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11643 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 15:36:23 +00:00
Matthias Melcher
c9d3eabf4e
virtualized Fl::set_color and free_color.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11642 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 15:01:20 +00:00
Matthias Melcher
9ae4a99081
virtualized Fl_Graphics_Driver::global_gc(), a function that should probably not exeist.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11641 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 14:45:25 +00:00
Matthias Melcher
cc57af841a
virtualizes fl_set_spot and fl_reset_spot
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 14:22:02 +00:00
Manolo Gouy
a4e5dc0267
Move q_release_context() from class Fl_X to class Fl_Cocoa_Window_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11639 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 10:12:42 +00:00
Manolo Gouy
16beb869a5
Move Fl_X::gc for Mac platform to the Fl_Cocoa_Window_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11638 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 09:25:00 +00:00
Manolo Gouy
befd771dd6
Remove a few // TODO: check after having checked
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11637 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 06:00:49 +00:00
Manolo Gouy
c6c92e4037
Remove set_icons() from the virtual API of class Fl_Window_Driver because it is internal to some drivers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11636 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-17 05:41:05 +00:00
Albrecht Schlosser
160ac59070
Remove unused and "illegal" include statements.
...
Header files from src/.. must not be included in public header files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11634 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 18:19:59 +00:00
Manolo Gouy
c4953935b0
Continue removing non window-related member-functions from class Fl_X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11633 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 13:15:49 +00:00
Manolo Gouy
b0ce80f56b
Continue removing non window-related member-functions from class Fl_X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11632 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 12:28:50 +00:00
Manolo Gouy
d3e2a88c09
Continue removing non window-related member-functions from class Fl_X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11631 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 12:05:55 +00:00
Manolo Gouy
d3d7597484
Continue removing non window-related member-functions from class Fl_X.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 11:02:35 +00:00
Manolo Gouy
083e9ed06a
Begin moving non window-related member functions out of Fl_X class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11629 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 09:01:19 +00:00
Manolo Gouy
f8104524e8
Use more consistent naming for derived classes of Fl_Native_File_Chooser_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11628 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 08:37:15 +00:00
Manolo Gouy
9fea9f3417
Add to Doxygen comments how to proceed for a platform where no file chooser is useful.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11626 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 07:55:51 +00:00
Manolo Gouy
3caff18578
Remove the virtual destructor of class Fl_X that is no longer needed.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11625 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 07:25:58 +00:00
Albrecht Schlosser
f3a0f4efc3
Fix C++ comments in C source files and headers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11623 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-16 01:49:15 +00:00
Manolo Gouy
2fcb4f4192
Move platform-dependent implementations of fl_open/close_display() to the Fl_Screen_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11619 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 15:36:10 +00:00
Manolo Gouy
15715cd898
Move platform-dependent implementations of Fl::en/dis/able_im() to the Fl_Screen_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11618 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 15:12:22 +00:00
Manolo Gouy
397a3b83bf
Move platform-dependent implementations of fl_clipboard_notify_changes() to the Fl_System_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 15:01:27 +00:00
Manolo Gouy
b1f8f3e2aa
Move platform-dependent implementations of Fl::clipboard_contains() to the Fl_System_Driver class
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 14:49:46 +00:00
Manolo Gouy
d683841f9f
Move the platform-dependent implementations of Fl::paste() to the Fl_System_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 14:32:13 +00:00
Manolo Gouy
7508a033c5
Continue moving to Fl_System_Driver the platform_dependent implementations of member functions of the Fl class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 14:18:37 +00:00
Manolo Gouy
3f64e2b28d
Continue removing from class Fl_X what is not window-related.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11613 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 11:30:10 +00:00
Manolo Gouy
156d2e4053
Continue removing from class Fl_X what is not window-related.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11612 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 11:09:10 +00:00
Manolo Gouy
d289d6bec7
Remove erroneous statement from Doxygen doc.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11610 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 07:53:06 +00:00
Manolo Gouy
53d7191928
Remove S_IFMT from the public FLTK API
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11609 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-15 07:33:26 +00:00
Matthias Melcher
130a0ef8da
PicoSDL fixes - not working!
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11607 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-14 21:29:02 +00:00
Manolo Gouy
03e87bb270
Complete rewriting of Fl_Tree_Prefs.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11606 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-14 20:58:20 +00:00
Manolo Gouy
0e0ad95b22
Begin to rewrite Fl_Tree_Prefs.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11605 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-14 20:44:23 +00:00
Manolo Gouy
70f7738c92
Rewrite Fl_own_colormap.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11601 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 14:41:55 +00:00
Manolo Gouy
8653a5353e
Rewrite fl_encoding_mac_roman.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11600 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 14:19:13 +00:00
Manolo Gouy
b590bc49f9
Rewrite fl_encoding_latin1.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11599 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 14:05:34 +00:00
Albrecht Schlosser
737ae06381
Fix platform specific compilation errors.
...
src/Fl_lock.cxx: remove static keyword (Cygwin).
FL/platform_types.h: __int64 is MS VC only, use int instead.
Todo: the latter fixes a compilation error on Windows 64-bit platforms
(MinGW and/or Cygwin). FL_SOCKET needs an update anyway (see comment).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11597 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 12:26:04 +00:00
Manolo Gouy
562d29bd7c
Remove platform-dependent code from Enumerations.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11596 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 10:48:14 +00:00
Manolo Gouy
d92a0c3961
Remove useless platform-dependent preprocessor directives.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11595 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-13 08:31:44 +00:00
Manolo Gouy
e74f213704
Finish rewrite of Fl_File_Chooser2.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11591 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 21:32:55 +00:00
Albrecht Schlosser
7e04657ce7
Remove obsolete EMX (DOS, OS/2 extender) support.
...
This commit changes all files except src/Fl_File_Chooser2.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11590 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 17:53:18 +00:00
Manolo Gouy
4ebdf97b70
Begin to rewrite Fl_File_Chooser2.cxx for the driver model.
...
The parts with case-insensitive filename comparisons for WIN32
and for WIN32 but not CYGWIN still have to be rewritten.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11588 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 17:06:20 +00:00
Manolo Gouy
fce1483eb8
Rewrite fl_draw_pixmap.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11587 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 13:47:38 +00:00
Manolo Gouy
b9b313538c
Reorganize the implementations of the virtual member function Fl_System_Driver::getenv()
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11585 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-12 06:45:35 +00:00
Manolo Gouy
64b3d26daa
Create Fl_X11_System_Driver.{cxx,.H} and share Fl_Posix_System_Driver.{cxx,.H} between Darwin and USE_X11 platforms.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11583 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 19:14:47 +00:00
Manolo Gouy
5b44fe3bff
Remove compilation errors in Fl_File_Icon.cxx with MSVC compiler with new method Fl_System_Driver::file_type().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11581 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-11 13:07:08 +00:00
Manolo Gouy
6879d54fc4
Rewrite Fl_lock.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11578 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 20:38:04 +00:00
Manolo Gouy
95fa60b71d
Rewrite Fl_get_system_colors.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11577 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 19:37:18 +00:00
Manolo Gouy
99b3c6813a
Rewrite Fl_File_Input.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:36:47 +00:00
Manolo Gouy
c3f1877fd1
Remove platform-dependent code from Fl_PNG_Image.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11574 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 18:22:57 +00:00
Manolo Gouy
7e20aa06f9
Fix error in WIN32 code when rewriting Fl_File_Browser.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 17:56:53 +00:00
Manolo Gouy
faaa2b6d1e
Rewrite Fl_Preferences.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11571 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 08:15:51 +00:00
Manolo Gouy
927774af85
Rewrite Fl_File_Browser.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11570 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-10 06:33:19 +00:00
Manolo Gouy
65e19a1d2d
Rewrite fl_shortcut.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 16:37:24 +00:00
Manolo Gouy
3bc5be71a3
Rewrite Fl_Tooltip.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11565 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 15:37:40 +00:00
Manolo Gouy
8b672ee655
Rewrite fl_open_uri.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 15:15:33 +00:00
Albrecht Schlosser
d56e2ec9f0
Fix typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11560 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 10:42:17 +00:00
Albrecht Schlosser
9aa5e497ba
Fix C++ comment in C header file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 09:59:46 +00:00
Manolo Gouy
3ac718fd32
Rewrite Fl_Menu.cxx for the driver model.
...
See the detailed description in menuwindow::handle(int e) of Fl_Menu.cxx
of how the menu window class could require 1 or 2 less support functions from
the Fl_System_Driver class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11557 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-09 09:48:34 +00:00
Manolo Gouy
1ba6928313
Rewrite filename_ext.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11556 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 16:00:26 +00:00
Manolo Gouy
90682dbd48
Rewrite filename_isdir.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11555 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 15:48:28 +00:00
Manolo Gouy
62952ea295
Rewrite filename_absolute.cxx for the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11554 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-08 15:17:39 +00:00
Manolo Gouy
19b98e40de
Rewrite filename_expand.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 16:54:20 +00:00
Manolo Gouy
23a60edb44
Rewrite filename_list.cxx under the driver model.
...
One more platform-dependent type is necessary: struct dirent
Create a new header file, FL/platform_types.h, to define all
types whose definition is platform-dependent.
This file is for C because it is included by scandir_XXX.c
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-07 15:10:30 +00:00
Albrecht Schlosser
f120334da3
Fix Doxygen warnings.
...
There was one obvious warning in src/fl_read_image.cxx, but others
have to do with incomplete code and platform specific definitions.
I'm not entirely happy with these changes. Temporary changes have been
marked with 'FIXME' and should be removed later if possible.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 22:20:32 +00:00
Manolo Gouy
9fa4059f43
Rewrite Fl_get_key.cxx for the driver model - cont'd
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11546 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 20:33:53 +00:00
Manolo Gouy
a2eeca92f0
Rewrite Fl_Input.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11544 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 19:39:15 +00:00
Manolo Gouy
ae0d15f1a3
Begin to rewrite files using #include <sys/stat.h> under the driver model.
...
struct stat is considered a platform-specific type.
The Unix, Mac OS, and WIN32 platforms define it with #include <sys/stat.h>
Other platforms may do that their own way.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11542 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-06 15:49:52 +00:00
Albrecht Schlosser
020a96b4a8
Fix more compiler warnings.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11536 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 21:15:45 +00:00
Albrecht Schlosser
f0f41708a4
Fix typo.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 17:52:58 +00:00
Manolo Gouy
fa67aafa9d
Rewrite the Fl_File_Native_Chooser class under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11529 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-05 11:25:35 +00:00
Manolo Gouy
1dfe311998
Remove unused member function declaration (Mac OS platform)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11528 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-04 11:57:34 +00:00
Manolo Gouy
d292de92ef
Rewrite fl_scroll_area.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11520 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 14:25:42 +00:00
Manolo Gouy
f1ffe2f1fe
Rewrite fl_read_image.cxx under the driver model.
...
Files fl_read_image_mac.cxx and fl_read_image_win32.cxx are no longer used;
their content is now in Fl_XXX_Screen_Driver.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-03 06:51:09 +00:00
Manolo Gouy
64c96b9098
Continue removing from class Fl_X all what is not window-related.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11514 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 16:08:56 +00:00
Manolo Gouy
6b6c71265f
Complete removal of platform-dependent code from fl_set_font.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11512 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 15:37:03 +00:00
Manolo Gouy
09e0864f3e
Remove #include directive for Fl_Font.H from mac.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:53:41 +00:00
Manolo Gouy
d011d5b4f0
Replace src/Fl_Font.H by one file for each platform.
...
This file contained nearly only platform-specific code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11507 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 13:22:48 +00:00
Manolo Gouy
43d20bd18a
Remove now useless Fl_X::window_ref() function.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11505 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:44:00 +00:00
Manolo Gouy
d0c8ff09f0
Make constant CoreText_threshold local to file Fl_Quartz_Graphcs_Driver_font.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11504 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:41:11 +00:00
Manolo Gouy
ab5252071c
Move Fl_X::next_marked_length to the Fl_Cocoa_Screen_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11503 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 09:34:17 +00:00
Manolo Gouy
4d4b43a6bc
Move function Fl_X::calc_mac_os_version() to class Fl_Darwin_System_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 07:29:09 +00:00
Manolo Gouy
77e5a5c11a
Move get_carbon_function() to the Fl_Darwin_System_Driver class where it belongs.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11501 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 07:03:18 +00:00
Manolo Gouy
7b37960d95
Move intersect_region_and_rect() to the Quartz driver code where it belongs.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-02 06:42:34 +00:00
Manolo Gouy
d756822c2b
Complete removal of platform-dependent code from Fl_Text_Display.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11499 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 15:37:19 +00:00
Manolo Gouy
20b00f29ce
Rewrite Fl_Text_Editor.cxx under the driver model.
...
Fl_Cocoa_Screen_Driver contains the Mac OS-specific text editor key bindings.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11497 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 14:49:29 +00:00
Manolo Gouy
f1a157bdd9
Replace Fl_System_Driver::driver() by Fl::system_driver()
...
for coherence with the Fl::screen_driver() function.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11494 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-04-01 10:28:03 +00:00
Manolo Gouy
519673a776
Move dnd and character-composition related functions from Fl_System_Driver to Fl_Screen_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11489 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 19:55:03 +00:00
Manolo Gouy
5d12ea5ab1
Move marked text-related data to the Fl_Cocoa_Screen_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11488 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 19:23:38 +00:00
Manolo Gouy
2de2f54968
Move the marked text support member functions from Fl_System_Driver to Fl_Screen_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11486 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 17:25:18 +00:00
Manolo Gouy
ff83e355b0
Begin to remove platform-dependent code from Fl_Input_.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 15:57:35 +00:00
Manolo Gouy
56e145a1c8
Complete removing platform-dependent code from the Fl.H header file.
...
Type FL_SOCKET is now declared in Fl_System_Driver.H with all other
platform-dependent public types.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11484 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 11:01:07 +00:00
Manolo Gouy
3ca402b609
Continue removing platform-dependent code from the Fl.H header file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11483 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 06:47:15 +00:00
Manolo Gouy
059664e7d4
Begin to remove platform-dependent code from the Fl.H header file.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-31 06:24:26 +00:00
Manolo Gouy
d67f395031
Rewrite functions XRectangleRegion(), XDestroyRegion() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11479 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 20:16:40 +00:00
Manolo Gouy
5adda33f96
Finish removing platform-dependent code from Fl_PostScript.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11477 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 17:09:15 +00:00
Manolo Gouy
730f2d12b2
Continue removing platform-dependent code from Fl_PostScript.cxx
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11476 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 16:27:41 +00:00
Manolo Gouy
2ac2b506a8
Begin to rewrite Fl_PostScript.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11474 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 15:47:23 +00:00
Manolo Gouy
288ed8988e
Rewrite fl_utf.c under the driver model: the file disappears and its content is moved to fl_utf8.cxx
...
All functions of fl_utf.c keep their C API in fl_utf8.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11472 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 13:59:55 +00:00
Manolo Gouy
53aced3dbd
Add an explicative comment.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11471 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-30 04:38:27 +00:00
Manolo Gouy
532e564593
Add #include <FL/Fl_Widget.H> needed in mac.H
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11470 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 20:10:37 +00:00
Manolo Gouy
9a521b95b9
Remove useless #include <FL/Fl_Device.H>
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11469 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:59:34 +00:00
Manolo Gouy
08677d0cb6
Clean mac.H of a few useless #include directives.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11468 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:52:51 +00:00
Manolo Gouy
fd600aa239
Rewrite fl_utf8.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11467 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 19:41:14 +00:00
Albrecht Schlosser
109ebd2dc0
Fix Fl_Browser::textsize(int) to adjust the scrollbars (STR #3057 ).
...
Setting a different text size didn't affect the scrollbars.
Port of branch-1.3, r11453 and r11464.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11465 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 11:54:44 +00:00
Manolo Gouy
4fcefc68f8
Remove the platform-dependent type xchar
...
File fl_utf8.h defines the xchar type with a platform-dependent value (wchar_t or unsigned short).
But it is used exclusively by WIN32 code (0 use in cross-platform code, 0 use in APPLE
or in USE_X11 code).
Thus, we can just get rid of this type and replace it by wchar_t where it is used.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11459 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 09:29:51 +00:00
Manolo Gouy
21655099a7
Add a default value to the argument of Fl_System_Driver::dnd(int).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 06:20:43 +00:00
Manolo Gouy
8ee4c7303f
Begin to clean fl_utf8.h from its platform-dependent content.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11457 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-29 06:12:12 +00:00
Manolo Gouy
aacb5277e7
Rewrite Fl_dnd.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11455 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 17:36:07 +00:00
Manolo Gouy
4fbbab8b41
Rewrite Fl_compose.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11454 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 16:17:39 +00:00
Manolo Gouy
28d1a2d684
Rewrite Fl_abort.cxx under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 15:22:20 +00:00
Manolo Gouy
6284720098
Rewrite file src/Fl_arg.cxx under the driver model. Begin giving flesh to the Fl_System_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11448 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-28 09:25:11 +00:00
Manolo Gouy
2fd4dde9f5
Rewrite Fl_Menu_Window class under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11441 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 07:47:52 +00:00
Manolo Gouy
5f14fc3e9b
Rewrite Fl_Overlay_Window class under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11440 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-27 06:58:54 +00:00
Manolo Gouy
6d8ca8eeb6
Move all content of the header after the anti-repetition guard.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11436 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 18:36:44 +00:00
Manolo Gouy
24fd68560f
Public header files must not include files from the source tree.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11435 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 18:03:10 +00:00
Manolo Gouy
ba239c1ea1
Remove #include <FL/x.H> from all public include file (there remained one).
...
This way, application programs will not have to include system headers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11433 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 17:49:54 +00:00
Manolo Gouy
915d6c643a
Isolate the definition of the 3 public, OS-dependent types (Fl_Offscreen, Fl_Region, Fl_Bitmask).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11432 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 14:36:11 +00:00
Albrecht Schlosser
29a9e89b39
Remove FLTK_ABI_VERSION from all but *tree*.* and documentation.
...
Everything related to Fl_Tree and its test and demo programs has been
cleaned.
Documentation needs updates.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 02:55:14 +00:00
Albrecht Schlosser
de9dc764f1
Move fl_local_* decl. and short docs back to FL/Fl.H.
...
Note: these declarations must be in an (official) public header.
FL/Fl_System_Driver.H should not be included in user space.
Maybe move FL/Fl_System_Driver.H to src/drivers ?
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11427 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-26 01:39:22 +00:00
Matthias Melcher
6955d5d082
Completed the vector font.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11424 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25 23:10:15 +00:00
Manolo Gouy
01e991840c
Remove a bunch of useless #include <FL/x.H> directives.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11422 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25 16:06:00 +00:00
Manolo Gouy
a69133d317
Separating platform-dependent from platform-independent code: make src/Fl.cxx cross-platform.
...
File src/Fl_win32.cxx is now compiled instead of included in Fl.cxx.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-25 13:08:48 +00:00
Manolo Gouy
2530120d7d
Rewrite Fl::handle_(int e, Fl_Window* window) and Fl_Widget::damage() to remove their platform dependent parts
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11419 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24 22:26:13 +00:00
Manolo Gouy
1778ee8831
Fix the implementation of Fl_Window::default_icons(const Fl_RGB_Image *icons[], int count) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24 06:19:10 +00:00
Manolo Gouy
6e141d14df
Fix the "bizarre makefile build error" due to double declarations of fl_clip_region(Fl_Region).
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11416 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24 05:59:35 +00:00
Albrecht Schlosser
4a31fd7aed
Provide Fl_Window_Driver accessor methods for public Fl_Window attributes.
...
These methods are intended to be used instead of pWindow->method()
for better code readability and easier porting of methods from
Fl_Window to Fl_Window_Driver.
New methods: x(), y(), y(), h(), shown(), parent(), border(),
visible(), and visible_r().
We should add more such methods if appropriate.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11414 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-24 01:20:08 +00:00
Manolo Gouy
abc12cd376
Rewrite Fl_Window::show(int argc, char **argv) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11413 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 20:42:13 +00:00
Manolo Gouy
d3b33cdaea
Rewrite Fl_Window::hotspot(int X, int Y, int offscreen) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11412 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 20:16:23 +00:00
Manolo Gouy
fdaad858ba
Rewrite Fl_Window::iconize() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11411 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 18:00:37 +00:00
Manolo Gouy
e3ee1e7b81
Rewrite Fl_Window::size_range_() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11410 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 17:13:09 +00:00
Manolo Gouy
6608db0b0c
Rewrite Fl_Window::border(int) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11409 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 16:14:35 +00:00
Manolo Gouy
affdcdb525
Rewrite Fl_Window::fullscreen_x() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11407 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 14:36:58 +00:00
Manolo Gouy
a114e3ab4d
Rewrite Fl_Window::handle(int) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 13:13:00 +00:00
Manolo Gouy
270b437500
Rewrite Fl_Window::hide() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-23 07:08:17 +00:00
Manolo Gouy
bf7e4de688
Rewrite Fl_Window::resize() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11401 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 21:21:08 +00:00
Manolo Gouy
6ec8ebc4f8
Rewrite Fl_Window::show() and Fl_Menu_Window::show() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11400 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 17:47:44 +00:00
Manolo Gouy
6302b3da00
Move all icon-support data to the platform-specific Fl_XXX_Window_Driver class
...
because these data are platform-specific.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11399 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-22 13:27:22 +00:00
Manolo Gouy
3f34aba828
Rewrite Fl_Window::label(const char *name, const char *mininame) under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11394 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 17:55:10 +00:00
Manolo Gouy
9ba3889ae5
Implement Fl_Window::make_current() under the driver model.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11393 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-21 17:06:03 +00:00
Manolo Gouy
4baca53944
Continue implementation of class Fl_Window_Driver according to Albrecht's plan.
...
This removes a bunch of
friend class Fl_XXX_Window_Driver;
declarations from Fl_Window.H, and therefore allows
to add a new window driver without modifying the platform-independent code.
The Fl_PicoXXX_Window_Driver classes have been modified but not tested ==> test needed.
File Fl_X11_Window_Driver.cxx contained this:
// DO NOT call this if the window is not mapped!
static int can_xdbe()
{ ... }
The new code does call can_xdbe() before any window is mapped,
and does work. Since can_xdbe() asks the X server whether it supports
the Xdbe extension, I don't see why this should not work without a
mapped window. This point should be clarified by the author of
"DO NOT call this if the window is not mapped!".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11388 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-20 08:44:30 +00:00
Manolo Gouy
51030530f2
Advancing Albrecht's plan for the Fl_Window_Driver class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11387 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 23:04:28 +00:00
Manolo Gouy
f936eb1a96
Driver-based rewrite of the Fl_Copy_Surface class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11374 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 18:14:58 +00:00
Manolo Gouy
8711cf8be9
(hopefully) Final driver-based rewriting of the Fl_Image_Surface class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11371 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 16:48:33 +00:00
Manolo Gouy
1179b53b0c
Implement Fl_PostScript_Graphics_Driver::has_feature(driver_feature mask)
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11368 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-19 05:11:05 +00:00
Manolo Gouy
fa9a33eaee
Beginning of Albrecht's plan for Fl_Window and Fl_Window_Driver classes.
...
Still unclear whether the implementation of the flush() functions follows the plan.
The Fl_Printer class is fully rewritten under the driver model.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-18 18:20:11 +00:00
Matthias Melcher
b496d18b85
Fixed 'flush()' code for single, double, and overlay buffering
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 22:16:37 +00:00
Matthias Melcher
30756ae350
Window functions to retrieve more detailed window type
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-13 15:31:26 +00:00
Matthias Melcher
5953f5a695
Quick fix for Fluid on X11. MSWindows version broken due to missing Fl_Printer::Helper::Helper
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11357 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 23:44:57 +00:00
Matthias Melcher
e6631a0f7f
Moved the Fl_Window::decorated_*() functions teh Window_Driver
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11356 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 22:24:20 +00:00
Albrecht Schlosser
c1fe316855
Add localization of modifier key names in shortcut labels.
...
Modifier key names like Alt, Shift, Ctrl, Meta can now be localized by
setting global string pointers. See documentation of fl_shortcut_label().
Port branch-1.3, svn r 11321.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11354 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-12 17:44:24 +00:00
Manolo Gouy
f11fe83e5e
Rewrite of Fl_Printer under the driver model - first step
...
Next step will involve moving code to new, platform-specific files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11350 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 20:32:48 +00:00
Manolo Gouy
28f24b1b6f
Remove a few #include <FL/x.H> from public FLTK headers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 09:28:56 +00:00
Manolo Gouy
408d0672a4
Rewrite Fl_Window::wait_for_expose() using the window driver approach.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11346 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 08:31:36 +00:00
Manolo Gouy
2952c530b8
Rewrite capture of window decorations using the window driver approach.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 07:07:42 +00:00
Matthias Melcher
ac1932eaa7
(incomplete) Add files required to compile for Android via Pico driver.
...
Don't get your hopes up just yet: this code does compile, but it doesn't fully link yet. If you like to test this, install the Android SDK and NDK, set the usual environment variables, then change into the "Android" direktory and run "mk". It will currently fail at the linker stage.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-11 00:19:27 +00:00
Manolo Gouy
31fcd84ca9
Rewrite all window icon-related Fl_Window API with the window driver approach.
...
It seems this allows not to #include <windows.h> in the public header files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11342 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 22:26:40 +00:00
Manolo Gouy
d4768073fa
Implement non-rectangular windows using the Window Driver mechanism.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11336 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-10 17:19:34 +00:00
Albrecht Schlosser
bcb756da38
Improve documentation of Fl_Valuator class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 13:51:01 +00:00
Matthias Melcher
ca54afe5f4
Add missing PicoSDL functions for command line build.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 09:15:50 +00:00
Matthias Melcher
00750d4c33
Add very basic graphics support to PicoSDL.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-08 00:35:00 +00:00
Matthias Melcher
b73bf4a73e
Fixes for MSWindow
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:56:12 +00:00
Matthias Melcher
c26880e2d2
Fixes for X11
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11309 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:45:55 +00:00
Matthias Melcher
12eef8e64d
Separating Fl_X and Fl_Window_Driver in Fl_Window.
...
This was needed because Fl_X only exists if a window is mapped, but we need the driver from the very beginning. Adding Fl_X in the ctor would create hidden bugs. Strategy is now to remove system specific stuff from Fl_X and move it one-by-one to Fl_Window_Driver while maintaining a working code base. X11 and WIN32 fixups will follow in 15 minutes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11308 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 21:15:25 +00:00
Matthias Melcher
b6b99d84e9
Fix PicoSDL.
...
Fixed some issues with Image_Surface and Copy_Surface for PicoSDL. Still have to virtualize the driver concept.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11307 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-07 20:50:18 +00:00
Manolo Gouy
5ca73da7b3
Driver-based Fl_Double_Window implementation - continued.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 22:22:22 +00:00
Manolo Gouy
acfeee6d78
New, driver-based Fl_Double_Window implementation.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11303 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-06 21:33:07 +00:00
Manolo Gouy
e7a0f7c5d0
Complete the platform-neutral implementation of fl_XXX_offscreen() functions.
...
It is necessary to have a stack of the fl_begin_offscreen() calls, so that nested
such calls apply fl_end_offscreen() to the matching fl_begin_offscreen().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-05 07:04:20 +00:00
Manolo Gouy
a46e324405
Fix a problem seen in fluid on the Mac OS platform.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11285 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-04 22:30:18 +00:00
Manolo Gouy
750c372b29
Remove Fl_Copy_Surface::newPlatformSurface() that does not do much.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11279 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-03 19:25:10 +00:00
Manolo Gouy
8bd3ea6c8a
A hopefully clearer implementation of the fl_XXX_offscreen() functions.
...
The Xlib driver is tricky because it uses two kinds of offscreen buffers.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-03 08:32:16 +00:00
Matthias Melcher
fcdc7f1212
Made Pico/SDL setup compile and run some minimal code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11274 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-03 00:07:17 +00:00
Manolo Gouy
2d52a3494d
Rewrite Fl_Image_Surface with full separation of public API and platform-specific implementation.
...
File Fl_Image_Surface.cxx still needs to be cut in several platform-specific files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11273 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 22:10:03 +00:00
Albrecht Schlosser
35c4ae5527
Don't expose X11 headers in user space any more (mostly).
...
Platform headers should not be #include'd in public FLTK header files,
so that user space is not polluted by platform specific definitions.
See discussion and test file in discussion in fltk.general:
https://groups.google.com/forum/#!topic/fltkgeneral/gzmdRk2LvAk
https://groups.google.com/d/msg/fltkgeneral/gzmdRk2LvAk/EOe314ChBgAJ
This commit fixes FL/fl_utf8.h to #include X11 headers only if compiled
in the FLTK library (same as in FLTK 1.3.4, svn r 11266).
Todo (FLTK 1.4): Remove more unnecessary (unwanted) system header #include
statements from FL/x.H and other public header files.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11268 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 12:40:53 +00:00
Manolo Gouy
39fdbecd16
Finalize new implementation of Fl_Copy_Surface.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 12:36:37 +00:00
Albrecht Schlosser
df94673b61
Fix C++ comment in C header file + typos.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 10:53:25 +00:00
Matthias Melcher
53859c584f
Add support for SDL as a base library on OS X.
...
This commit adds the basic setup in CMake to allow SDL as a base
library for FLTK on OS X (and probably for other platforms as well).
The SDL library driver set is derived from yet another new driver
set named 'Pico'. 'Pico' is a base class for a driver that will
allow porting of FLTK with the tinyest amount of effort. This
implementation of the SDL driver shall be documented very well
to explain the porting process.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11262 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-02 00:54:37 +00:00
Manolo Gouy
a3d54d5d6c
Correct the headers included by FL/Fl_Copy_Surface.H, following the new implementation of this class.
...
This change requires other changes in header inclusions by class Fl_Image_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11258 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-01 18:07:12 +00:00
Manolo Gouy
7decb3d3b2
Rewrite the Fl_Copy_Surface class with strict separation of public API and platform-related code.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11257 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-01 17:20:25 +00:00
Matthias Melcher
95824506fe
Moved timer code to screen drivers. Not sure if this should be in System Drivers instead.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-03-01 00:54:21 +00:00
Albrecht Schlosser
d67e9ccb73
Fix compiler warnings (STR #2988 ) - final commit.
...
This commit includes all fixes from branch-1.3 (svn r 11243) and additional
fixes for warnings that crept in during the porting efforts, particularly
C++ ("//") comments in C and included header files, and some more.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11246 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 17:27:21 +00:00
Manolo Gouy
0b406baa0f
Rewrite all fl_XXX_offscreen() functions so they use an Fl_Image_Surface object.
...
These functions become therefore platform-independent.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11241 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-27 13:52:27 +00:00
Manolo Gouy
81bd759b53
Remove Fl_Printer::driver() that is already implemented in a parent class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11236 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 20:27:41 +00:00
Manolo Gouy
169e422fee
Make the Fl_Widget_Surface's constructor protected.
...
Because this object is not functional in itself, but needs to be subclassed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 17:45:13 +00:00
Manolo Gouy
350cca5446
Use the FL_DOXYGEN preprocessor variable to remove all Doxygen warnings
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11232 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 17:17:20 +00:00
Manolo Gouy
cf4825eedf
Move PostScript-support files to src/drivers/PostScript/
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11222 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 15:24:08 +00:00
Manolo Gouy
53993d4bd1
Add virtual destructor to Fl_Screen_Driver.
...
This is safer because Fl_Screen_Driver has virtual member functions and derived classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11221 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 13:41:48 +00:00
Manolo Gouy
682f950796
Create class Fl_Widget_Surface that supports draw(Fl_Widget *, int, int).
...
This simplifies the implementation of Fl_Copy_Surface and Fl_Image_Surface
which now are made to derive from Fl_Widget_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11220 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 12:51:47 +00:00
Albrecht Schlosser
44f203e275
Fix Linux and Windows compilation error.
...
Note: class Fl_Device has been removed.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11218 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-26 11:13:43 +00:00
Manolo Gouy
7f17b915db
Remove the useless pseudo run-time type information supported by the Fl_Device class.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11217 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-25 17:56:48 +00:00
Manolo Gouy
31793cbdba
Remove the global variable fl_mask_bitmap - put it in the graphics driver's virtual API.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11216 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-25 10:14:28 +00:00
Manolo Gouy
6097c134d8
Avoid static initializers to allow FLTK usage in static initializers.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11213 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-24 08:07:30 +00:00
Manolo Gouy
941c301ceb
Fix Fl_RGB_Image::uncache() and Fl_Bitmap::uncache().
...
It is not possible to use fl_graphics_driver in these functions
because when they are called *fl_graphics_driver may have been
deleted. A solution is to use Fl_Display_Device::display_device()->driver()
instead which is always valid.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11212 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-23 20:37:22 +00:00
Matthias Melcher
90c42cac3e
WinAPI fixes
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11198 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 22:46:00 +00:00
Matthias Melcher
093c0c7f73
Fixes for X11
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11197 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 22:43:40 +00:00
Matthias Melcher
399501783c
Add example code to Fl_Window_Driver.
...
Some refactoring of a take_focus() function into driver structures (not too happy with it, because it has some kind of bug fix. However, shouldn't *all* Fl_Windows always have an FL_Window_Driver?)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11196 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 22:37:41 +00:00
Matthias Melcher
052401a34e
Instantiate the right Fl_Window_Driver.
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11195 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 22:21:02 +00:00
Matthias Melcher
22d302e242
Add System Driver and Window Driver.
...
Adding two new driver types for each platform. Fl_..._System_Drivers exist once per application and provide an interface for to file and filename handling, timers, locking, multithreading, etc. .
The Fl_..._Window_Driver class is instantiated once for every window in the system and corresponds closely to (and actually inherits from) Fl_X. The difference now is, that there is one Fl_X/Fl_Window_Driver base class, and one platform version that derives from it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11193 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 21:41:02 +00:00
Manolo Gouy
1b5e231c90
Rename Fl_Graphics_Driver::set_gc(void*) to gc(void*) and Fl_Graphics_Driver::get_gc() to gc().
...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11191 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2016-02-19 12:40:24 +00:00