TTMSFNCGraphicsContextMac Class
macOS-specific graphics context using Core Graphics (Quartz 2D) for canvas drawing operations on macOS targets.
API unit family: TMSFNCGraphics.Mac
Inherits from: TTMSFNCGraphicsContext
Syntax
TTMSFNCGraphicsContextMac = class(TTMSFNCGraphicsContext)
Methods
| Name | Description |
|---|---|
| BeginPrinting | Prepares the context for printing by switching to printer-compatible rendering settings. |
| BeginScene | Begins a drawing scene and returns whether rendering is possible. |
| CalculateText | Calculates the bounding rectangle required to render the given text. |
| ClipPath | Restricts all subsequent drawing operations to the region defined by the given path. |
| ClipRect | Restricts all subsequent drawing operations to the specified rectangle. |
| CreatePath | Creates a new native path object for use with path drawing operations. |
| DrawArc | Draws the outline of an arc segment using the specified stroke style. |
| DrawBitmap | Draws a bitmap image onto the canvas at the specified destination rectangle. |
| DrawEllipse | Draws the outline of an ellipse inscribed within the specified rectangle. |
| DrawFocusPath | Draws a focus indicator along the given path using a dotted or themed focus style. |
| DrawFocusRectangle | Draws a focus indicator rectangle using a dotted or themed focus style. |
| DrawLine | Draws a straight line between two points using the specified stroke style. |
| DrawPath | Draws the outline of a path using the specified stroke style. |
| DrawPolygon | Draws the outline of a polygon using the specified stroke style. |
| DrawPolyline | Draws an open polyline using the specified stroke style. |
| DrawRect | Draws the outline of a rectangle using the specified stroke style. |
| DrawRoundRect | Draws the outline of a rectangle with rounded corners using the specified stroke style. |
| DrawText | Draws a text string within the specified rectangle with the given layout and trimming options. |
| EndPrinting | Finalizes the printing session and restores the context to screen rendering mode. |
| EndScene | Ends the current drawing scene and commits all pending operations. |
| FillArc | Fills an arc segment with the specified fill style. |
| FillEllipse | Fills an ellipse inscribed within the specified rectangle using the given fill style. |
| FillPath | Fills the interior of a path with the specified fill style. |
| FillPolygon | Fills a polygon with the specified fill style. |
| FillPolyline | Fills an open polyline area with the specified fill style. |
| FillRect | Fills a rectangle with the specified fill style. |
| FillRoundRect | Fills a rectangle with rounded corners using the specified fill style. |
| GetFillColor | Returns the current fill color applied to the canvas. |
| GetMatrix | Returns the current transformation matrix applied to the canvas. |
| PathClose | Closes the current open sub-path by connecting the last point back to the first point. |
| PathLineTo | Adds a straight line segment from the current path cursor to the specified point. |
| PathMoveTo | Moves the path cursor to the specified point without drawing a line. |
| PathOpen | Opens an existing path object to prepare it for new segment additions. |
| Render | Flushes pending drawing operations and renders the current frame to the canvas. |
| ResetClip | Removes any active clipping region, restoring the full canvas drawing area. |
| ResetTextAngle | Resets a previously applied text rotation angle. |
| ResetTransform | Resets all active transformation matrices to the identity transform. |
| RestoreState | Restores a previously saved graphics state including transforms, clip, and style settings. |
| RotateTransform | Applies a rotation transformation to the current drawing context. |
| SaveState | Saves the current graphics state into the provided state object. |
| ScaleTransform | Applies a scale transformation to the current drawing context. |
| SetAntiAliasing | Enables or disables anti-aliasing for drawing operations. |
| SetFill | Applies all properties of the given fill descriptor to the canvas fill settings. |
| SetFillColor | Sets the solid fill color for subsequent fill operations. |
| SetFillKind | Sets the fill kind, such as solid, gradient, or bitmap. |
| SetFont | Applies all properties of the given font object to the canvas text settings. |
| SetFontColor | Sets the foreground color used for subsequent text rendering. |
| SetFontName | Sets the font family name for subsequent text rendering. |
| SetFontSize | Sets the font size for subsequent text rendering. |
| SetFontStyles | Sets the font style flags such as bold, italic, or underline. |
| SetMatrix | Replaces the current transformation matrix with the specified matrix. |
| SetScale | Applies a uniform scale factor to the current transformation. |
| SetShowAcceleratorChar | Controls whether keyboard accelerator characters are underlined in drawn text. |
| SetSize | Updates the logical size of the drawing surface. |
| SetStroke | Applies all properties of the given stroke descriptor to the canvas stroke settings. |
| SetStrokeColor | Sets the stroke color for subsequent outline drawing operations. |
| SetStrokeKind | Sets the stroke kind, such as solid, dashed, or dotted. |
| SetStrokeWidth | Sets the stroke width for subsequent outline drawing operations. |
| SetTextAngle | Applies a rotation angle for subsequent text rendering and returns the adjusted rectangle. |
| SetTextQuality | Sets the text rendering quality hint for subsequent text draw calls. |
| StartSpecialPen | Activates a special pen rendering mode used for dashed or styled stroke drawing. |
| StopSpecialPen | Deactivates special pen rendering mode and restores the default stroke style. |
| TranslateTransform | Applies a translation transformation to the current drawing context. |