Commit Graph

190 Commits

Author SHA1 Message Date
dmitry
01c8eef539 cocoa: extend support of CGContextRef (for macOS 10.10 and later). Adding init of context for custom drawn dropdownlist
git-svn-id: trunk@59027 -
2018-09-16 03:27:52 +00:00
dmitry
b0e9ae1b0a cocoa. using Bitmap DC window ofs when rendering bitmaps. #34197. Based on the patch by Luiz Americo for #28689 (carbon)
git-svn-id: trunk@58888 -
2018-09-06 03:37:44 +00:00
dmitry
412d96db9f cocoa: comment out the old code of selecting system font name
git-svn-id: trunk@58531 -
2018-07-15 14:17:10 +00:00
dmitry
0b86f592a2 cocoa: switching back to the use of sysetmFont, to prevent an odd vertical offset. #33626
git-svn-id: trunk@58529 -
2018-07-15 05:15:10 +00:00
ondrej
4bf891d80c Cocoa: revert r56761 #8474c9858e, issue #32175 and #33597
git-svn-id: trunk@57669 -
2018-04-19 09:03:49 +00:00
dmitry
720f44d579 cocoa: supporting the font rotation information from LOGFONT
git-svn-id: trunk@57135 -
2018-01-21 05:53:11 +00:00
dmitry
5c58ede9d0 cocoa: implementation of DesignDC for forms
git-svn-id: trunk@57083 -
2018-01-14 06:14:12 +00:00
dmitry
32000402a9 cocoa: simplified 1 pixel drawn code
git-svn-id: trunk@56926 -
2018-01-02 23:38:16 +00:00
dmitry
6f2b73a083 cocoa: fix the special case for 1 pixel lines drawn. Using the actual line direction to draw a line (the problem is seen, whenever line width is greater than 1) #32926
git-svn-id: trunk@56924 -
2018-01-02 11:36:47 +00:00
dmitry
8416eecb07 cocoa: using RGB as fill color, instead of Generic color space RGB for consistency with stroke colors. #32914
git-svn-id: trunk@56896 -
2018-01-01 00:16:51 +00:00
dmitry
8474c9858e cocoa: converting font pixel-height into point size, used by NSFont. #32175
git-svn-id: trunk@56761 -
2017-12-17 05:30:20 +00:00
dmitry
eda7fd2cd0 cocoa: #32749. invalidating (and discarding) the original non-premultiplied data, if it has been modified by NSBitmapContext in NSImageRep. Changing bitmap handle recreation prior to drawing the bitmap. The change has been tested with samples from #28692 and #28102.
git-svn-id: trunk@56715 -
2017-12-14 06:44:51 +00:00
sekelsenmat
8387b30537 Fixes compilation of lcl-carbon and lcl-cocoa in fpc 2.6
git-svn-id: trunk@55825 -
2017-09-09 09:14:31 +00:00
sekelsenmat
0af5c2d943 cocoa: Patch for scrollby from bug #32363
git-svn-id: trunk@55824 -
2017-09-09 08:46:59 +00:00
dmitry
f712709636 cocoa: support for R2_NOTXORPEN flag in gdi objects
git-svn-id: trunk@55543 -
2017-07-20 01:41:51 +00:00
sekelsenmat
a2fecca799 cocoa: Restricts reloading the NSPanel Browser only for Mac OS X versions that are affected by the Mac bug, while adding an utility function to get the OS version also refactored the two utility units into one
git-svn-id: trunk@55407 -
2017-06-27 20:51:24 +00:00
sekelsenmat
31799a90a0 cocoa: Fixes mem leak, bug #31917
git-svn-id: trunk@55327 -
2017-06-12 08:40:26 +00:00
sekelsenmat
618c809be9 cocoa: Fixes bug #31959: in FontDialog selected bold, result shows none style
git-svn-id: trunk@55326 -
2017-06-12 08:35:37 +00:00
juha
1184822164 LCL: Use a helper function for testing fontname 'default'. Issue #31940, patch from AlexeyT.
git-svn-id: trunk@55188 -
2017-06-03 18:56:34 +00:00
sekelsenmat
9ce286c99d cocoa: Implements TFontDialog
git-svn-id: trunk@55117 -
2017-05-29 04:28:03 +00:00
sekelsenmat
54d2c7c435 cocoa: Patch from bug #30815
git-svn-id: trunk@54393 -
2017-03-12 21:18:18 +00:00
freq
01a2998a5a cocoa: Fix #0031253: Project with TShape component compiled with Cocoa WidgetSet crashes in TCocoaContext.SaveDC.
git-svn-id: trunk@54092 -
2017-02-05 06:48:32 +00:00
freq
b282cf4de5 cocoa: fixes a couple of memory leaks in special with TCocoaBitmap as its Destructor was not called on Free. Pls. review
git-svn-id: trunk@53977 -
2017-01-21 17:05:28 +00:00
sekelsenmat
70ded5e633 cocoa: Patch from bug #30795 Cocoa needs InitStockFont functionality and TCocoaFont.Create needs to clear italics/bold flags
git-svn-id: trunk@53243 -
2016-10-27 19:45:28 +00:00
sekelsenmat
8df1188cc7 cocoa: Patch from bug #30778 fix Textout BG color
git-svn-id: trunk@53241 -
2016-10-27 19:34:24 +00:00
sekelsenmat
4bc99dc88f cocoa: Patch from bug #30754 fix LineTo
git-svn-id: trunk@53240 -
2016-10-27 19:33:13 +00:00
sekelsenmat
3b599d7b94 cocoa: Fix bug #28692, pre-multiply alpha was being applied over the modified data, also fixes the fact that due to the fix #28102 the handle was being recreated too many times without need
git-svn-id: trunk@52765 -
2016-08-01 18:56:36 +00:00
sekelsenmat
3769972b29 cocoa: bug #30300 - Fixes TLabel font issue in Mac OS X 10.11 and superior
git-svn-id: trunk@52563 -
2016-06-22 17:14:11 +00:00
sekelsenmat
e99e9b73b9 cocoa - patch #30125 - support reference counting of objects in cocoa
git-svn-id: trunk@52522 -
2016-06-19 20:15:09 +00:00
sekelsenmat
bec0723351 cocoa: Implements Application.OnDropFiles
git-svn-id: trunk@49727 -
2015-08-29 14:13:02 +00:00
sekelsenmat
cb613168d4 cocoa: Patch #28512
git-svn-id: trunk@49672 -
2015-08-15 06:28:37 +00:00
sekelsenmat
58cbaacbda cocoa: Patch from issue #28509 use cgfloat
git-svn-id: trunk@49632 -
2015-08-10 18:34:09 +00:00
sekelsenmat
31f2f10cc2 Patch from issue #27813
git-svn-id: trunk@49607 -
2015-08-07 06:02:46 +00:00
sekelsenmat
77e8b6e2d1 cocoa: Fixes crash due to ReleaseDC freeing wrongly control DCs
git-svn-id: trunk@49602 -
2015-08-06 06:43:36 +00:00
sekelsenmat
38e7f694c0 cocoa: Basic support for select directory dialog
git-svn-id: trunk@49586 -
2015-08-01 11:32:50 +00:00
sekelsenmat
50c0c51936 Fixes bug #28102: Immutable images need to be recreated after draw
git-svn-id: trunk@49057 -
2015-05-17 05:31:11 +00:00
sekelsenmat
c9dce2ea9a cocoa: Fixes problem with DC state saving for clipping, this fixes bug #28015
git-svn-id: trunk@48917 -
2015-05-02 15:45:49 +00:00
sekelsenmat
11b4b031e8 cocoa: Indentation and comment
git-svn-id: trunk@48915 -
2015-05-02 12:53:38 +00:00
sekelsenmat
f7f65c5305 cocoa: New pen and brush creation methods to support printing
git-svn-id: trunk@48751 -
2015-04-14 06:33:50 +00:00
sekelsenmat
e4c47b66f4 cocoa: Reimplements Frame3D, Mouse-Button instant state and Scrollbar themed size. Integrates CustomDrawn with Cocoa. Now the IDE can link in 64 bits Cocoa
git-svn-id: trunk@48062 -
2015-03-01 11:28:55 +00:00
sekelsenmat
6a30dafffd cocoa: New implementation of TreeView arrow without obsolete HiTheme
git-svn-id: trunk@47978 -
2015-02-24 11:09:59 +00:00
sekelsenmat
3c7f6d63b1 cocoa: Implements GetPixel for Bitmap DCs (for non-bitmap DCs it seams impossible)
git-svn-id: trunk@47823 -
2015-02-16 11:00:08 +00:00
sekelsenmat
f1c6358aeb lcl-cocoa: Fixes TBitBtn.Glyph, the image data was being freed together with the glyph TBitmap
git-svn-id: trunk@46620 -
2014-10-20 06:01:39 +00:00
sekelsenmat
0c23fdc9d4 lcl-cocoa: Fixes regression introduced in 46166: tab in TEdit was inputting char instead of switching to next control; Implements support for TabOrder; Starts fixings TBitBtn.Glyph but this isnt working yet
git-svn-id: trunk@46594 -
2014-10-18 17:50:33 +00:00
sekelsenmat
f838124711 cocoa: Fixes the font size in text drawing, this fixes TLabel with Font.Size>0 and nothing else set
git-svn-id: trunk@46170 -
2014-09-10 14:59:13 +00:00
dmitry
f02f832da7 cocoa: added explicit typecast of TColor to ColorRef to prevent range check error
git-svn-id: trunk@46087 -
2014-08-29 05:44:16 +00:00
sekelsenmat
a89bb6b204 cocoa: Fixes a crash
git-svn-id: trunk@45493 -
2014-06-13 07:33:53 +00:00
sekelsenmat
633131dd11 lcl-cocoa: Minor improvements in debug info for the tab control problem, implements correct height calculation for tabviewitem children
git-svn-id: trunk@44849 -
2014-04-30 10:55:00 +00:00
freq
fae01f23da Cocoa: fix random crash
git-svn-id: trunk@44478 -
2014-03-20 20:06:27 +00:00
freq
f2556a023a Cocoa: Clean up memory leaks and make autorelease pool only local to shrink down memory footprint
git-svn-id: trunk@44352 -
2014-03-05 11:23:47 +00:00
freq
7b11f22871 Cocoa: Fix not working framerect call
git-svn-id: trunk@43958 -
2014-02-08 18:17:20 +00:00
freq
d954549d06 Cocoa: Make MouseMove message distribution independent from focused control (mouse move events on lcl classes now works like in Carbon). Make cursor change on mouse move working.
git-svn-id: trunk@43919 -
2014-02-06 17:00:27 +00:00
freq
50408a84b9 Cocoa: Add background color feature for TWinControls
git-svn-id: trunk@43840 -
2014-01-29 20:05:30 +00:00
freq
4dd58709a9 Cocoa: Add DCSetPixel functionality
git-svn-id: trunk@43753 -
2014-01-17 14:39:46 +00:00
freq
b7b6c05eac Cocoa: Fix transparency bug on TImage
git-svn-id: trunk@43748 -
2014-01-17 08:47:43 +00:00
freq
692c4c1ef3 Cocoa: Fix font size bug
git-svn-id: trunk@43734 -
2014-01-16 17:53:18 +00:00
freq
8bce6066ca Cocoa: Fix #0025526 TLabel Font handling
git-svn-id: trunk@43733 -
2014-01-16 16:23:02 +00:00
freq
012589fe57 Cocoa context has to be set first
git-svn-id: trunk@43593 -
2013-12-25 18:01:02 +00:00
freq
8db86f24e7 Add masking in TCocoaContext.StretchDraw
git-svn-id: trunk@43586 -
2013-12-23 17:08:57 +00:00
paul
6f8d2278a7 cocoa: invert bitmap coordintes
git-svn-id: trunk@43474 -
2013-11-23 09:43:58 +00:00
paul
99e8e0f47f cocoa: fix BitBlt painting, based on patch of accSone, mantis #25336
git-svn-id: trunk@43468 -
2013-11-21 00:21:40 +00:00
paul
e700e2df51 cocoa: commit accSone patch which moves default gdi object creation/destruction to widgetset constructor/destructor. This makes them live inside autorelease pool. (issue #0025321)
git-svn-id: trunk@43457 -
2013-11-18 12:01:51 +00:00
mattias
5508274faf cocoa: fixed compilation x86_64
git-svn-id: trunk@42071 -
2013-07-13 05:58:53 +00:00
mattias
b29ad350b8 lcl: cocoa: fixed rectangle
git-svn-id: trunk@41803 -
2013-06-22 15:08:14 +00:00
paul
da9bdae897 cocoa: fix drawing of empty text
git-svn-id: trunk@41796 -
2013-06-22 12:51:39 +00:00
mattias
21f0a6b04a cocoa: fixed compilation with 2.7.1 and fixed TextOut with empty string
git-svn-id: trunk@41794 -
2013-06-22 12:21:23 +00:00
paul
c48efd29bf cocoa: complete implementation of GetDC, ReleaseDC
git-svn-id: trunk@38955 -
2012-10-03 01:38:32 +00:00
paul
aeba29b745 cocoa: cleanup
git-svn-id: trunk@38938 -
2012-10-01 14:07:07 +00:00
paul
d07bc91aef cocoa: change TCocoaContext constructor to accept graphics context, implement GetDC for currently painting views
git-svn-id: trunk@38932 -
2012-10-01 08:16:01 +00:00
paul
a2bccb587a cocoa: create only bitmaps which can be used for context creation
git-svn-id: trunk@38929 -
2012-10-01 01:58:08 +00:00
paul
6129b92d32 cocoa: fix DrawImageRep (apply property before new context creation), fix memory management in TCocoaTextLayout
git-svn-id: trunk@38883 -
2012-09-28 08:37:22 +00:00
paul
ad804864bd cocoa: move ScreenContext to CocoaGDIObjects, always create it since it is used by any LCL application
git-svn-id: trunk@38880 -
2012-09-28 08:32:38 +00:00
paul
77958ad8a4 cocoa: formatting, cleanup
git-svn-id: trunk@38877 -
2012-09-28 08:23:48 +00:00
paul
aa29f1f739 cocoa: clear strikeout from text layout if font is not striked
git-svn-id: trunk@38859 -
2012-09-27 14:06:04 +00:00
paul
d8d59de96c cocoa: fix various bitmap drawing problems
git-svn-id: trunk@38856 -
2012-09-27 13:27:22 +00:00
paul
05b660c8dc cocoa: cocoa does not support BGR(A) bitmaps
git-svn-id: trunk@38807 -
2012-09-24 09:17:49 +00:00
paul
81f3d70d82 cocoa: implement CreateCompatibleDC and other Bitmap related implementation
git-svn-id: trunk@38795 -
2012-09-22 06:03:24 +00:00
paul
12a20ff9fa cocoa: fix RestoreDCData
git-svn-id: trunk@38778 -
2012-09-21 09:12:22 +00:00
paul
d7554d8ff4 cocoa: port some of carbon changes related to regions, port LPtoDP, LPtoDP
git-svn-id: trunk@38776 -
2012-09-21 07:51:36 +00:00
paul
f38f091b55 cocoa: implement WindowOfs, ViewportOfs
git-svn-id: trunk@38775 -
2012-09-21 07:15:13 +00:00
paul
b2cc551962 cocoa: implement DX argument for ExtTextOut
git-svn-id: trunk@38649 -
2012-09-14 04:35:23 +00:00
paul
38cd52da7d cocoa: fix ETO_OPAQUE, and BkMode OPAQUE meaning in ExtTextOut
git-svn-id: trunk@38641 -
2012-09-13 12:54:25 +00:00
paul
6e6c4d9600 cocoa: fix memory corruption
git-svn-id: trunk@34916 -
2012-01-25 05:01:31 +00:00
paul
10cd03aa72 cocoa: fix text shifting
git-svn-id: trunk@34579 -
2012-01-04 17:30:26 +00:00
paul
6c88a7f8fa cocoa: finish GetStockItem()
git-svn-id: trunk@34491 -
2011-12-29 07:02:45 +00:00
paul
53945a77c0 cocoa: apply font aliasing to context before drawing with it
git-svn-id: trunk@34487 -
2011-12-29 03:42:11 +00:00
paul
d2a0cd5d20 cocoa: add implementation for winapi caret functions
git-svn-id: trunk@34446 -
2011-12-27 07:19:09 +00:00
paul
548a38c43c cocoa: prepare infrastructure for Caret support
git-svn-id: trunk@34445 -
2011-12-27 06:55:27 +00:00
paul
9d71664a66 cocoa: implement GetTextMetrics
git-svn-id: trunk@34443 -
2011-12-27 03:04:16 +00:00
paul
2e63df2d35 cocoa: minor optimizations to pattern creation from NSImage
git-svn-id: trunk@34442 -
2011-12-27 01:24:04 +00:00
paul
33bbf3a144 cocoa: some work on pattern brushes created by NSColor
git-svn-id: trunk@34431 -
2011-12-26 13:27:28 +00:00
paul
e0bf8626c8 cocoa: implement ETO_CLIPPED option in ExtTextOut
git-svn-id: trunk@34421 -
2011-12-26 11:16:40 +00:00
paul
a991d939dd cocoa: apply BkColor without loosing pattern image (if avaiable) if a system color is set
git-svn-id: trunk@34420 -
2011-12-26 07:29:12 +00:00
paul
fa157758f2 cocoa: fix compilation
git-svn-id: trunk@34417 -
2011-12-26 02:57:13 +00:00
paul
e88c7b31b7 cocoa: store NSColor in TCocoaBrush object for GetSysColor/SetSysColor functions
git-svn-id: trunk@34416 -
2011-12-26 02:54:52 +00:00
paul
22b9483947 cocoa: cleanup temporary debug code
git-svn-id: trunk@34392 -
2011-12-24 16:23:38 +00:00
paul
f1976687d0 cocoa: implement GetSysColor for pattern colors like clWindow and clBtnFace
git-svn-id: trunk@34391 -
2011-12-24 16:23:01 +00:00
paul
02a0fa9668 cocoa: protect gdi classes private and protected fields from non desired access from the same unit
git-svn-id: trunk@34390 -
2011-12-24 15:11:38 +00:00
paul
daea252a34 cocoa: implement ETO_OPAQUE flag
git-svn-id: trunk@34388 -
2011-12-24 14:46:36 +00:00
paul
32d6b7cde2 cocoa: improve Font selection
git-svn-id: trunk@34371 -
2011-12-23 07:37:07 +00:00