~ubuntu-branches/ubuntu/saucy/lazarus/saucy

« back to all changes in this revision

Viewing changes to lcl/interfaces/gtk2/gtk2winapih.inc

  • Committer: Package Import Robot
  • Author(s): Paul Gevers, Abou Al Montacir, Bart Martens, Paul Gevers
  • Date: 2013-06-08 14:12:17 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20130608141217-7k0cy9id8ifcnutc
Tags: 1.0.8+dfsg-1
[ Abou Al Montacir ]
* New upstream major release and multiple maintenace release offering many
  fixes and new features marking a new milestone for the Lazarus development
  and its stability level.
  - The detailed list of changes can be found here:
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch
* LCL changes:
  - LCL is now a normal package.
      + Platform independent parts of the LCL are now in the package LCLBase
      + LCL is automatically recompiled when switching the target platform,
        unless pre-compiled binaries for this target are already installed.
      + No impact on existing projects.
      + Linker options needed by LCL are no more added to projects that do
        not use the LCL package.
  - Minor changes in LCL basic classes behaviour
      + TCustomForm.Create raises an exception if a form resource is not
        found.
      + TNotebook and TPage: a new implementation of these classes was added.
      + TDBNavigator: It is now possible to have focusable buttons by setting
        Options = [navFocusableButtons] and TabStop = True, useful for
        accessibility and for devices with neither mouse nor touch screen.
      + Names of TControlBorderSpacing.GetSideSpace and GetSpace were swapped
        and are now consistent. GetSideSpace = Around + GetSpace.
      + TForm.WindowState=wsFullscreen was added
      + TCanvas.TextFitInfo was added to calculate how many characters will
        fit into a specified Width. Useful for word-wrapping calculations.
      + TControl.GetColorResolvingParent and
        TControl.GetRGBColorResolvingParent were added, simplifying the work
        to obtain the final color of the control while resolving clDefault
        and the ParentColor.
      + LCLIntf.GetTextExtentExPoint now has a good default implementation
        which works in any platform not providing a specific implementation.
        However, Widgetset specific implementation is better, when available.
      + TTabControl was reorganized. Now it has the correct class hierarchy
        and inherits from TCustomTabControl as it should.
  - New unit in the LCL:
      + lazdialogs.pas: adds non-native versions of various native dialogs,
        for example TLazOpenDialog, TLazSaveDialog, TLazSelectDirectoryDialog.
        It is used by widgetsets which either do not have a native dialog, or
        do not wish to use it because it is limited. These dialogs can also be
        used by user applications directly.
      + lazdeviceapis.pas: offers an interface to more hardware devices such
        as the accelerometer, GPS, etc. See LazDeviceAPIs
      + lazcanvas.pas: provides a TFPImageCanvas descendent implementing
        drawing in a LCL-compatible way, but 100% in Pascal.
      + lazregions.pas. LazRegions is a wholly Pascal implementation of
        regions for canvas clipping, event clipping, finding in which control
        of a region tree one an event should reach, for drawing polygons, etc.
      + customdrawncontrols.pas, customdrawndrawers.pas,
        customdrawn_common.pas, customdrawn_android.pas and
        customdrawn_winxp.pas: are the Lazarus Custom Drawn Controls -controls
        which imitate the standard LCL ones, but with the difference that they
        are non-native and support skinning.
  - New APIs added to the LCL to improve support of accessibility software
    such as screen readers.
* IDE changes:
  - Many improvments.
  - The detailed list of changes can be found here:
    http://wiki.lazarus.freepascal.org/New_IDE_features_since#v1.0_.282012-08-29.29
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes#IDE_Changes
* Debugger / Editor changes:
  - Added pascal sources and breakpoints to the disassembler
  - Added threads dialog.
* Components changes:
  - TAChart: many fixes and new features
  - CodeTool: support Delphi style generics and new syntax extensions.
  - AggPas: removed to honor free licencing. (Closes: Bug#708695)
[Bart Martens]
* New debian/watch file fixing issues with upstream RC release.
[Abou Al Montacir]
* Avoid changing files in .pc hidden directory, these are used by quilt for
  internal purpose and could lead to surprises during build.
[Paul Gevers]
* Updated get-orig-source target and it compinion script orig-tar.sh so that they
  repack the source file, allowing bug 708695 to be fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{%MainUnit gtk2int.pas}
2
 
{ $Id: gtk2winapih.inc 35769 2012-03-06 14:50:15Z vincents $ }
3
2
 
4
3
// included by gtk2int.pp
5
4
 
40
39
function BeginPaint(Handle: hWnd; Var PS : TPaintStruct) : hdc; override;
41
40
function BitBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc: Integer; Rop: DWORD): Boolean; override;
42
41
 
