Unit avoraiser.printer
Description
Avoraiser UI Framework - High-Performance WinAPI UI for Avocado Avoraiser is a framework for creating modern user interfaces for the Polish programming language Avocado. Copyright (c) 2025-2026 Dymitr Wygowski (Programista Art) Project Created: 23.12.2025
Author: Dymitr Wygowski (Programista Art) Contact: programista.art@gmail.com GitHub: https://github.com/Programista-Art/Avoraiser Version: 1.0 License: Dual-Licensed: Avoraiser Community / Commercial See LICENSE.md for terms and conditions.
Module: avoraiser.printer Description:
Uses
- CommDlg
- Windows
Overview
Functions and Procedures
function get_device_height(DC: HDC): Integer; |
function get_device_width(DC: HDC): Integer; |
procedure printer_begin_doc(h_dc: HDC; const document_name: UnicodeString); |
procedure printer_draw_line(h_dc: HDC; x1, y1, x2, y2: Integer); |
procedure printer_draw_text(h_dc: HDC; x, y: Integer; const text_to_draw: UnicodeString); |
procedure printer_end_doc(h_dc: HDC); |
function printer_export_to_pdf(const file_path: UnicodeString; out h_printer_dc: HDC): Boolean; |
procedure printer_set_font(h_dc: HDC; const font_name: UnicodeString; height_pixels: Integer); |
function printer_show_dialog(h_owner: HWND; out h_printer_dc: HDC): Boolean; |
procedure set_text_align_center(DC: HDC); |
procedure set_text_align_left(DC: HDC); |
Description
Functions and Procedures
function get_device_height(DC: HDC): Integer; |
|
Pobiera fizyczną wysokość płótna (w pikselach) |
function get_device_width(DC: HDC): Integer; |
|
Pobiera fizyczną szerokość płótna (w pikselach) - idealne dla drukarki/PDF |
procedure printer_begin_doc(h_dc: HDC; const document_name: UnicodeString); |
|
Rozpoczyna nowe zadanie drukowania (pojawia się w buforze Windowsa) |
procedure printer_draw_line(h_dc: HDC; x1, y1, x2, y2: Integer); |
|
Rysuje prostą linię na kartce papieru (np. do tabel, oddzielania sekcji) |
procedure printer_draw_text(h_dc: HDC; x, y: Integer; const text_to_draw: UnicodeString); |
|
Rysuje tekst na kartce papieru (współrzędne w pikselach drukarki) |
procedure printer_end_doc(h_dc: HDC); |
|
Kończy zadanie, wypuszcza kartkę z drukarki i zwalnia pamięć |
function printer_export_to_pdf(const file_path: UnicodeString; out h_printer_dc: HDC): Boolean; |
|
Tworzy plik PDF w tle i zwraca gotowy uchwyt (HDC) do rysowania po nim |
procedure printer_set_font(h_dc: HDC; const font_name: UnicodeString; height_pixels: Integer); |
|
This item has no description. |
function printer_show_dialog(h_owner: HWND; out h_printer_dc: HDC): Boolean; |
|
Wywołuje systemowe okno wyboru drukarki i zwraca jej kontekst (HDC) |
procedure set_text_align_center(DC: HDC); |
|
Ustawia wyśrodkowanie tekstu względem podanych współrzędnych X |
procedure set_text_align_left(DC: HDC); |
|
Przywraca standardowe rysowanie tekstu od lewej strony (domyślne) |
Generated by PasDoc 1.0.4.