Metadata-Version: 2.4
Name: castella-skia
Version: 0.1.1
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Rust
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: User Interfaces
Summary: Unified Skia rendering backend for Castella UI framework
Keywords: gui,ui,skia,graphics,cross-platform
Author-email: Yasushi Itoh <i2y@icloud.com>
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://i2y.github.io/castella
Project-URL: Homepage, https://github.com/i2y/castella
Project-URL: Repository, https://github.com/i2y/castella

# castella-skia

Python bindings for castella-skia-core, providing GPU-accelerated 2D rendering for the Castella UI framework.

## Platforms

- **Desktop** (macOS, Linux, Windows) - OpenGL backend
- **iOS** - Metal backend
- **Android** - Vulkan backend (planned)

## Installation

```bash
pip install castella-skia
```

## Usage

```python
import castella_skia

# Create a surface from OpenGL context
surface = castella_skia.Surface.from_gl_context(800, 600)

# Create a painter
painter = castella_skia.SkiaPainter(surface)

# Set style and draw
style = castella_skia.Style(fill_color="#ff0000")
painter.style(style)
painter.fill_rect(10, 10, 100, 50)

# Flush to screen
painter.flush()
surface.flush_and_submit()
```

## License

MIT

