mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 05:39:24 +02:00
+ More winapi functions.
git-svn-id: trunk@11515 -
This commit is contained in:
parent
1ee2b6963e
commit
a128a87d2f
@ -30,6 +30,42 @@
|
||||
|
||||
//##apiwiz##sps## // Do not remove, no wizard declaration before this line
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: Arc
|
||||
Params: DC: HDC; Left,Top,Right,Bottom,angle1,angle2 : Integer
|
||||
Returns: Boolean
|
||||
------------------------------------------------------------------------------}
|
||||
function TQtWidgetSet.Arc(DC: HDC; Left,Top,Right,Bottom,angle1,angle2 : Integer): Boolean;
|
||||
var
|
||||
ADC : TQtDeviceContext;
|
||||
begin
|
||||
{$ifdef VerboseQtWinAPI}
|
||||
WriteLn('[WinAPI Arc] DC: ', dbghex(DC));
|
||||
{$endif}
|
||||
Result := IsValidDC(DC);
|
||||
if Result
|
||||
then
|
||||
QPainter_drawArc(TQtDeviceContext(DC).Widget, Left, Top, Right, Bottom, Angle1, Angle2);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: AngleChord
|
||||
Params: DC: HDC; x1, y1, x2, y2, angle1, angle2: Integer
|
||||
Returns: Boolean
|
||||
------------------------------------------------------------------------------}
|
||||
function TQtWidgetSet.AngleChord(DC: HDC; x1, y1, x2, y2, angle1, angle2: Integer): Boolean;
|
||||
var
|
||||
ADC : TQtDeviceContext;
|
||||
begin
|
||||
{$ifdef VerboseQtWinAPI}
|
||||
WriteLn('[WinAPI AngleChord] DC: ', dbghex(DC));
|
||||
{$endif}
|
||||
Result := IsValidDC(DC);
|
||||
if Result
|
||||
then
|
||||
QPainter_drawChord(TQtDeviceContext(DC).Widget, x1, y1, x2, y2, Angle1, Angle2);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Function: BeginPaint
|
||||
Params:
|
||||
|
@ -27,6 +27,9 @@
|
||||
|
||||
//##apiwiz##sps## // Do not remove, no wizard declaration before this line
|
||||
|
||||
function Arc(DC: HDC; Left,Top,Right,Bottom,angle1,angle2 : Integer): Boolean; override;
|
||||
function AngleChord(DC: HDC; x1, y1, x2, y2, angle1, angle2: Integer): Boolean; override;
|
||||
|
||||
function BeginPaint(Handle: hWnd; Var PS : TPaintStruct) : hdc; override;
|
||||
|
||||
function ClientToScreen(Handle: HWND; var P: TPoint) : Boolean; override;
|
||||
|
Loading…
Reference in New Issue
Block a user