Metadata-Version: 2.4
Name: uui-cuil
Version: 0.1.1
Summary: A lightweight frameless UI framework for Python via ctypes and Win32 API
Author-email: timixess <timofejosa@gmail.com>
Project-URL: Homepage, https://github.com/zcveo5/uui-cuil
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Requires-Python: >=3.8
Description-Content-Type: text/markdown

uui/cuil is a custom lightweight UI library written in Python using only ctypes. It provides direct interaction with the Windows API without heavy dependencies.

**PULL REQUESTS ARE WELCOME!**

## installation

```
pip install uui-cuil
```
zero dependencies

## Features

* **Lightweight & Fast:** Zero external dependencies, pure Python + ctypes.
* **Frameless Window Support:** Modern borderless windows while keeping native Windows 11 animations, resizing, and shadows.
* **Per-pixel Scroll:** Built-in smooth, pixel-perfect scrolling system.
* **Customizable Render System:** Uses native `gdi32` out of the box, with full support for plugging in your own rendering backend (GDI+, Direct2D, etc.).
* **Low-level Control:** Direct access to `WND_PROCs` and low-level Win32 messages like `WM_MOUSEWHEEL` or `WM_LBUTTONDOWN`.
* **Flexible Event Binding:** Powerful binding system with parsed or raw `wParam` / `lParam` event data exposed directly to your code.

## limitations:
- only windows support

## Examples:
### Hello world window
```py
import uui

root = uui.Window('Hello World') # Create window with title "Hello World"

uui.Label(root,              # Parent (window or another widget)
          'Hello World!',    # Text
          0x000,             # Color like #ffffff but 0xffffff
          place_type='pack'  # Place type 
          )

root.start()
```
