mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 19:59:26 +02:00
MG: gradient fill, minor issues from Andrew
git-svn-id: trunk@2294 -
This commit is contained in:
parent
83e3e2c922
commit
2b38b21c45
@ -36,7 +36,7 @@ uses
|
|||||||
gtk, gdk, LCLLinux, LCLType, VclGlobals, Classes, LCLMemManager;
|
gtk, gdk, LCLLinux, LCLType, VclGlobals, Classes, LCLMemManager;
|
||||||
|
|
||||||
type
|
type
|
||||||
TGDIType = (gdiBitmap, gdiBrush, gdiFont, gdiPen, gdiRegion);
|
TGDIType = (gdiBitmap, gdiBrush, gdiFont, gdiPen, gdiRegion, gdiPalette);
|
||||||
TGDIBitmapType = (gbBitmap, gbPixmap, gbImage);
|
TGDIBitmapType = (gbBitmap, gbPixmap, gbImage);
|
||||||
|
|
||||||
PGDIRGB = ^TGDIRGB;
|
PGDIRGB = ^TGDIRGB;
|
||||||
@ -85,6 +85,25 @@ type
|
|||||||
gdiRegion: (
|
gdiRegion: (
|
||||||
GDIRegionObject: PGdkRegion;
|
GDIRegionObject: PGdkRegion;
|
||||||
);
|
);
|
||||||
|
gdiPalette: (
|
||||||
|
//Has it been added to the system palette?
|
||||||
|
Realized : Boolean;
|
||||||
|
|
||||||
|
//Type of visual expected
|
||||||
|
VisualType : TGdkVisualType;
|
||||||
|
|
||||||
|
//Actual visual created
|
||||||
|
PalleteVisual : PGDKVisual;
|
||||||
|
|
||||||
|
//Colormap for mapping colors
|
||||||
|
PalleteColormap : PGDKColormap;
|
||||||
|
|
||||||
|
//For use when VisualType <> PalleteVisual^.Type
|
||||||
|
RGBEntries : Array[0..0] of Longint;
|
||||||
|
|
||||||
|
//For mapping from Index to Colormap Pixel
|
||||||
|
PixelEntries : Array[0..0] of Longint;
|
||||||
|
);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -328,6 +347,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.18 2002/09/12 05:56:15 lazarus
|
||||||
|
MG: gradient fill, minor issues from Andrew
|
||||||
|
|
||||||
Revision 1.17 2002/09/10 06:49:20 lazarus
|
Revision 1.17 2002/09/10 06:49:20 lazarus
|
||||||
MG: scrollingwincontrol from Andrew
|
MG: scrollingwincontrol from Andrew
|
||||||
|
|
||||||
|
@ -84,6 +84,7 @@ Function GetClipBox(DC : hDC; lpRect : PRect) : Longint; override;
|
|||||||
Function GetClipRGN(DC : hDC; RGN : hRGN) : Longint; override;
|
Function GetClipRGN(DC : hDC; RGN : hRGN) : Longint; override;
|
||||||
Function GetCmdLineParamDescForInterface: string; override;
|
Function GetCmdLineParamDescForInterface: string; override;
|
||||||
function GetDC(hWnd: HWND): HDC; override;
|
function GetDC(hWnd: HWND): HDC; override;
|
||||||
|
function GetDeviceCaps(DC: HDC; Index: Integer): Integer; Override;
|
||||||
function GetDIBits(DC: HDC; Bitmap: HBitmap; StartScan, NumScans: UINT; Bits: Pointer; var BitInfo: BitmapInfo; Usage: UINT): Integer; Override;
|
function GetDIBits(DC: HDC; Bitmap: HBitmap; StartScan, NumScans: UINT; Bits: Pointer; var BitInfo: BitmapInfo; Usage: UINT): Integer; Override;
|
||||||
function GetBitmapBits(Bitmap: HBITMAP; Count: Longint; Bits: Pointer): Longint; Override;
|
function GetBitmapBits(Bitmap: HBITMAP; Count: Longint; Bits: Pointer): Longint; Override;
|
||||||
function GetFocus: HWND; override;
|
function GetFocus: HWND; override;
|
||||||
@ -103,6 +104,9 @@ Function GetWindowOrgEx(dc : hdc; var P: TPoint): Integer; override;
|
|||||||
Function GetWindowRect(Handle : hwnd; var ARect: TRect): Integer; override;
|
Function GetWindowRect(Handle : hwnd; var ARect: TRect): Integer; override;
|
||||||
Function GetWindowSize(Handle : hwnd; var Width, Height: integer): boolean; override;
|
Function GetWindowSize(Handle : hwnd; var Width, Height: integer): boolean; override;
|
||||||
|
|
||||||
|
function GradientFill(DC: HDC; Vertices: PTriVertex; NumVertices : Longint;
|
||||||
|
Meshes: Pointer; NumMeshes : Longint; Mode : Longint): Boolean; Override;
|
||||||
|
|
||||||
function HideCaret(hWnd: HWND): Boolean; override;
|
function HideCaret(hWnd: HWND): Boolean; override;
|
||||||
|
|
||||||
function IntersectClipRect(dc: hdc; Left, Top, Right, Bottom: Integer): Integer; override;
|
function IntersectClipRect(dc: hdc; Left, Top, Right, Bottom: Integer): Integer; override;
|
||||||
@ -182,6 +186,9 @@ Procedure DeleteCriticalSection(var CritSection: TCriticalSection); Override;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.46 2002/09/12 05:56:17 lazarus
|
||||||
|
MG: gradient fill, minor issues from Andrew
|
||||||
|
|
||||||
Revision 1.45 2002/09/10 06:49:24 lazarus
|
Revision 1.45 2002/09/10 06:49:24 lazarus
|
||||||
MG: scrollingwincontrol from Andrew
|
MG: scrollingwincontrol from Andrew
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user