43
 
function CallNextHookEx(hHk: HHOOK; ncode : Integer; wParam: WParam; lParam : LParam) : Integer; override;
44
 
function CallWindowProc(lpPrevWndFunc : TFarProc; Handle : HWND; Msg : UINT; wParam: WParam; lParam : lParam) : Integer; override;
 
42
function CallNextHookEx({%H-}hHk: HHOOK; {%H-}ncode : Integer; {%H-}wParam: WParam; {%H-}lParam : LParam) : Integer; override;
 
43
function CallWindowProc({%H-}lpPrevWndFunc : TFarProc; Handle : HWND; Msg : UINT; wParam: WParam; lParam : lParam) : Integer; override;
45
44
function ClientToScreen(Handle : HWND; var P : TPoint) : Boolean;override;
46
45
 
47
46
// clipboard
61
60
function CreateBrushIndirect(const LogBrush: TLogBrush): HBRUSH; override;
62
61
function CreateCaret(Handle : HWND; Bitmap : hBitmap; width, Height : Integer) : Boolean; override;
63
62
function CreateCompatibleBitmap(DC: HDC; Width, Height: Integer): HBITMAP; override;
64
 
function CreateCompatibleDC(DC: HDC): HDC; override;
 
63
function CreateCompatibleDC({%H-}DC: HDC): HDC; override;
 
64
function CreateEllipticRgn(X1, Y1, X2, Y2: Integer): HRGN; override;
65
65
function CreateFontIndirect(const LogFont: TLogFont): HFONT; override;
66
66
function CreateFontIndirectEx(const LogFont: TLogFont; const LongFontName: string): HFONT; override;
67
67
function CreateIconIndirect(IconInfo: PIconInfo): HICON; override;
69
69
function CreatePenIndirect(const LogPen: TLogPen): HPEN; override;
70
70
function CreatePolygonRgn(Points: PPoint; NumPts: Integer; FillMode: integer): HRGN; override;
71
71
function CreateRectRgn(X1,Y1,X2,Y2 : Integer): HRGN; override;
 
72
function CreateRoundRectRgn(X1, Y1, X2, Y2, nWidthEllipse, nHeightEllipse: Integer): HRGN; override;
72
73
 
73
74
procedure DeleteCriticalSection(var CritSection: TCriticalSection); override;
74
75
function DeleteDC(hDC: HDC): Boolean; override;
83
84
function DrawText(DC: HDC; Str: PChar; Count: Integer; var Rect: TRect; Flags: Cardinal): Integer; override;
84
85
 
85
86
function Ellipse(DC: HDC; x1,y1,x2,y2: Integer): Boolean; override;
86
 
function EnableScrollBar(Wnd: HWND; wSBflags, wArrows: Cardinal): Boolean; override;
 
87
function EnableScrollBar({%H-}Wnd: HWND; {%H-}wSBflags, {%H-}wArrows: Cardinal): Boolean; override;
87
88
function EnableWindow(hWnd: HWND; bEnable: Boolean): Boolean; override;
88
89
function EndPaint(Handle : hwnd; var PS : TPaintStruct): Integer; override;
89
90
procedure EnterCriticalSection(var CritSection: TCriticalSection); override;
90
 
function EnumDisplayMonitors(hdc: HDC; lprcClip: PRect; lpfnEnum: MonitorEnumProc; dwData: LPARAM): LongBool; override;
 
91
function EnumDisplayMonitors({%H-}hdc: HDC; {%H-}lprcClip: PRect; lpfnEnum: MonitorEnumProc; dwData: LPARAM): LongBool; override;
 
92
{$IFDEF GTK2OLDENUMFONTFAMILIES}
91
93
function EnumFontFamilies(DC: HDC; Family: Pchar; EnumFontFamProc: FontEnumProc; LParam:Lparam):longint; override;
92
 
function EnumFontFamiliesEx(DC: HDC; lpLogFont: PLogFont; Callback: FontEnumExProc; Lparam: LParam; Flags: dword): longint; override;
 
94
{$ENDIF}
 
