mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 07:39:26 +02:00
LCL: Add capability lcTransparentWindow for GTK2. Formatting.
git-svn-id: trunk@55929 -
This commit is contained in:
parent
835f1e78f2
commit
12046b3ddb
@ -89,11 +89,8 @@ begin
|
||||
lcFormIcon,
|
||||
lcModalWindow,
|
||||
lcReceivesLMClearCutCopyPasteReliably,
|
||||
lcEmulatedMDI:
|
||||
Result := LCL_CAPABILITY_YES;
|
||||
lcSendsUTF8KeyPress:
|
||||
Result := LCL_CAPABILITY_YES;
|
||||
lcAccessibilitySupport: Result := LCL_CAPABILITY_NO;
|
||||
lcSendsUTF8KeyPress,
|
||||
lcEmulatedMDI: Result := LCL_CAPABILITY_YES;
|
||||
else
|
||||
Result := LCL_CAPABILITY_NO;
|
||||
end;
|
||||
|
@ -259,6 +259,7 @@ type
|
||||
destructor Destroy; override;
|
||||
|
||||
function LCLPlatform: TLCLPlatform; override;
|
||||
function GetLCLCapability(ACapability: TLCLCapability): PtrUInt; override;
|
||||
|
||||
procedure AppInit(var ScreenInfo: TScreenInfo); override;
|
||||
procedure AppBringToFront; override;
|
||||
|
@ -1003,6 +1003,16 @@ begin
|
||||
Result:= lpGtk2;
|
||||
end;
|
||||
|
||||
function TGtk2WidgetSet.GetLCLCapability(ACapability: TLCLCapability): PtrUInt;
|
||||
begin
|
||||
case ACapability of
|
||||
lcTransparentWindow: Result := LCL_CAPABILITY_YES;
|
||||
// ToDo: Set other capabilities.
|
||||
else
|
||||
Result := inherited GetLCLCapability(ACapability);
|
||||
end;
|
||||
end;
|
||||
|
||||
function gdk_screen_get_resolution(screen:PGdkScreen):gdouble; cdecl; external gdklib;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -1283,11 +1283,11 @@ begin
|
||||
lcEmulatedMDI,
|
||||
lcCanDrawOutsideOnPaint: Result := LCL_CAPABILITY_NO;
|
||||
lcDragDockStartOnTitleClick: Result :=
|
||||
{$ifdef MSWINDOWS} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
lcNeedMininimizeAppWithMainForm: Result :=
|
||||
{$ifdef HASX11} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
{when issue #20475 is fixed, then set this to LCL_CAPABILITY_YES}
|
||||
lcReceivesLMClearCutCopyPasteReliably: Result := LCL_CAPABILITY_NO;
|
||||
{$ifdef MSWINDOWS} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
lcNeedMininimizeAppWithMainForm: Result :=
|
||||
{$ifdef HASX11} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
{when issue #20475 is fixed, then set this to LCL_CAPABILITY_YES}
|
||||
lcReceivesLMClearCutCopyPasteReliably: Result := LCL_CAPABILITY_NO;
|
||||
lcRadialGradientBrush: Result := LCL_CAPABILITY_YES;
|
||||
lcTransparentWindow: Result := LCL_CAPABILITY_YES;
|
||||
else
|
||||
|
@ -1205,11 +1205,11 @@ begin
|
||||
lcEmulatedMDI,
|
||||
lcCanDrawOutsideOnPaint: Result := LCL_CAPABILITY_NO;
|
||||
lcDragDockStartOnTitleClick: Result :=
|
||||
{$ifdef MSWINDOWS} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
lcNeedMininimizeAppWithMainForm: Result :=
|
||||
{$ifdef HASX11} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
{when issue #20475 is fixed, then set this to LCL_CAPABILITY_YES}
|
||||
lcReceivesLMClearCutCopyPasteReliably: Result := LCL_CAPABILITY_NO;
|
||||
{$ifdef MSWINDOWS} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
lcNeedMininimizeAppWithMainForm: Result :=
|
||||
{$ifdef HASX11} LCL_CAPABILITY_YES {$else} LCL_CAPABILITY_NO {$endif};
|
||||
{when issue #20475 is fixed, then set this to LCL_CAPABILITY_YES}
|
||||
lcReceivesLMClearCutCopyPasteReliably: Result := LCL_CAPABILITY_NO;
|
||||
lcRadialGradientBrush: Result := LCL_CAPABILITY_YES;
|
||||
lcTransparentWindow: Result := LCL_CAPABILITY_YES;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user