Unit avoraiser.button

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.button Description:

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record GdiplusStartupInput  

Functions and Procedures

function create_button(Parent: HWND; const Text: string; X, Y, Width, Height: Integer): HWND;
function create_image_button(parent_wnd: HWND; const text, image_path: UnicodeString; x, y, width, height: Integer): HWND;
function GdipCreateFromHDC(DC: HDC; out Graphics: Pointer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipDeleteGraphics(Graphics: Pointer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipDisposeImage(Image: Pointer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipDrawImageRectI(Graphics, Image: Pointer; X, Y, Width, Height: Integer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipLoadImageFromFile(FileName: PWideChar; out Image: Pointer): GPStatus; stdcall; external 'gdiplus.dll';
procedure GdiplusShutdown(Token: ULONG_PTR); stdcall; external 'gdiplus.dll';
function GdiplusStartup(out Token: ULONG_PTR; const Input: GdiplusStartupInput; Output: Pointer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipSetInterpolationMode(Graphics: Pointer; Mode: Integer): GPStatus; stdcall; external 'gdiplus.dll';
function GdipSetPixelOffsetMode(Graphics: Pointer; Mode: Integer): Integer; stdcall; external 'gdiplus.dll';
function GdipSetSmoothingMode(Graphics: Pointer; Mode: Integer): Integer; stdcall; external 'gdiplus.dll';
procedure set_button_colors(Handle: HWND; Normal, Hover, Pressed, Text, borderColor: DWORD);
procedure set_button_id(ButtonHandle: HWND; NewID: Integer);
procedure set_button_radius(Handle: HWND; Radius: Integer);
procedure set_on_color_btn(Handle: HWND; Event: TAvocadoColorEvent);
function TransparentBlt(hdcDest: HDC; xoriginDest, yoriginDest, wDest, hDest: Integer; hdcSrc: HDC; xoriginSrc, yoriginSrc, wSrc, hSrc: Integer; crTransparent: UINT): BOOL; stdcall; external 'msimg32.dll' name 'TransparentBlt';

Types

GPStatus = Integer;
TAvocadoClickEvent = procedure(HWnd: HWND); stdcall;

Description

Functions and Procedures

function create_button(Parent: HWND; const Text: string; X, Y, Width, Height: Integer): HWND;

This item has no description.

function create_image_button(parent_wnd: HWND; const text, image_path: UnicodeString; x, y, width, height: Integer): HWND;

This item has no description.

function GdipCreateFromHDC(DC: HDC; out Graphics: Pointer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipDeleteGraphics(Graphics: Pointer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipDisposeImage(Image: Pointer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipDrawImageRectI(Graphics, Image: Pointer; X, Y, Width, Height: Integer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipLoadImageFromFile(FileName: PWideChar; out Image: Pointer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

procedure GdiplusShutdown(Token: ULONG_PTR); stdcall; external 'gdiplus.dll';

This item has no description.

function GdiplusStartup(out Token: ULONG_PTR; const Input: GdiplusStartupInput; Output: Pointer): GPStatus; stdcall; external 'gdiplus.dll';

Importowanie funkcji z gdiplus.dll

function GdipSetInterpolationMode(Graphics: Pointer; Mode: Integer): GPStatus; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipSetPixelOffsetMode(Graphics: Pointer; Mode: Integer): Integer; stdcall; external 'gdiplus.dll';

This item has no description.

function GdipSetSmoothingMode(Graphics: Pointer; Mode: Integer): Integer; stdcall; external 'gdiplus.dll';

procedure set_on_click(HBtn: HWND; Callback: TAvocadoClickEvent); Import funkcji z DLL

procedure set_button_colors(Handle: HWND; Normal, Hover, Pressed, Text, borderColor: DWORD);

This item has no description.

procedure set_button_id(ButtonHandle: HWND; NewID: Integer);

This item has no description.

procedure set_button_radius(Handle: HWND; Radius: Integer);

This item has no description.

procedure set_on_color_btn(Handle: HWND; Event: TAvocadoColorEvent);

This item has no description.

function TransparentBlt(hdcDest: HDC; xoriginDest, yoriginDest, wDest, hDest: Integer; hdcSrc: HDC; xoriginSrc, yoriginSrc, wSrc, hSrc: Integer; crTransparent: UINT): BOOL; stdcall; external 'msimg32.dll' name 'TransparentBlt';

This item has no description.

Types

GPStatus = Integer;

Podstawowe typy danych GDI+

TAvocadoClickEvent = procedure(HWnd: HWND); stdcall;

Usunąłem avoraiser.events, bo przenosimy wszystko do core/window


Generated by PasDoc 1.0.4.