95
function EnumFontFamiliesEx({%H-}DC: HDC; lpLogFont: PLogFont; Callback: FontEnumExProc; Lparam: LParam; {%H-}Flags: dword): longint; override;
93
96
function ExcludeClipRect(dc: hdc; Left, Top, Right, Bottom : Integer) : Integer; override;
94
97
function ExtCreatePen(dwPenStyle, dwWidth: DWord; const lplb: TLogBrush; dwStyleCount: DWord; lpStyle: PDWord): HPEN; override;
95
98
function ExtSelectClipRGN(dc: hdc; rgn : hrgn; Mode : Longint) : Integer;  override;
96
99
function ExtTextOut(DC: HDC; X, Y: Integer; Options: Longint; Rect: PRect; Str: PChar; Count: Longint; Dx: PInteger): Boolean;  override;
97
100
 
98
101
function FillRect(DC: HDC; const Rect: TRect; Brush: HBRUSH): Boolean; override;
99
 
function Frame(DC: HDC; const ARect: TRect): Integer; override;
100
102
function Frame3d(DC: HDC; var ARect: TRect; const FrameWidth : integer; const Style : TBevelCut): Boolean; override;
101
103
function FrameRect(DC: HDC; const ARect: TRect; hBr: HBRUSH): Integer; override;
102
104
 
108
110
function GetCapture: HWND; override;
109
111
function GetCaretPos(var lpPoint: TPoint): Boolean; override;
110
112
function GetCaretRespondToFocus(handle: HWND; var ShowHideOnFocus: boolean): Boolean; override;
111
 
function GetCharABCWidths(DC: HDC; p2, p3: UINT; const ABCStructs): Boolean; override;
 
113
function GetCharABCWidths({%H-}DC: HDC; {%H-}p2, {%H-}p3: UINT; const {%H-}ABCStructs): Boolean; override;
112
114
function GetClientBounds(handle : HWND; var ARect : TRect) : Boolean; override;
113
115
function GetClientRect(handle : HWND; var ARect : TRect) : Boolean; override;
114
116
function GetClipBox(DC : hDC; lpRect : PRect) : Longint; override;
141
143
function GetSysColorBrush(nIndex: Integer): HBrush; override;
142
144
function GetSystemMetrics(nIndex: Integer): Integer;  override;
143
145
function GetTextColor(DC: HDC) : TColorRef; override;
144
 
function GetTextExtentExPoint(DC: HDC; Str: PChar; Count, MaxWidth: Integer; MaxCount, PartialWidths: PInteger; var Size: TSize): Boolean; override;
145
146
function GetTextExtentPoint(DC: HDC; Str: PChar; Count: Integer; var Size: TSize): Boolean; override;
146
147
function GetTextMetrics(DC: HDC; var TM: TTextMetric): Boolean;  override;
147
148
function GetViewPortExtEx(DC: HDC; Size: PSize): Integer; override;
152
153
function GetWindowRect(Handle : hwnd; var ARect: TRect): Integer; override;
153
154
function GetWindowRelativePosition(Handle : hwnd; var Left, Top: integer): boolean; override;
154
155
function GetWindowSize(Handle : hwnd; var Width, Height: integer): boolean; override;
155
 
function GradientFill(DC: HDC; Vertices: PTriVertex; NumVertices : Longint;
156
 
  Meshes: Pointer; NumMeshes : Longint; Mode : Longint): Boolean; override;
157
156
 
158
157
procedure InitializeCriticalSection(var CritSection: TCriticalSection); override;
159
 
function IntersectClipRect(dc: hdc; Left, Top, Right, Bottom: Integer): Integer; override;
160
158
function InvalidateRect(aHandle : HWND; Rect : pRect; bErase : Boolean) : Boolean; override;
161
159
function IsIconic(handle: HWND): boolean; override;
162
160
function IsWindow(handle: HWND): boolean; override;
168
166
function LineTo(DC: HDC; X, Y: Integer): Boolean; override;
169
167
function LPtoDP(DC: HDC; var Points; Count: Integer): BOOL; override;
170
168
 
171
 
function MessageBox(hWnd: HWND; lpText, lpCaption: PChar; uType: Cardinal): integer; override;
 
169
function MessageBox({%H-}hWnd: HWND; lpText, lpCaption: PChar; uType: Cardinal): integer; override;
172
170
function MoveToEx(DC: HDC; X, Y: Integer; OldPoint: PPoint): Boolean; override;
173
 
function MoveWindowOrgEx(DC: HDC; dX, dY: Integer): Boolean; override;
174
 
 
175
 
function PeekMessage(var lpMsg : TMsg; Handle : HWND; wMsgFilterMin, wMsgFilterMax,wRemoveMsg : UINT): Boolean; override;
 
171
 
 
172
function OffsetRgn(RGN: HRGN; nXOffset, nYOffset: Integer): Integer; override;
 
