Doodle

A pure Kotlin, UI framework for the Web

Лицензия

Лицензия

MIT
Категории

Категории

Данные
Группа

Группа

io.nacular.doodle
Идентификатор

Идентификатор

themes-metadata
Последняя версия

Последняя версия

0.5.2
Дата

Дата

Тип

Тип

pom.sha512
Описание

Описание

Doodle
A pure Kotlin, UI framework for the Web
Ссылка на сайт

Ссылка на сайт

https://github.com/nacular/doodle
Система контроля версий

Система контроля версий

https://github.com/nacular/doodle.git

Скачать themes-metadata

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.31

Модули Проекта

Данный проект не имеет модулей.
doodle

A pure Kotlin, UI framework for the Web

Kotlin 1.4.31 License: MIT Chat: on slack

Single-language

Doodle is written entirely in Kotlin and so are its apps. Doodle Applications do not use HTML, CSS styles or Javascript libraries. In fact, apps are not aware of the Browser (or Browser concepts) at all, and can be written entirely as common (cross-platform) code in multi-platform setups.

Expressive

Creating expressive, intuitive apps is natural with Doodle. It makes complex rendering easy with powerful, vector-oriented rendering, provides fully customizable layouts and simplifies pointer and keyboard handling.

Simply define your View hierarchy, business logic and go.

Vector Oriented

It is easy to build beautifully detailed UIs with Doodle. All rendering in Doodle is vector-oriented; so ellipses, paths, lines, gradients, affine transforms etc. are as simple to use as images and rectangles.

Precise

Doodle gives you control over all aspects of the UI presentation, including pixel-level positioning, making it easier to precisely control rendering.

Modular

Doodle has several libraries and a collection of modules. This allows selective adoption of various features and helps with bundle size. Apps written with Doodle are also dependency-injected; and there are no global objects or state to make mocking challenging.

Hello World

import io.nacular.doodle.application.Application
import io.nacular.doodle.core.Display
import io.nacular.doodle.core.plusAssign
import io.nacular.doodle.core.view
import io.nacular.doodle.drawing.Color.Companion.Black
import io.nacular.doodle.drawing.text

class HelloWorld(display: Display): Application {
    init {
        display += view {
            size   = display.size
            render = {
                text("Hello, world!", color = Black)
            }
        }
    }

    override fun shutdown() {}
}

fun main() {
    application {
        HelloWorld(display = instance())
    }
}

Documentation

Check out the documentation site for more details and examples.

Tutorials

You can find helpful tutorials as doodle-tutorials.

Feedback

Doodle is still under active development, so there are going to be gaps and bugs. Please report issues, and submit feature requests.

You can also join the discussion on the #doodle Kotlin Slack channel.

io.nacular.doodle

Версии библиотеки

Версия
0.5.2
0.5.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0