Metadata-Version: 2.4
Name: PaiEngine
Version: 0.0.5
Summary: PaiEngine - UI engine
Home-page: https://github.com/Pai100707/PaiEngine
Author: Pai100707
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: pygame>=2.0.0
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: summary

# how to install

type "pip install PaiEngine" into the cmd
or type "-m pip install PaiEngine"

# how to use

1. create new python script

2. type import PaiEngine in line 1

3. type PaiEngine.init(screen or None, app name)
3.1 PaiEngine.SetBackgroundColor(app name, (color R, color G, color B))
3.2 PaiEngine.SetBackgroundTransparency(app name, Transparency 0 - 255)
3.3 PaiEngine.CreateText(app name, text, x, y, font size or None, color or None)
3.3.1 PaiEngine.SetTextColor(app name, index, (color R, color G, color B))
3.3.2 PaiEngine.SetTextTransparency(app name, index, Transparency 0 - 255)

4. PaiEngine.CreateFrame(app_name, width, height, (Position X, Position Y))
4.1 You can use it like 3.

5. PaiEngine.CreateButton(app name, button name, text, callback or None, font size, (Text color R, Text color G, Text color B), (Background color R, Background color G, Background color B), Text Transparency 0 - 255, Background Transparency 0 - 255)
5.1 PaiEngine.SetButtonPosition(app name, button name, x, y)
5.2 PaiEngine.SetButtonSize(app name, button name, width, height)

6. main loop
6.1 PaiEngine.Draw(app name, screen or None)
6.2 PaiEngine.HandleClick(app name, (Position X, Position Y))
6.3 PaiEngine.GetFrameRect(app name) ← the function is return the value
6.4 PaiEngine.GetSurface(app name) ← the function is return the display
