VCL Aqua Port .fr

1.6 Bitmap (read/write, support masks). copyArea. drawBitmap. drawMask. getBitmap. 1.7 Invert. 1.8 Font/text handling. Font Selection - ongoing. Text Layout ...
100KB taille 9 téléchargements 286 vues
VCL Aqua Port Functional Groups And Corresponding Methods

Contents 1 Graphics primitives................................................................................................... .............................1 1.1 Pixel (read/write)........................................................................................................ ....................1 1.2 Line............................................................................................................................ .....................1 1.3 Rectangle............................................................................................................ ............................1 1.4 Polygon........................................................................................................................ ...................1 1.5 Beziers............................................................................................................................................. 1 1.6 Bitmap (read/write, support masks).......................................................................... .....................1 1.7 Font/text handling.................................................................................................................. .........1 1.8 Native Widget Rendering................................................................................................ ...............2 2 Graphics functionality (SalGraphics)................................................................................................ .....2 2.1 Graphics context............................................................................................................ .................2 2.2 Clipping.............................................................................................................. ............................2 2.3 Colors (line/fill).......................................................................................................... ....................2 2.4 Drawing modes (XOR, ROP).................................................................................................... .....2 3 Virtual devices (SalVirtualDevice)....................................................................................... .................2 4 Event loop (SalInstance)........................................................................................... .............................2 5 Window handling (SalFrame)............................................................................................. ...................2 6 Printing (SalPrinter/SalInfoPrinter)........................................................................... ............................3 7 Menu (SalMenu)............................................................................................................................. ........3

1 Graphics primitives Interface

Class

Header

SalGraphics

inc/salgraphics.hxx

Implementation AquaSalGraphics

1.1 Pixel (read/write) void drawPixel(x, y) - ok void drawPixel(x, y, color) - ok SalColor getPixel(x, y)

1.2 Line void drawLine(x1, y1, x2, y2) - ok

1.3 Rectangle void drawRect(x, y, width, height) - ok

1.4 Polygon void drawPolyLine(nPoints, ) void drawPolygon()

aqua/inc/salgdi.h

Source

aqua/source/gdi/salgdi.cxx

void drawPolyPolygon()

1.5 Beziers 1.6 Bitmap (read/write, support masks) copyArea drawBitmap drawMask getBitmap

1.7 Invert 1.8 Font/text handling Font Selection - ongoing Text Layout (ATSUI) – ongoing GetFontMetric GetKernPairs GetGlyphBoundRect GetGlyphOutline

1.9 Native Widget Rendering

2 Graphics functionality (SalGraphics) 2.1 Graphics context – –

maintain state optimize Begin/EndGraphics – ok, except drawing modes are not supported yet

2.2 Clipping ok

2.3 Colors (line/fill) ok

2.4 Drawing modes (XOR, ROP) 2.5 Get Device Resolution/Bitcount void AquaSalGraphics::GetResolution( long& rDPIX, long& rDPIY ) USHORT AquaSalGraphics::GetBitCount()

3 Virtual devices (SalVirtualDevice) –

bitblt

4 Event loop (SalInstance) – –

threading support (yield mutex) - ok timer - ok

5 Window handling (SalFrame) –

– –





– –

– – –

window creation – application windows - ok – dialogs - ? – floating windows - ok window set size/position - ok window display – show/hide – totop – activate – enable/disable – fullscreen - ok – window state resources – mouse pointer – icons keyboard – key names – input language system integration (read settings: colors, fonts, etc.) - AquaSalFrame::UpdateSettings() notifications – focus change – window activation – window closing – window paint - ok – window resize - ok – window move – mouse enter/leave – mouse – move – drag – buttons - ok – wheel – key input – input language change – input context/extended key input (IME) – system settings change – user events – menu messages - ongoing reparent system child windows (SalObject) screen

– –

size multi monitor

6 Printing (SalPrinter/SalInfoPrinter) – – – –

printer list/default printer device capabilities start/end pages and print jobs print dialog

7 Menu (SalMenu) – –

Activation - ongoing items - ongoing – states – accelerators – submenus