173
 
 
174
function PeekMessage(var lpMsg : TMsg; {%H-}Handle : HWND; {%H-}wMsgFilterMin, {%H-}wMsgFilterMax,wRemoveMsg : UINT): Boolean; override;
176
175
function PolyBezier(DC: HDC; Points: PPoint; NumPts: Integer; Filled, Continuous: boolean): boolean; override;
177
176
function Polygon(DC: HDC; Points: PPoint; NumPts: Integer; Winding: boolean): boolean; override;
178
177
function Polyline(DC: HDC; Points: PPoint; NumPts: Integer): boolean; override;
185
184
function RectVisible(dc : hdc; const ARect: TRect) : Boolean; override;
186
185
function RegroupMenuItem(hndMenu: HMENU; GroupIndex: integer): Boolean; override;
187
186
function ReleaseCapture : Boolean; override;
188
 
function ReleaseDC(hWnd: HWND; DC: HDC): Integer; override;
 
187
function ReleaseDC({%H-}hWnd: HWND; DC: HDC): Integer; override;
189
188
function RemoveProp(Handle: hwnd; Str: PChar): THandle; override;
190
189
function RestoreDC(DC: HDC; SavedDC: Integer): Boolean; override;
191
190
function RoundRect(DC : hDC; X1, Y1, X2, Y2: Integer; RX,RY : Integer): Boolean;  override;
192
191
 
193
192
function SaveDC(DC: HDC): Integer; override;
194
193
function ScreenToClient(Handle : HWND; var P : TPoint) : Integer; override;
195
 
function ScrollWindowEx(hWnd: HWND; dx, dy: Integer; prcScroll, prcClip: PRect; hrgnUpdate: HRGN; prcUpdate: PRect; flags: UINT): Boolean; override;
196
 
function SelectClipRGN(DC : hDC; RGN : HRGN) : Longint; override;
 
194
function ScrollWindowEx(hWnd: HWND; dx, dy: Integer; prcScroll, prcClip: PRect; {%H-}hrgnUpdate: HRGN; prcUpdate: PRect; flags: UINT): Boolean; override;
 
195
function SelectClipRGN(DC: hDC; RGN: HRGN): Longint; override;
197
196
function SelectObject(DC: HDC; GDIObj: HGDIOBJ): HGDIOBJ;  override;
198
 
function SelectPalette(DC: HDC; Palette: HPALETTE; ForceBackground: Boolean): HPALETTE; override;
 
197
function SelectPalette({%H-}DC: HDC; {%H-}Palette: HPALETTE; {%H-}ForceBackground: Boolean): HPALETTE; override;
199
198
function SendMessage(HandleWnd: HWND; Msg: Cardinal; wParam: WParam; lParam: LParam): LResult; override;
200
199
function SetActiveWindow(Handle: HWND): HWND; override;
201
200
function SetBkColor(DC: HDC; Color: TColorRef): TColorRef; override;
214
213
function SetROP2(DC: HDC; Mode: Integer): Integer; override;
215
214
function SetScrollInfo(Handle : HWND; SBStyle : Integer; ScrollInfo: TScrollInfo; bRedraw : Boolean): Integer; override;
216
215
function SetSysColors(cElements: Integer; const lpaElements; const lpaRgbValues): Boolean; override;
217
 
function SetTextCharacterExtra(DC : hdc; nCharExtra : Integer):Integer; override;
 
216
function SetTextCharacterExtra({%H-}DC : hdc; {%H-}nCharExtra : Integer):Integer; override;
218
217
function SetTextColor(DC: HDC; Color: TColorRef): TColorRef; override;
219
218
function SetViewPortExtEx(DC: HDC; XExtent, YExtent : Integer; OldSize: PSize): Boolean; override;
220
219
function SetViewPortOrgEx(DC: HDC; NewX, NewY: Integer; OldPoint: PPoint): Boolean; override;
229
228
function ShowWindow(hWnd: HWND; nCmdShow: Integer): Boolean; override;
230
229
function StretchBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; ROp: Cardinal): Boolean; override;
231
230
function StretchMaskBlt(DestDC: HDC; X, Y, Width, Height: Integer; SrcDC: HDC; XSrc, YSrc, SrcWidth, SrcHeight: Integer; Mask: HBITMAP; XMask, YMask: Integer; Rop: DWORD): Boolean; override;
 
231
function SystemParametersInfo(uiAction: DWord; {%H-}uiParam: DWord; pvParam: Pointer; {%H-}fWinIni: DWord): LongBool; override;
232
232
 
233
233
function TextOut(DC: HDC; X,Y : Integer; Str : Pchar; Count: Integer) : Boolean; override;
234
234