From 6d186f5a5b04a047ab70b6a47d9d665f787e965f Mon Sep 17 00:00:00 2001 From: BREW <81044362+b-re-w@users.noreply.github.com> Date: Sat, 3 Oct 2026 14:12:26 +0900 Subject: [PATCH] Feat: Regenerate the stubs from the binder's #53 output, typing object members properly python-multiplatform's newer kotlin-stubs (run 37098191598, fa2558e3: its #53, #44/#49 and #38 property stubs) stubs object functions, gives object constants their nested types, types *ItemColors parameters, and emits properties with setters. Converting it as-is broke mypy two ways, both in gen_stubs.py: - A property was renamed to snake_case but its `@layoutDirection.setter` decorator was not. The property and its decorators are now renamed together, at module level and in classes. - An object's nested types (Alignment.Horizontal) live in the object's own stub upstream; folded into the parent stub as a class, bare `Horizontal` no longer resolved and collided with this package's grouping namespace. The nested types now move in as nested classes, and each one IS the group as well: Alignment.End and Alignment.Horizontal.End both type as Alignment.Horizontal, Alignment.Horizontal.Top still fails, and references from other modules become pythonx.compose.ui.Alignment.Horizontal. Object functions are snake_case staticmethods (Arrangement.spaced_by), an explicit overload set also gets its base name. Upstream gives Arrangement.HorizontalOrVertical one base where Kotlin has two, which made mypy reject the notebook's Column(vertical_arrangement=Arrangement.SpaceBetween); annotations naming such a type are Any until upstream lists both bases. colors: bool goes from 9 to 0 in material3. Drafted by a subagent in a worktree; reviewed and re-run here. feature added: property, nested-type and object-function conversion. test added: TheObjectAndPropertyFormat (7) over a new-format fixture, two mypy cases (object function and nested types; property and setter). Red: 6 of 7 failed. Disabling the decorator rename fails 1; the nested-name qualification 5. documentation corrected: SPEC 0/S1.2/S7.1 (stale per-step counts replaced), PROJECT.md, guide status and getting-started. Suite with python-multiplatform 31c092f0 (worktree, new zip): 193 passed, 1 skipped -> 202 passed, 1 skipped; without a checkout, 107 passed, 87 skipped -> 116 passed, 87 skipped. Generating twice gives no diff. check_guide.py: 0. Refs #12 --- PROJECT.md | 6 +- docs/SPEC.md | 54 +- docs/guide/getting-started.html | 4 +- docs/guide/status.html | 2 +- pythonx/compose/__init__.pyi | 2 +- pythonx/compose/foundation/__init__.pyi | 2 +- .../compose/foundation/layout/__init__.pyi | 2 +- pythonx/compose/layout/__init__.pyi | 224 ++- pythonx/compose/material3/__init__.pyi | 1489 ++++++++++++++++- pythonx/compose/runtime/__init__.pyi | 141 +- pythonx/compose/ui/__init__.pyi | 152 +- pythonx/compose/ui/graphics/__init__.pyi | 160 +- pythonx/compose/ui/text/__init__.pyi | 277 ++- pythonx/compose/ui/unit/__init__.pyi | 40 +- .../layout/Arrangement/__init__.pyi | 34 + .../compose/foundation/layout/__init__.pyi | 8 + .../compose/ui/Alignment/__init__.pyi | 18 + .../androidx/compose/ui/__init__.pyi | 23 + tests/test_stubs.py | 73 + tests/test_typing.py | 30 + tools/gen_stubs.py | 137 +- 21 files changed, 2740 insertions(+), 138 deletions(-) create mode 100644 tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/Arrangement/__init__.pyi create mode 100644 tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/__init__.pyi create mode 100644 tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/Alignment/__init__.pyi create mode 100644 tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/__init__.pyi diff --git a/PROJECT.md b/PROJECT.md index 985647e..6295619 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -35,8 +35,8 @@ Compose(`androidx.compose.*`)를 파이썬에서 쓰기 위한 pip 패키지 **` ``` python3 -m pytest tests -q - PythonMultiplatform 체크아웃 없음 107 passed, 87 skipped - python-multiplatform develop 31c092f0+ 193 passed, 1 skipped + PythonMultiplatform 체크아웃 없음 116 passed, 87 skipped + python-multiplatform develop 31c092f0+ 202 passed, 1 skipped describe_member 없는 체크아웃 같은 수, 그중 7 개 건너뜀 (python-multiplatform #54 이전) describe(module, name) 없는 체크아웃 같은 수, 그중 13 개 건너뜀 (python-multiplatform #36 이전) 그보다 오래된 체크아웃 거기에 5 개 더 건너뜀 (member resolver 없음) @@ -45,7 +45,7 @@ python3 -m pytest tests -q `describe_member`(python-multiplatform #54)가 없는 바인더에서는 메서드 키워드를 확인하는 7 개가(Kotlin 키워드로 되돌아가는 2 개는 실행됨), `describe(module, name)`(python-multiplatform #36)이 없는 바인더에서는 묶음 상수를 확인하는 13 개가, member resolver(python-multiplatform `ba4c6f49`)가 없는 바인더에서는 proxy 의 snake_case 메서드를 부르는 5 개가 더 건너뛴다. 두 환경 모두의 건너뜀 1 개는 worktree 에 없는 `UI.ipynb` 의 테스트다. 건너뜀은 통과가 아니다. -체크아웃 없이 통과하는 107 개 중 39 개는 타입 스텁과 wheel 을 검사하고(SPEC S1.2), 나머지 다수는 *부재*(옛 토큰·삭제된 +체크아웃 없이 통과하는 116 개 중 48 개는 타입 스텁과 wheel 을 검사하고(SPEC S1.2), 나머지 다수는 *부재*(옛 토큰·삭제된 파일이 없음)를 확인하는 것이라 기능 진척으로 세지 않는다. ### 마일스톤 diff --git a/docs/SPEC.md b/docs/SPEC.md index 60cf8c6..ea673ae 100644 --- a/docs/SPEC.md +++ b/docs/SPEC.md @@ -21,8 +21,8 @@ Run from a worktree with `python -m pytest tests -q -rs` (pytest 8, mypy 2.4, CP | Environment | Result | |---|---| -| No `PythonMultiplatform` checkout found | **107 passed, 87 skipped**, 122 subtests passed | -| python-multiplatform `develop` at `31c092f0` or later (property rows, #38; `describe_member`, #54; besides `add_member_resolver` and `describe(module, name)`) | **193 passed, 1 skipped**, 149 subtests passed | +| No `PythonMultiplatform` checkout found | **116 passed, 87 skipped**, 128 subtests passed | +| python-multiplatform `develop` at `31c092f0` or later (property rows, #38; `describe_member`, #54; besides `add_member_resolver` and `describe(module, name)`) | **202 passed, 1 skipped**, 155 subtests passed | | an older checkout, without `describe_member` (python-multiplatform #54) | the same, with 7 more skipped | | an older one, without `describe(module, name)` (python-multiplatform #36) | with 13 more skipped again | | an older one still, without `add_member_resolver` | with 5 more skipped again | @@ -36,7 +36,7 @@ binder returned skip as well, because that needs its member resolver (python-mul `TheBinderPath` tests (S5.4). `tests/test_typing.py` skips where mypy is not installed. A skip is not a pass. -Of the 107 that pass without a checkout, 39 check the type stubs and the wheel (S1.2); most of the +Of the 116 that pass without a checkout, 48 check the type stubs and the wheel (S1.2); most of the rest assert **absence** (a retired token, a deleted file, a docstring that exists). Those are listed in §9 and are not counted as features. @@ -63,8 +63,8 @@ and the name the interpreter resolves cannot drift. - **What is generated.** `pythonx/compose/**/__init__.pyi` for every module in `pythonx-map.toml`, beside its `__init__.py`, and an empty `pythonx/compose/py.typed`. The stubs are committed; regenerating them from the same input produces no diff. -- **From what.** python-multiplatform's CI artefact `kotlin-stubs` (workflow run 37077627980, - commit `86012ca0`): Kotlin-named stubs for Compose 1.11.1, one `androidx/compose/.../__init__.pyi` +- **From what.** python-multiplatform's CI artefact `kotlin-stubs` (workflow run 37098191598, + commit `fa2558e3`): Kotlin-named stubs for Compose 1.11.1, one `androidx/compose/.../__init__.pyi` per Kotlin package. `python3 tools/gen_stubs.py ` converts them; the first line of every generated stub records the artefact, run and commit it came from. - **The rule is the runtime's** (`_reexport.py`), applied by `tools/gen_stubs.py`: @@ -80,12 +80,23 @@ and the name the interpreter resolves cannot drift. a type check; - a Kotlin object served as a sub-package (`Alignment`, `Arrangement`) becomes a class of that name in its parent module's stub, its constants `ClassVar`s and its functions snake_case - static methods. A sub-package directory holding only `__init__.pyi` would be a namespace + static methods (an explicit overload set, `spaced_by__Dp`, also gets its base name `spaced_by`). A sub-package directory holding only `__init__.pyi` would be a namespace package at run time and would shadow the `KotlinObject` the re-export rule serves. The generator reads both upstream layouts: the object as its own `/__init__.pyi`, or as a class inside the parent stub (python-multiplatform #44). An object whose name the parent module also uses for a function (`Color`, `TextStyle`, `PaddingValues`, `TextUnit`) is left out, because at run time that name reaches the function; + - the Kotlin types an object nests (`Alignment.Horizontal`; python-multiplatform #53, which + declares them as classes in the object's stub) become classes nested in the object's class, and + are the grouped-constant namespaces too (S7.1): `Alignment.End` and `Alignment.Horizontal.End` + are both `Alignment.Horizontal`, and `Alignment.Horizontal.Top` is a type error. A reference to + one from another module (`androidx.compose.ui.Alignment.Horizontal` in `Column`) names + `pythonx.compose.ui.Alignment.Horizontal`. A nested type that upstream derives from another + nested one (`Arrangement.HorizontalOrVertical(Horizontal)`) is `Any` wherever a signature or a + constant names it: Kotlin's is both a `Horizontal` and a `Vertical`, which one base class cannot + say, so any other typing would reject valid calls; its group still holds its constants; + - a property (`@property` with `@name.setter`, python-multiplatform #38) is renamed with + `python_name` and so is the decorator: `layout_direction` and `@layout_direction.setter`; - a reference to another Kotlin package is rewritten to the `pythonx.compose` module the manifest lists first for it (`androidx.compose.foundation.layout` → `pythonx.compose.layout`); a reference to a package the manifest does not map, or to a name the target stub does not @@ -95,20 +106,28 @@ and the name the interpreter resolves cannot drift. same objects; `[aliases]` become re-exports too (`material3` exports `Column`, `Row`, `Spacer` from `pythonx.compose.layout`); names a package defines itself (`runtime.Composable`) are carried over. -- **How it is verified.** `tests/test_stubs.py` converts two fixtures holding the fake host's - declarations, in the old and the current upstream format (and the current format with an object - in its parent stub), and checks the generated signatures against `inspect.signature` at run time. +- **How it is verified.** `tests/test_stubs.py` converts three fixtures: the fake host's + declarations in the old and the current upstream format (and the current format with an object + in its parent stub), and a third in the format of python-multiplatform #53/#44/#38 (nested types, + object functions, property setters), and checks the generated signatures against `inspect.signature` at run time. `TheCommittedStubs` regenerates from `.tmp/kotlin-stubs.zip` and requires the committed files to be identical (it skips where the artefact is absent, which includes CI). `tests/test_typing.py` runs mypy over small programs against the committed stubs: correct code passes, a misspelled keyword or function fails. `tests/test_wheel.py` finds `py.typed` and the stubs in the built wheel. - Disabling a step of the generator fails tests: folding objects into their parent 11, rewriting - references 9, keeping the binder's `# type: ignore` comments 7, renaming class members 5, the - second-module re-export 2, the aliases 2, the shadowed-object check 1. + Each generator step has a test that fails when the step is disabled (measured per change; see the + commit messages of #40, #45 and the run-37098191598 regeneration for the counts). +- **What the newer input improved.** Object functions are stubbed (`Arrangement.spaced_by(8)` + type-checks), object constants carry their nested types, an `*ItemColors` parameter is no longer + `bool`, names that differ only in case and Python-keyword names no longer reach the stubs, and + properties appear with their setters. + `tests/test_typing.py` checks an object function, both spellings of a grouped constant, and a + property assignment. - **Still missing.** - Many parameter and return types are `Any`: upstream emits `Any` for a class that shares its - name with a function (`PaddingValues`, `TextStyle`, `Color`) and for packages it does not stub; - `Dp` is `float`. + name with a function (`PaddingValues`, `TextStyle`, `Color`), for packages it does not stub, and + for an object's own type (`Alignment.Center: Alignment`, python-multiplatform's object self-type); + `Icons.Default.Add` is not stubbed upstream (python-multiplatform #68); `Dp` is `float`; + `Arrangement.HorizontalOrVertical` constants and `spaced_by` return `Any` (above). - The `pythonx.compose` root module maps `androidx.compose`, which has no stub, so its stub is empty. - Object constants named like a Python keyword (`FilterQuality.None`) cannot be written as an @@ -350,6 +369,13 @@ rule that names no declaration: declared type is what the binder describes; subtyping is not modelled. - **Kotlin members win.** If `P` has a member named `G` (a constant, a function, a nested object the binder lists), that member is what `P.G` reads, and there is no group of that name. +- **In the stubs** (S1.2) the group and the Kotlin type are one class: when the object's stub nests + a type of the group's name (`class Horizontal` in `Alignment`'s, python-multiplatform #53), the + group's constants are added to that class, so `Alignment.Horizontal` is the type a parameter + annotated `Alignment.Horizontal` takes and the namespace `Alignment.Horizontal.End` reads. The + trade-off: a nested type's members are its grouped constants only (by the exact-declared-type rule + above), so `Arrangement.Horizontal` lacks the constants declared as `HorizontalOrVertical`; and + because upstream gives `HorizontalOrVertical` one base, the stubs type what names it as `Any`. - `dir()` of an object lists its group names next to its members; `dir()` of a group lists its constants. A name a group does not hold raises `AttributeError` naming the group's Kotlin type (`androidx.compose.ui.Alignment.Horizontal`), so `Alignment.Horizontal.Top` fails: `Top` is an diff --git a/docs/guide/getting-started.html b/docs/guide/getting-started.html index 5a3da83..3b8c0f9 100644 --- a/docs/guide/getting-started.html +++ b/docs/guide/getting-started.html @@ -43,9 +43,9 @@

1. Get the source1. 소스

2. Run the tests2. 테스트 실행

python3 -m pytest tests -q
-

Expect 107 passed, 87 skipped. One skipped test reads the maintainer's UI.ipynb, which a clone does not have; mypy type-checks the stubs. The other skipped tests drive the binder's adaptation layer and need a python-multiplatform checkout beside this one, or:

107 passed, 87 skipped 가 정상입니다. 건너뛴 테스트 하나는 클론에는 없는 메인테이너의 UI.ipynb 를 읽으며, mypy 는 스텁을 타입 검사합니다. 나머지 건너뛴 테스트는 바인더의 적응 계층을 구동하며, 옆에 python-multiplatform 체크아웃이 있거나 다음이 필요합니다:

+

Expect 116 passed, 87 skipped. One skipped test reads the maintainer's UI.ipynb, which a clone does not have; mypy type-checks the stubs. The other skipped tests drive the binder's adaptation layer and need a python-multiplatform checkout beside this one, or:

116 passed, 87 skipped 가 정상입니다. 건너뛴 테스트 하나는 클론에는 없는 메인테이너의 UI.ipynb 를 읽으며, mypy 는 스텁을 타입 검사합니다. 나머지 건너뛴 테스트는 바인더의 적응 계층을 구동하며, 옆에 python-multiplatform 체크아웃이 있거나 다음이 필요합니다:

PYTHONMULTIPLATFORM_HOME=/path/to/python-multiplatform python3 -m pytest tests -q
-

With a current one (31c092f0 or later) 193 pass and 1 skips (the UI.ipynb test); an older one skips 5 that call a snake_case method on a proxy the binder returned. That is expected and recorded.

최신 체크아웃(31c092f0 이후)이면 193 개가 통과하고 1 개(UI.ipynb 테스트)를 건너뛰며, 오래된 체크아웃은 바인더가 돌려준 proxy 의 snake_case 메서드를 부르는 5 개를 건너뜁니다. 예상된 상태이며 기록되어 있습니다.

+

With a current one (31c092f0 or later) 202 pass and 1 skips (the UI.ipynb test); an older one skips 5 that call a snake_case method on a proxy the binder returned. That is expected and recorded.

최신 체크아웃(31c092f0 이후)이면 202 개가 통과하고 1 개(UI.ipynb 테스트)를 건너뛰며, 오래된 체크아웃은 바인더가 돌려준 proxy 의 snake_case 메서드를 부르는 5 개를 건너뜁니다. 예상된 상태이며 기록되어 있습니다.

diff --git a/docs/guide/status.html b/docs/guide/status.html index 1fe5831..73d0e18 100644 --- a/docs/guide/status.html +++ b/docs/guide/status.html @@ -36,7 +36,7 @@ State상태Item항목 implemented구현Mapping manifest pythonx/compose/pythonx-map.toml — inside the package, ships in the wheel매핑 매니페스트 pythonx/compose/pythonx-map.toml — 패키지 안에 있으며 wheel 에 포함implemented구현@Composable identity decorator@Composable 항등 데코레이터implemented구현pythonx as a real on-disk package re-exporting androidx.compose.* by one rule — names, keywords, signatures, Dp allowlistandroidx.compose.* 를 규칙 하나로 재노출하는 실제 디스크 패키지 pythonx — 이름, 키워드, 시그니처, Dp 허용 목록implemented구현Modifier chains with snake_case methods, overload dispatch, Dp as a numbersnake_case 메서드를 쓰는 Modifier 체인, 오버로드 디스패치, 숫자 Dpimplemented구현Column, Row, Spacer importable from material3 as well as layout (manifest [aliases])layout 뿐 아니라 material3 에서도 import 되는 Column, Row, Spacer (매니페스트 [aliases])implemented구현Type stubs (.pyi) generated from real Compose 1.11.1 by the runtime's naming rule, with py.typed, checked with mypy (#12); many types are still Any런타임과 같은 이름 규칙으로 실제 Compose 1.11.1 에서 생성한 타입 스텁(.pyi)과 py.typed, mypy 로 검사(#12); 아직 많은 타입이 Any 입니다implemented구현Snake-case names, keywords and signatures — modules and methods; a method's keywords need python-multiplatform's describe_member, and Kotlin's own spelling still works at run timesnake_case 이름·키워드·시그니처 — 모듈과 메서드; 메서드 키워드에는 python-multiplatform 의 describe_member 가 필요하고, Kotlin 이름도 실행 시에는 그대로 통합니다partial부분The empty Modifier — Modifier.padding(16) from the class needs an app-supplied factory against real Compose빈 Modifier — 클래스에서 시작하는 Modifier.padding(16) 은 실제 Compose 에서 앱이 제공하는 팩토리가 필요implemented구현Alignment / Arrangement — Alignment.Center, Arrangement.End, Arrangement.spaced_by(8), and the grouped Alignment.Horizontal.End beside Alignment.EndAlignment / Arrangement — Alignment.Center, Arrangement.End, Arrangement.spaced_by(8), 그리고 Alignment.End 와 나란히 묶음 표기 Alignment.Horizontal.Endpartial부분Material 3 widgets — re-exported by rule; render proofs per widget pending (#9)Material 3 위젯 — 규칙으로 재노출됨; 위젯별 렌더 증거 대기(#9)partial부분Distribution as pythonx-compose — the wheel carries the manifest, the re-export rule, the type stubs and py.typedpythonx-compose 배포 — wheel 에 매니페스트, 재노출 규칙, 타입 스텁, py.typed 포함partial부분A declared app root (@app) and Pythonic state (state), with no update call — binder path tested against a fake host shaped after python-multiplatform #38; real Compose is the E2E module (#11, #19)갱신 호출 없는 선언형 앱 루트(@app)와 파이썬다운 상태(state) — 바인더 경로는 python-multiplatform #38 모양의 가짜 호스트로 테스트됨, 실제 Compose 는 E2E 모듈(#11, #19)planned계획TextField input-method (IME) handling (#10)TextField 입력기(IME) 처리(#10)planned계획Icon, DefaultIcons (python-multiplatform #37), colour schemesIcon, DefaultIcons (python-multiplatform #37), 색 스킴planned계획remember_saveable, coroutine scopesremember_saveable, 코루틴 스코프 -

Test baseline: 107 passed, 87 skipped without a python-multiplatform checkout; 193 passed, 1 skipped with a current one. The one skip with a current checkout reads the maintainer's UI.ipynb.

테스트 기준선: python-multiplatform 체크아웃이 없으면 107 passed, 87 skipped, 최신 체크아웃이면 193 passed, 1 skipped. 최신 체크아웃에서 건너뛰는 1 개는 메인테이너의 UI.ipynb 를 읽는 테스트입니다.

+

Test baseline: 116 passed, 87 skipped without a python-multiplatform checkout; 202 passed, 1 skipped with a current one. The one skip with a current checkout reads the maintainer's UI.ipynb.

테스트 기준선: python-multiplatform 체크아웃이 없으면 116 passed, 87 skipped, 최신 체크아웃이면 202 passed, 1 skipped. 최신 체크아웃에서 건너뛰는 1 개는 메인테이너의 UI.ipynb 를 읽는 테스트입니다.

FAQ

diff --git a/pythonx/compose/__init__.pyi b/pythonx/compose/__init__.pyi index 2ac508a..02ce842 100644 --- a/pythonx/compose/__init__.pyi +++ b/pythonx/compose/__init__.pyi @@ -1 +1 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. diff --git a/pythonx/compose/foundation/__init__.pyi b/pythonx/compose/foundation/__init__.pyi index f5421a0..4b5cf98 100644 --- a/pythonx/compose/foundation/__init__.pyi +++ b/pythonx/compose/foundation/__init__.pyi @@ -1,4 +1,4 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t class BorderStroke: diff --git a/pythonx/compose/foundation/layout/__init__.pyi b/pythonx/compose/foundation/layout/__init__.pyi index 62ebcb7..72761f3 100644 --- a/pythonx/compose/foundation/layout/__init__.pyi +++ b/pythonx/compose/foundation/layout/__init__.pyi @@ -1,2 +1,2 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. from pythonx.compose.layout import * diff --git a/pythonx/compose/layout/__init__.pyi b/pythonx/compose/layout/__init__.pyi index 760cae3..cfb13c1 100644 --- a/pythonx/compose/layout/__init__.pyi +++ b/pythonx/compose/layout/__init__.pyi @@ -1,40 +1,153 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t +import pythonx.compose.material3 import pythonx.compose.ui import pythonx.compose.ui.unit class _RowScope_NavigationBarItem(_t.Protocol): - def __call__(self, selected: bool, on_click: _t.Callable[[], None], icon: _t.Callable[[], None], modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., label: _t.Callable[[], None] | None = ..., always_show_label: bool = ..., colors: bool = ..., interaction_source: _t.Any | None = ...) -> None: ... + def __call__(self, selected: bool, on_click: _t.Callable[[], None], icon: _t.Callable[[], None], modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., label: _t.Callable[[], None] | None = ..., always_show_label: bool = ..., colors: pythonx.compose.material3.NavigationBarItemColors = ..., interaction_source: _t.Any | None = ...) -> None: ... class BoxScope: """Kotlin: androidx.compose.foundation.layout.BoxScope""" class BoxWithConstraintsScope: """Kotlin: androidx.compose.foundation.layout.BoxWithConstraintsScope""" + @property + def constraints(self) -> _t.Any: + """Kotlin property: androidx.compose.foundation.layout.BoxWithConstraintsScope.constraints (androidx.compose.foundation.layout.BoxWithConstraintsScope.constraints: androidx.compose.ui.unit.Constraints)""" + ... + @property + def max_height(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.BoxWithConstraintsScope.maxHeight (androidx.compose.foundation.layout.BoxWithConstraintsScope.maxHeight: androidx.compose.ui.unit.Dp)""" + ... + @property + def max_width(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.BoxWithConstraintsScope.maxWidth (androidx.compose.foundation.layout.BoxWithConstraintsScope.maxWidth: androidx.compose.ui.unit.Dp)""" + ... + @property + def min_height(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.BoxWithConstraintsScope.minHeight (androidx.compose.foundation.layout.BoxWithConstraintsScope.minHeight: androidx.compose.ui.unit.Dp)""" + ... + @property + def min_width(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.BoxWithConstraintsScope.minWidth (androidx.compose.foundation.layout.BoxWithConstraintsScope.minWidth: androidx.compose.ui.unit.Dp)""" + ... class ColumnScope: """Kotlin: androidx.compose.foundation.layout.ColumnScope""" class ContextualFlowColumnScope: """Kotlin: androidx.compose.foundation.layout.ContextualFlowColumnScope""" + @property + def index_in_line(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowColumnScope.indexInLine (androidx.compose.foundation.layout.ContextualFlowColumnScope.indexInLine: kotlin.Int)""" + ... + @property + def line_index(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowColumnScope.lineIndex (androidx.compose.foundation.layout.ContextualFlowColumnScope.lineIndex: kotlin.Int)""" + ... + @property + def max_height_in_line(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowColumnScope.maxHeightInLine (androidx.compose.foundation.layout.ContextualFlowColumnScope.maxHeightInLine: androidx.compose.ui.unit.Dp)""" + ... + @property + def max_width(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowColumnScope.maxWidth (androidx.compose.foundation.layout.ContextualFlowColumnScope.maxWidth: androidx.compose.ui.unit.Dp)""" + ... class ContextualFlowRowScope: """Kotlin: androidx.compose.foundation.layout.ContextualFlowRowScope""" + @property + def index_in_line(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowRowScope.indexInLine (androidx.compose.foundation.layout.ContextualFlowRowScope.indexInLine: kotlin.Int)""" + ... + @property + def line_index(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowRowScope.lineIndex (androidx.compose.foundation.layout.ContextualFlowRowScope.lineIndex: kotlin.Int)""" + ... + @property + def max_height(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowRowScope.maxHeight (androidx.compose.foundation.layout.ContextualFlowRowScope.maxHeight: androidx.compose.ui.unit.Dp)""" + ... + @property + def max_width_in_line(self) -> float: + """Kotlin property: androidx.compose.foundation.layout.ContextualFlowRowScope.maxWidthInLine (androidx.compose.foundation.layout.ContextualFlowRowScope.maxWidthInLine: androidx.compose.ui.unit.Dp)""" + ... class FlexBoxConfig: """Kotlin: androidx.compose.foundation.layout.FlexBoxConfig""" +class FlexBoxConfigScope: + """Kotlin: androidx.compose.foundation.layout.FlexBoxConfigScope""" + @property + def constraints(self) -> _t.Any: + """Kotlin property: androidx.compose.foundation.layout.FlexBoxConfigScope.constraints (androidx.compose.foundation.layout.FlexBoxConfigScope.constraints: androidx.compose.ui.unit.Constraints)""" + ... + class FlexBoxScope: """Kotlin: androidx.compose.foundation.layout.FlexBoxScope""" +class FlexConfigScope: + """Kotlin: androidx.compose.foundation.layout.FlexConfigScope""" + @property + def flex_box_cross_axis_max(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlexConfigScope.flexBoxCrossAxisMax (androidx.compose.foundation.layout.FlexConfigScope.flexBoxCrossAxisMax: kotlin.Int)""" + ... + @property + def flex_box_cross_axis_min(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlexConfigScope.flexBoxCrossAxisMin (androidx.compose.foundation.layout.FlexConfigScope.flexBoxCrossAxisMin: kotlin.Int)""" + ... + @property + def flex_box_main_axis_max(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlexConfigScope.flexBoxMainAxisMax (androidx.compose.foundation.layout.FlexConfigScope.flexBoxMainAxisMax: kotlin.Int)""" + ... + @property + def flex_box_main_axis_min(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlexConfigScope.flexBoxMainAxisMin (androidx.compose.foundation.layout.FlexConfigScope.flexBoxMainAxisMin: kotlin.Int)""" + ... + +class FlowColumnOverflowScope: + """Kotlin: androidx.compose.foundation.layout.FlowColumnOverflowScope""" + @property + def shown_item_count(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlowColumnOverflowScope.shownItemCount (androidx.compose.foundation.layout.FlowColumnOverflowScope.shownItemCount: kotlin.Int)""" + ... + @property + def total_item_count(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlowColumnOverflowScope.totalItemCount (androidx.compose.foundation.layout.FlowColumnOverflowScope.totalItemCount: kotlin.Int)""" + ... + class FlowColumnScope: """Kotlin: androidx.compose.foundation.layout.FlowColumnScope""" +class FlowRowOverflowScope: + """Kotlin: androidx.compose.foundation.layout.FlowRowOverflowScope""" + @property + def shown_item_count(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlowRowOverflowScope.shownItemCount (androidx.compose.foundation.layout.FlowRowOverflowScope.shownItemCount: kotlin.Int)""" + ... + @property + def total_item_count(self) -> int: + """Kotlin property: androidx.compose.foundation.layout.FlowRowOverflowScope.totalItemCount (androidx.compose.foundation.layout.FlowRowOverflowScope.totalItemCount: kotlin.Int)""" + ... + class FlowRowScope: """Kotlin: androidx.compose.foundation.layout.FlowRowScope""" class GridConfigurationScope: """Kotlin: androidx.compose.foundation.layout.GridConfigurationScope""" + @property + def constraints(self) -> _t.Any: + """Kotlin property: androidx.compose.foundation.layout.GridConfigurationScope.constraints (androidx.compose.foundation.layout.GridConfigurationScope.constraints: androidx.compose.ui.unit.Constraints)""" + ... + @property + def flow(self) -> _t.Any: + """Kotlin property: androidx.compose.foundation.layout.GridConfigurationScope.flow (androidx.compose.foundation.layout.GridConfigurationScope.flow: androidx.compose.foundation.layout.GridFlow)""" + ... + @flow.setter + def flow(self, value: _t.Any) -> None: + """Kotlin property: androidx.compose.foundation.layout.GridConfigurationScope.flow=""" + ... class IntrinsicSize: """Kotlin: androidx.compose.foundation.layout.IntrinsicSize""" @@ -55,15 +168,15 @@ def Box__Modifier_Alignment_Boolean_Unit(modifier: pythonx.compose.ui.Modifier = """Kotlin: androidx.compose.foundation.layout.Box(modifier: androidx.compose.ui.Modifier, contentAlignment: androidx.compose.ui.Alignment, propagateMinConstraints: kotlin.Boolean, content: kotlin.Function1): kotlin.Unit""" ... -def Column(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_alignment: _t.Any = ..., *, content: _t.Callable[[ColumnScope], None]) -> None: +def Column(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., *, content: _t.Callable[[ColumnScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.Column(modifier: androidx.compose.ui.Modifier, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, horizontalAlignment: androidx.compose.ui.Alignment.Horizontal, content: kotlin.Function1): kotlin.Unit""" ... -def ContextualFlowColumn(item_count: int, modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_arrangement: _t.Any = ..., item_horizontal_alignment: _t.Any = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[ContextualFlowColumnScope, int], None]) -> None: +def ContextualFlowColumn(item_count: int, modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_arrangement: Arrangement.Horizontal = ..., item_horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[ContextualFlowColumnScope, int], None]) -> None: """Kotlin: androidx.compose.foundation.layout.ContextualFlowColumn(itemCount: kotlin.Int, modifier: androidx.compose.ui.Modifier, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, itemHorizontalAlignment: androidx.compose.ui.Alignment.Horizontal, maxItemsInEachColumn: kotlin.Int, maxLines: kotlin.Int, overflow: androidx.compose.foundation.layout.ContextualFlowColumnOverflow, content: kotlin.Function2): kotlin.Unit""" ... -def ContextualFlowRow(item_count: int, modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_arrangement: _t.Any = ..., item_vertical_alignment: _t.Any = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[ContextualFlowRowScope, int], None]) -> None: +def ContextualFlowRow(item_count: int, modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_arrangement: Arrangement.Vertical = ..., item_vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[ContextualFlowRowScope, int], None]) -> None: """Kotlin: androidx.compose.foundation.layout.ContextualFlowRow(itemCount: kotlin.Int, modifier: androidx.compose.ui.Modifier, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, itemVerticalAlignment: androidx.compose.ui.Alignment.Vertical, maxItemsInEachRow: kotlin.Int, maxLines: kotlin.Int, overflow: androidx.compose.foundation.layout.ContextualFlowRowOverflow, content: kotlin.Function2): kotlin.Unit""" ... @@ -71,19 +184,19 @@ def FlexBox(modifier: pythonx.compose.ui.Modifier = ..., config: FlexBoxConfig = """Kotlin: androidx.compose.foundation.layout.FlexBox(modifier: androidx.compose.ui.Modifier, config: androidx.compose.foundation.layout.FlexBoxConfig, content: kotlin.Function1): kotlin.Unit""" ... -def FlowColumn__Modifier_Vertical_Horizontal_Horizontal_Int_Int_FlowColumnOverflow_Unit(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_arrangement: _t.Any = ..., item_horizontal_alignment: _t.Any = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: +def FlowColumn__Modifier_Vertical_Horizontal_Horizontal_Int_Int_FlowColumnOverflow_Unit(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_arrangement: Arrangement.Horizontal = ..., item_horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.FlowColumn(modifier: androidx.compose.ui.Modifier, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, itemHorizontalAlignment: androidx.compose.ui.Alignment.Horizontal, maxItemsInEachColumn: kotlin.Int, maxLines: kotlin.Int, overflow: androidx.compose.foundation.layout.FlowColumnOverflow, content: kotlin.Function1): kotlin.Unit""" ... -def FlowColumn__Modifier_Vertical_Horizontal_Horizontal_Int_Int_Unit(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_arrangement: _t.Any = ..., item_horizontal_alignment: _t.Any = ..., max_items_in_each_column: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: +def FlowColumn__Modifier_Vertical_Horizontal_Horizontal_Int_Int_Unit(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_arrangement: Arrangement.Horizontal = ..., item_horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., max_items_in_each_column: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.FlowColumn(modifier: androidx.compose.ui.Modifier, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, itemHorizontalAlignment: androidx.compose.ui.Alignment.Horizontal, maxItemsInEachColumn: kotlin.Int, maxLines: kotlin.Int, content: kotlin.Function1): kotlin.Unit""" ... -def FlowRow__Modifier_Horizontal_Vertical_Vertical_Int_Int_FlowRowOverflow_Unit(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_arrangement: _t.Any = ..., item_vertical_alignment: _t.Any = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: +def FlowRow__Modifier_Horizontal_Vertical_Vertical_Int_Int_FlowRowOverflow_Unit(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_arrangement: Arrangement.Vertical = ..., item_vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.FlowRow(modifier: androidx.compose.ui.Modifier, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, itemVerticalAlignment: androidx.compose.ui.Alignment.Vertical, maxItemsInEachRow: kotlin.Int, maxLines: kotlin.Int, overflow: androidx.compose.foundation.layout.FlowRowOverflow, content: kotlin.Function1): kotlin.Unit""" ... -def FlowRow__Modifier_Horizontal_Vertical_Vertical_Int_Int_Unit(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_arrangement: _t.Any = ..., item_vertical_alignment: _t.Any = ..., max_items_in_each_row: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: +def FlowRow__Modifier_Horizontal_Vertical_Vertical_Int_Int_Unit(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_arrangement: Arrangement.Vertical = ..., item_vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., max_items_in_each_row: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.FlowRow(modifier: androidx.compose.ui.Modifier, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, verticalArrangement: androidx.compose.foundation.layout.Arrangement.Vertical, itemVerticalAlignment: androidx.compose.ui.Alignment.Vertical, maxItemsInEachRow: kotlin.Int, maxLines: kotlin.Int, content: kotlin.Function1): kotlin.Unit""" ... @@ -111,7 +224,7 @@ def PaddingValues__Dp_Dp_Dp_Dp(start: float = ..., top: float = ..., end: float """Kotlin: androidx.compose.foundation.layout.PaddingValues(start: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" ... -def Row(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_alignment: _t.Any = ..., *, content: _t.Callable[[RowScope], None]) -> None: +def Row(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., *, content: _t.Callable[[RowScope], None]) -> None: """Kotlin: androidx.compose.foundation.layout.Row(modifier: androidx.compose.ui.Modifier, horizontalArrangement: androidx.compose.foundation.layout.Arrangement.Horizontal, verticalAlignment: androidx.compose.ui.Alignment.Vertical, content: kotlin.Function1): kotlin.Unit""" ... @@ -419,7 +532,7 @@ def window_insets_top_height(receiver: pythonx.compose.ui.Modifier, /, insets: _ """Kotlin: androidx.compose.ui.Modifier.windowInsetsTopHeight(insets: androidx.compose.foundation.layout.WindowInsets): androidx.compose.ui.Modifier""" ... -def wrap_content_height(receiver: pythonx.compose.ui.Modifier, /, align: _t.Any = ..., unbounded: bool = ...) -> pythonx.compose.ui.Modifier: +def wrap_content_height(receiver: pythonx.compose.ui.Modifier, /, align: pythonx.compose.ui.Alignment.Vertical = ..., unbounded: bool = ...) -> pythonx.compose.ui.Modifier: """Kotlin: androidx.compose.ui.Modifier.wrapContentHeight(align: androidx.compose.ui.Alignment.Vertical, unbounded: kotlin.Boolean): androidx.compose.ui.Modifier""" ... @@ -427,7 +540,7 @@ def wrap_content_size(receiver: pythonx.compose.ui.Modifier, /, align: _t.Any = """Kotlin: androidx.compose.ui.Modifier.wrapContentSize(align: androidx.compose.ui.Alignment, unbounded: kotlin.Boolean): androidx.compose.ui.Modifier""" ... -def wrap_content_width(receiver: pythonx.compose.ui.Modifier, /, align: _t.Any = ..., unbounded: bool = ...) -> pythonx.compose.ui.Modifier: +def wrap_content_width(receiver: pythonx.compose.ui.Modifier, /, align: pythonx.compose.ui.Alignment.Horizontal = ..., unbounded: bool = ...) -> pythonx.compose.ui.Modifier: """Kotlin: androidx.compose.ui.Modifier.wrapContentWidth(align: androidx.compose.ui.Alignment.Horizontal, unbounded: kotlin.Boolean): androidx.compose.ui.Modifier""" ... @@ -437,14 +550,14 @@ def Box(modifier: pythonx.compose.ui.Modifier) -> None: ... def Box(modifier: pythonx.compose.ui.Modifier = ..., content_alignment: _t.Any = ..., propagate_min_constraints: bool = ..., *, content: _t.Callable[[BoxScope], None]) -> None: ... # type: ignore[overload-cannot-match] @_t.overload -def FlowColumn(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_arrangement: _t.Any = ..., item_horizontal_alignment: _t.Any = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: ... +def FlowColumn(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_arrangement: Arrangement.Horizontal = ..., item_horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., max_items_in_each_column: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: ... @_t.overload -def FlowColumn(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: _t.Any = ..., horizontal_arrangement: _t.Any = ..., item_horizontal_alignment: _t.Any = ..., max_items_in_each_column: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: ... # type: ignore[overload-cannot-match] +def FlowColumn(modifier: pythonx.compose.ui.Modifier = ..., vertical_arrangement: Arrangement.Vertical = ..., horizontal_arrangement: Arrangement.Horizontal = ..., item_horizontal_alignment: pythonx.compose.ui.Alignment.Horizontal = ..., max_items_in_each_column: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowColumnScope], None]) -> None: ... # type: ignore[overload-cannot-match] @_t.overload -def FlowRow(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_arrangement: _t.Any = ..., item_vertical_alignment: _t.Any = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: ... +def FlowRow(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_arrangement: Arrangement.Vertical = ..., item_vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., max_items_in_each_row: int = ..., max_lines: int = ..., overflow: _t.Any = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: ... @_t.overload -def FlowRow(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: _t.Any = ..., vertical_arrangement: _t.Any = ..., item_vertical_alignment: _t.Any = ..., max_items_in_each_row: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: ... # type: ignore[overload-cannot-match] +def FlowRow(modifier: pythonx.compose.ui.Modifier = ..., horizontal_arrangement: Arrangement.Horizontal = ..., vertical_arrangement: Arrangement.Vertical = ..., item_vertical_alignment: pythonx.compose.ui.Alignment.Vertical = ..., max_items_in_each_row: int = ..., max_lines: int = ..., *, content: _t.Callable[[FlowRowScope], None]) -> None: ... # type: ignore[overload-cannot-match] @_t.overload def PaddingValues(all: float) -> _t.Any: ... @@ -535,11 +648,25 @@ def width(receiver: pythonx.compose.ui.Modifier, /, intrinsic_size: IntrinsicSiz class Arrangement: """Kotlin: androidx.compose.foundation.layout.Arrangement""" - Bottom: _t.ClassVar[_t.Any] + class Horizontal: + """Kotlin: androidx.compose.foundation.layout.Arrangement.Horizontal""" + End: _t.ClassVar[Arrangement.Horizontal] + Start: _t.ClassVar[Arrangement.Horizontal] + class HorizontalOrVertical(Arrangement.Horizontal): + """Kotlin: androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" + Center: _t.ClassVar[_t.Any] + SpaceAround: _t.ClassVar[_t.Any] + SpaceBetween: _t.ClassVar[_t.Any] + SpaceEvenly: _t.ClassVar[_t.Any] + class Vertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.Vertical""" + Bottom: _t.ClassVar[Arrangement.Vertical] + Top: _t.ClassVar[Arrangement.Vertical] + Bottom: _t.ClassVar[Arrangement.Vertical] """Kotlin: androidx.compose.foundation.layout.Arrangement.Bottom(): androidx.compose.foundation.layout.Arrangement.Vertical""" Center: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.foundation.layout.Arrangement.Center(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - End: _t.ClassVar[_t.Any] + End: _t.ClassVar[Arrangement.Horizontal] """Kotlin: androidx.compose.foundation.layout.Arrangement.End(): androidx.compose.foundation.layout.Arrangement.Horizontal""" SpaceAround: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceAround(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" @@ -547,32 +674,45 @@ class Arrangement: """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceBetween(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" SpaceEvenly: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceEvenly(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - Start: _t.ClassVar[_t.Any] + Start: _t.ClassVar[Arrangement.Horizontal] """Kotlin: androidx.compose.foundation.layout.Arrangement.Start(): androidx.compose.foundation.layout.Arrangement.Horizontal""" - Top: _t.ClassVar[_t.Any] + Top: _t.ClassVar[Arrangement.Vertical] """Kotlin: androidx.compose.foundation.layout.Arrangement.Top(): androidx.compose.foundation.layout.Arrangement.Vertical""" - class Horizontal: - """Kotlin: the constants of androidx.compose.foundation.layout.Arrangement declared as androidx.compose.foundation.layout.Arrangement.Horizontal""" - End: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.End(): androidx.compose.foundation.layout.Arrangement.Horizontal""" - Start: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.Start(): androidx.compose.foundation.layout.Arrangement.Horizontal""" - class HorizontalOrVertical: - """Kotlin: the constants of androidx.compose.foundation.layout.Arrangement declared as androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - Center: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.Center(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - SpaceAround: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceAround(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - SpaceBetween: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceBetween(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - SpaceEvenly: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceEvenly(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" - class Vertical: - """Kotlin: the constants of androidx.compose.foundation.layout.Arrangement declared as androidx.compose.foundation.layout.Arrangement.Vertical""" - Bottom: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.Bottom(): androidx.compose.foundation.layout.Arrangement.Vertical""" - Top: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.foundation.layout.Arrangement.Top(): androidx.compose.foundation.layout.Arrangement.Vertical""" + @staticmethod + def aligned__Horizontal(alignment: pythonx.compose.ui.Alignment.Horizontal) -> Arrangement.Horizontal: + """Kotlin: androidx.compose.foundation.layout.Arrangement.aligned(alignment: androidx.compose.ui.Alignment.Horizontal): androidx.compose.foundation.layout.Arrangement.Horizontal""" + ... + @staticmethod + def aligned__Vertical(alignment: pythonx.compose.ui.Alignment.Vertical) -> Arrangement.Vertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.aligned(alignment: androidx.compose.ui.Alignment.Vertical): androidx.compose.foundation.layout.Arrangement.Vertical""" + ... + @staticmethod + def spaced_by__Dp(space: float) -> _t.Any: + """Kotlin: androidx.compose.foundation.layout.Arrangement.spacedBy(space: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" + ... + @staticmethod + def spaced_by__Dp_Horizontal(space: float, alignment: pythonx.compose.ui.Alignment.Horizontal) -> Arrangement.Horizontal: + """Kotlin: androidx.compose.foundation.layout.Arrangement.spacedBy(space: androidx.compose.ui.unit.Dp, alignment: androidx.compose.ui.Alignment.Horizontal): androidx.compose.foundation.layout.Arrangement.Horizontal""" + ... + @staticmethod + def spaced_by__Dp_Vertical(space: float, alignment: pythonx.compose.ui.Alignment.Vertical) -> Arrangement.Vertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.spacedBy(space: androidx.compose.ui.unit.Dp, alignment: androidx.compose.ui.Alignment.Vertical): androidx.compose.foundation.layout.Arrangement.Vertical""" + ... + @staticmethod + @_t.overload + def aligned(alignment: pythonx.compose.ui.Alignment.Horizontal) -> Arrangement.Horizontal: ... + @staticmethod + @_t.overload + def aligned(alignment: pythonx.compose.ui.Alignment.Vertical) -> Arrangement.Vertical: ... # type: ignore[overload-cannot-match] + @staticmethod + @_t.overload + def spaced_by(space: float) -> _t.Any: ... + @staticmethod + @_t.overload + def spaced_by(space: float, alignment: pythonx.compose.ui.Alignment.Horizontal) -> Arrangement.Horizontal: ... # type: ignore[overload-cannot-match] + @staticmethod + @_t.overload + def spaced_by(space: float, alignment: pythonx.compose.ui.Alignment.Vertical) -> Arrangement.Vertical: ... # type: ignore[overload-cannot-match] class ContextualFlowColumnOverflow: """Kotlin: androidx.compose.foundation.layout.ContextualFlowColumnOverflow""" diff --git a/pythonx/compose/material3/__init__.pyi b/pythonx/compose/material3/__init__.pyi index 9e3d6fe..999964f 100644 --- a/pythonx/compose/material3/__init__.pyi +++ b/pythonx/compose/material3/__init__.pyi @@ -1,4 +1,4 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t import pythonx.compose.foundation import pythonx.compose.layout @@ -19,22 +19,22 @@ class _ColorScheme_surfaceColorAtElevation(_t.Protocol): def __call__(self, elevation: float) -> _t.Any: ... class _MultiChoiceSegmentedButtonRowScope_SegmentedButton(_t.Protocol): - def __call__(self, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... + def __call__(self, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... class _MultiChoiceSegmentedButtonRowScope_SegmentedButton__MultiChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(_t.Protocol): - def __call__(self, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... + def __call__(self, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... class _SingleChoiceSegmentedButtonRowScope_SegmentedButton(_t.Protocol): - def __call__(self, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... + def __call__(self, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... class _SingleChoiceSegmentedButtonRowScope_SegmentedButton__SingleChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(_t.Protocol): - def __call__(self, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... + def __call__(self, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... class _TooltipScope_PlainTooltip(_t.Protocol): - def __call__(self, modifier: pythonx.compose.ui.Modifier = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: _t.Any = ..., shape: float = ..., content_color: _t.Any = ..., container_color: _t.Any = ..., tonal_elevation: _t.Any = ..., shadow_elevation: float = ..., *, content: _t.Callable[[], None]) -> None: ... + def __call__(self, modifier: pythonx.compose.ui.Modifier = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: float = ..., shape: pythonx.compose.ui.graphics.Shape = ..., content_color: _t.Any = ..., container_color: _t.Any = ..., tonal_elevation: float = ..., shadow_elevation: float = ..., *, content: _t.Callable[[], None]) -> None: ... class _TooltipScope_RichTooltip(_t.Protocol): - def __call__(self, modifier: pythonx.compose.ui.Modifier = ..., title: _t.Callable[[], None] | None = ..., action: _t.Callable[[], None] | None = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: _t.Any = ..., shape: float = ..., colors: RichTooltipColors = ..., tonal_elevation: _t.Any = ..., shadow_elevation: float = ..., *, text: _t.Callable[[], None]) -> None: ... + def __call__(self, modifier: pythonx.compose.ui.Modifier = ..., title: _t.Callable[[], None] | None = ..., action: _t.Callable[[], None] | None = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: float = ..., shape: pythonx.compose.ui.graphics.Shape = ..., colors: RichTooltipColors = ..., tonal_elevation: float = ..., shadow_elevation: float = ..., *, text: _t.Callable[[], None]) -> None: ... class AppBarColumnScope: """Kotlin: androidx.compose.material3.AppBarColumnScope""" @@ -44,51 +44,570 @@ class AppBarRowScope: class BottomAppBarScrollBehavior: """Kotlin: androidx.compose.material3.BottomAppBarScrollBehavior""" + @property + def is_pinned(self) -> bool: + """Kotlin property: androidx.compose.material3.BottomAppBarScrollBehavior.isPinned (androidx.compose.material3.BottomAppBarScrollBehavior.isPinned: kotlin.Boolean)""" + ... + @property + def nested_scroll_connection(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.BottomAppBarScrollBehavior.nestedScrollConnection (androidx.compose.material3.BottomAppBarScrollBehavior.nestedScrollConnection: androidx.compose.ui.input.nestedscroll.NestedScrollConnection)""" + ... + @property + def state(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.BottomAppBarScrollBehavior.state (androidx.compose.material3.BottomAppBarScrollBehavior.state: androidx.compose.material3.BottomAppBarState)""" + ... class ButtonColors: """Kotlin: androidx.compose.material3.ButtonColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ButtonColors.containerColor (androidx.compose.material3.ButtonColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ButtonColors.contentColor (androidx.compose.material3.ButtonColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ButtonColors.disabledContainerColor (androidx.compose.material3.ButtonColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ButtonColors.disabledContentColor (androidx.compose.material3.ButtonColors.disabledContentColor: androidx.compose.ui.graphics.Color)""" + ... class ButtonElevation: """Kotlin: androidx.compose.material3.ButtonElevation""" class CardColors: """Kotlin: androidx.compose.material3.CardColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CardColors.containerColor (androidx.compose.material3.CardColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CardColors.contentColor (androidx.compose.material3.CardColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CardColors.disabledContainerColor (androidx.compose.material3.CardColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CardColors.disabledContentColor (androidx.compose.material3.CardColors.disabledContentColor: androidx.compose.ui.graphics.Color)""" + ... class CardElevation: """Kotlin: androidx.compose.material3.CardElevation""" class CheckboxColors: """Kotlin: androidx.compose.material3.CheckboxColors""" + @property + def checked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.checkedBorderColor (androidx.compose.material3.CheckboxColors.checkedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_box_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.checkedBoxColor (androidx.compose.material3.CheckboxColors.checkedBoxColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_checkmark_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.checkedCheckmarkColor (androidx.compose.material3.CheckboxColors.checkedCheckmarkColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledBorderColor (androidx.compose.material3.CheckboxColors.disabledBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_checked_box_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledCheckedBoxColor (androidx.compose.material3.CheckboxColors.disabledCheckedBoxColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_indeterminate_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledIndeterminateBorderColor (androidx.compose.material3.CheckboxColors.disabledIndeterminateBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_indeterminate_box_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledIndeterminateBoxColor (androidx.compose.material3.CheckboxColors.disabledIndeterminateBoxColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledUncheckedBorderColor (androidx.compose.material3.CheckboxColors.disabledUncheckedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_box_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.disabledUncheckedBoxColor (androidx.compose.material3.CheckboxColors.disabledUncheckedBoxColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.uncheckedBorderColor (androidx.compose.material3.CheckboxColors.uncheckedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_box_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.uncheckedBoxColor (androidx.compose.material3.CheckboxColors.uncheckedBoxColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_checkmark_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.CheckboxColors.uncheckedCheckmarkColor (androidx.compose.material3.CheckboxColors.uncheckedCheckmarkColor: androidx.compose.ui.graphics.Color)""" + ... class ChipColors: """Kotlin: androidx.compose.material3.ChipColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.containerColor (androidx.compose.material3.ChipColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.disabledContainerColor (androidx.compose.material3.ChipColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.disabledLabelColor (androidx.compose.material3.ChipColors.disabledLabelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_leading_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.disabledLeadingIconContentColor (androidx.compose.material3.ChipColors.disabledLeadingIconContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_trailing_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.disabledTrailingIconContentColor (androidx.compose.material3.ChipColors.disabledTrailingIconContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.labelColor (androidx.compose.material3.ChipColors.labelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def leading_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.leadingIconContentColor (androidx.compose.material3.ChipColors.leadingIconContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def trailing_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ChipColors.trailingIconContentColor (androidx.compose.material3.ChipColors.trailingIconContentColor: androidx.compose.ui.graphics.Color)""" + ... class ChipElevation: """Kotlin: androidx.compose.material3.ChipElevation""" + @property + def disabled_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.disabledElevation (androidx.compose.material3.ChipElevation.disabledElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def dragged_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.draggedElevation (androidx.compose.material3.ChipElevation.draggedElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.elevation (androidx.compose.material3.ChipElevation.elevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def focused_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.focusedElevation (androidx.compose.material3.ChipElevation.focusedElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def hovered_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.hoveredElevation (androidx.compose.material3.ChipElevation.hoveredElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def pressed_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.ChipElevation.pressedElevation (androidx.compose.material3.ChipElevation.pressedElevation: androidx.compose.ui.unit.Dp)""" + ... class ColorScheme: """Kotlin: androidx.compose.material3.ColorScheme""" content_color_for: _t.ClassVar[_ColorScheme_contentColorFor] content_color_for__ColorScheme_Color: _t.ClassVar[_ColorScheme_contentColorFor__ColorScheme_Color] surface_color_at_elevation: _t.ClassVar[_ColorScheme_surfaceColorAtElevation] + @property + def background(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.background (androidx.compose.material3.ColorScheme.background: androidx.compose.ui.graphics.Color)""" + ... + @property + def error(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.error (androidx.compose.material3.ColorScheme.error: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.errorContainer (androidx.compose.material3.ColorScheme.errorContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def inverse_on_surface(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.inverseOnSurface (androidx.compose.material3.ColorScheme.inverseOnSurface: androidx.compose.ui.graphics.Color)""" + ... + @property + def inverse_primary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.inversePrimary (androidx.compose.material3.ColorScheme.inversePrimary: androidx.compose.ui.graphics.Color)""" + ... + @property + def inverse_surface(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.inverseSurface (androidx.compose.material3.ColorScheme.inverseSurface: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_background(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onBackground (androidx.compose.material3.ColorScheme.onBackground: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_error(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onError (androidx.compose.material3.ColorScheme.onError: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_error_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onErrorContainer (androidx.compose.material3.ColorScheme.onErrorContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_primary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onPrimary (androidx.compose.material3.ColorScheme.onPrimary: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_primary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onPrimaryContainer (androidx.compose.material3.ColorScheme.onPrimaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_primary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onPrimaryFixed (androidx.compose.material3.ColorScheme.onPrimaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_primary_fixed_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onPrimaryFixedVariant (androidx.compose.material3.ColorScheme.onPrimaryFixedVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_secondary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSecondary (androidx.compose.material3.ColorScheme.onSecondary: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_secondary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSecondaryContainer (androidx.compose.material3.ColorScheme.onSecondaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_secondary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSecondaryFixed (androidx.compose.material3.ColorScheme.onSecondaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_secondary_fixed_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSecondaryFixedVariant (androidx.compose.material3.ColorScheme.onSecondaryFixedVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_surface(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSurface (androidx.compose.material3.ColorScheme.onSurface: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_surface_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onSurfaceVariant (androidx.compose.material3.ColorScheme.onSurfaceVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_tertiary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onTertiary (androidx.compose.material3.ColorScheme.onTertiary: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_tertiary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onTertiaryContainer (androidx.compose.material3.ColorScheme.onTertiaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_tertiary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onTertiaryFixed (androidx.compose.material3.ColorScheme.onTertiaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def on_tertiary_fixed_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.onTertiaryFixedVariant (androidx.compose.material3.ColorScheme.onTertiaryFixedVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def outline(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.outline (androidx.compose.material3.ColorScheme.outline: androidx.compose.ui.graphics.Color)""" + ... + @property + def outline_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.outlineVariant (androidx.compose.material3.ColorScheme.outlineVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def primary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.primary (androidx.compose.material3.ColorScheme.primary: androidx.compose.ui.graphics.Color)""" + ... + @property + def primary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.primaryContainer (androidx.compose.material3.ColorScheme.primaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def primary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.primaryFixed (androidx.compose.material3.ColorScheme.primaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def primary_fixed_dim(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.primaryFixedDim (androidx.compose.material3.ColorScheme.primaryFixedDim: androidx.compose.ui.graphics.Color)""" + ... + @property + def scrim(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.scrim (androidx.compose.material3.ColorScheme.scrim: androidx.compose.ui.graphics.Color)""" + ... + @property + def secondary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.secondary (androidx.compose.material3.ColorScheme.secondary: androidx.compose.ui.graphics.Color)""" + ... + @property + def secondary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.secondaryContainer (androidx.compose.material3.ColorScheme.secondaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def secondary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.secondaryFixed (androidx.compose.material3.ColorScheme.secondaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def secondary_fixed_dim(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.secondaryFixedDim (androidx.compose.material3.ColorScheme.secondaryFixedDim: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surface (androidx.compose.material3.ColorScheme.surface: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_bright(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceBright (androidx.compose.material3.ColorScheme.surfaceBright: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceContainer (androidx.compose.material3.ColorScheme.surfaceContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_container_high(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceContainerHigh (androidx.compose.material3.ColorScheme.surfaceContainerHigh: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_container_highest(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceContainerHighest (androidx.compose.material3.ColorScheme.surfaceContainerHighest: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_container_low(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceContainerLow (androidx.compose.material3.ColorScheme.surfaceContainerLow: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_container_lowest(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceContainerLowest (androidx.compose.material3.ColorScheme.surfaceContainerLowest: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_dim(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceDim (androidx.compose.material3.ColorScheme.surfaceDim: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_tint(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceTint (androidx.compose.material3.ColorScheme.surfaceTint: androidx.compose.ui.graphics.Color)""" + ... + @property + def surface_variant(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.surfaceVariant (androidx.compose.material3.ColorScheme.surfaceVariant: androidx.compose.ui.graphics.Color)""" + ... + @property + def tertiary(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.tertiary (androidx.compose.material3.ColorScheme.tertiary: androidx.compose.ui.graphics.Color)""" + ... + @property + def tertiary_container(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.tertiaryContainer (androidx.compose.material3.ColorScheme.tertiaryContainer: androidx.compose.ui.graphics.Color)""" + ... + @property + def tertiary_fixed(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.tertiaryFixed (androidx.compose.material3.ColorScheme.tertiaryFixed: androidx.compose.ui.graphics.Color)""" + ... + @property + def tertiary_fixed_dim(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ColorScheme.tertiaryFixedDim (androidx.compose.material3.ColorScheme.tertiaryFixedDim: androidx.compose.ui.graphics.Color)""" + ... class DatePickerColors: """Kotlin: androidx.compose.material3.DatePickerColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.containerColor (androidx.compose.material3.DatePickerColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def current_year_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.currentYearContentColor (androidx.compose.material3.DatePickerColors.currentYearContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def date_text_field_colors(self) -> TextFieldColors: + """Kotlin property: androidx.compose.material3.DatePickerColors.dateTextFieldColors (androidx.compose.material3.DatePickerColors.dateTextFieldColors: androidx.compose.material3.TextFieldColors)""" + ... + @property + def day_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.dayContentColor (androidx.compose.material3.DatePickerColors.dayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def day_in_selection_range_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.dayInSelectionRangeContainerColor (androidx.compose.material3.DatePickerColors.dayInSelectionRangeContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def day_in_selection_range_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.dayInSelectionRangeContentColor (androidx.compose.material3.DatePickerColors.dayInSelectionRangeContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_day_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledDayContentColor (androidx.compose.material3.DatePickerColors.disabledDayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_selected_day_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledSelectedDayContainerColor (androidx.compose.material3.DatePickerColors.disabledSelectedDayContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_selected_day_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledSelectedDayContentColor (androidx.compose.material3.DatePickerColors.disabledSelectedDayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_selected_year_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledSelectedYearContainerColor (androidx.compose.material3.DatePickerColors.disabledSelectedYearContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_selected_year_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledSelectedYearContentColor (androidx.compose.material3.DatePickerColors.disabledSelectedYearContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_year_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.disabledYearContentColor (androidx.compose.material3.DatePickerColors.disabledYearContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def divider_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.dividerColor (androidx.compose.material3.DatePickerColors.dividerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def headline_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.headlineContentColor (androidx.compose.material3.DatePickerColors.headlineContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def navigation_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.navigationContentColor (androidx.compose.material3.DatePickerColors.navigationContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_day_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.selectedDayContainerColor (androidx.compose.material3.DatePickerColors.selectedDayContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_day_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.selectedDayContentColor (androidx.compose.material3.DatePickerColors.selectedDayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_year_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.selectedYearContainerColor (androidx.compose.material3.DatePickerColors.selectedYearContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_year_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.selectedYearContentColor (androidx.compose.material3.DatePickerColors.selectedYearContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def subhead_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.subheadContentColor (androidx.compose.material3.DatePickerColors.subheadContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def title_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.titleContentColor (androidx.compose.material3.DatePickerColors.titleContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def today_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.todayContentColor (androidx.compose.material3.DatePickerColors.todayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def today_date_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.todayDateBorderColor (androidx.compose.material3.DatePickerColors.todayDateBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def weekday_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.weekdayContentColor (androidx.compose.material3.DatePickerColors.weekdayContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def year_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerColors.yearContentColor (androidx.compose.material3.DatePickerColors.yearContentColor: androidx.compose.ui.graphics.Color)""" + ... class DatePickerFormatter: """Kotlin: androidx.compose.material3.DatePickerFormatter""" class DatePickerState: """Kotlin: androidx.compose.material3.DatePickerState""" + @property + def display_mode(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerState.displayMode (androidx.compose.material3.DatePickerState.displayMode: androidx.compose.material3.DisplayMode)""" + ... + @display_mode.setter + def display_mode(self, value: _t.Any) -> None: + """Kotlin property: androidx.compose.material3.DatePickerState.displayMode=""" + ... + @property + def displayed_month_millis(self) -> int: + """Kotlin property: androidx.compose.material3.DatePickerState.displayedMonthMillis (androidx.compose.material3.DatePickerState.displayedMonthMillis: kotlin.Long)""" + ... + @displayed_month_millis.setter + def displayed_month_millis(self, value: int) -> None: + """Kotlin property: androidx.compose.material3.DatePickerState.displayedMonthMillis=""" + ... + @property + def selectable_dates(self) -> SelectableDates: + """Kotlin property: androidx.compose.material3.DatePickerState.selectableDates (androidx.compose.material3.DatePickerState.selectableDates: androidx.compose.material3.SelectableDates)""" + ... + @property + def year_range(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DatePickerState.yearRange (androidx.compose.material3.DatePickerState.yearRange: kotlin.ranges.IntRange)""" + ... class DateRangePickerState: """Kotlin: androidx.compose.material3.DateRangePickerState""" + @property + def display_mode(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DateRangePickerState.displayMode (androidx.compose.material3.DateRangePickerState.displayMode: androidx.compose.material3.DisplayMode)""" + ... + @display_mode.setter + def display_mode(self, value: _t.Any) -> None: + """Kotlin property: androidx.compose.material3.DateRangePickerState.displayMode=""" + ... + @property + def displayed_month_millis(self) -> int: + """Kotlin property: androidx.compose.material3.DateRangePickerState.displayedMonthMillis (androidx.compose.material3.DateRangePickerState.displayedMonthMillis: kotlin.Long)""" + ... + @displayed_month_millis.setter + def displayed_month_millis(self, value: int) -> None: + """Kotlin property: androidx.compose.material3.DateRangePickerState.displayedMonthMillis=""" + ... + @property + def selectable_dates(self) -> SelectableDates: + """Kotlin property: androidx.compose.material3.DateRangePickerState.selectableDates (androidx.compose.material3.DateRangePickerState.selectableDates: androidx.compose.material3.SelectableDates)""" + ... + @property + def year_range(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DateRangePickerState.yearRange (androidx.compose.material3.DateRangePickerState.yearRange: kotlin.ranges.IntRange)""" + ... + +class DefaultTooltipCaretShape(pythonx.compose.ui.graphics.Shape): + """Kotlin: androidx.compose.material3.DefaultTooltipCaretShape""" + @property + def caret_size(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DefaultTooltipCaretShape.caretSize (androidx.compose.material3.DefaultTooltipCaretShape.caretSize: androidx.compose.ui.unit.DpSize)""" + ... class DragHandleColors: """Kotlin: androidx.compose.material3.DragHandleColors""" + @property + def color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleColors.color (androidx.compose.material3.DragHandleColors.color: androidx.compose.ui.graphics.Color)""" + ... + @property + def dragged_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleColors.draggedColor (androidx.compose.material3.DragHandleColors.draggedColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def pressed_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleColors.pressedColor (androidx.compose.material3.DragHandleColors.pressedColor: androidx.compose.ui.graphics.Color)""" + ... class DragHandleSizes: """Kotlin: androidx.compose.material3.DragHandleSizes""" + @property + def dragged_size(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleSizes.draggedSize (androidx.compose.material3.DragHandleSizes.draggedSize: androidx.compose.ui.unit.DpSize)""" + ... + @property + def pressed_size(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleSizes.pressedSize (androidx.compose.material3.DragHandleSizes.pressedSize: androidx.compose.ui.unit.DpSize)""" + ... + @property + def size(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.DragHandleSizes.size (androidx.compose.material3.DragHandleSizes.size: androidx.compose.ui.unit.DpSize)""" + ... class DrawerValue: """Kotlin: androidx.compose.material3.DrawerValue""" @@ -101,56 +620,437 @@ class FloatingActionButtonElevation: class IconButtonColors: """Kotlin: androidx.compose.material3.IconButtonColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconButtonColors.containerColor (androidx.compose.material3.IconButtonColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconButtonColors.contentColor (androidx.compose.material3.IconButtonColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconButtonColors.disabledContainerColor (androidx.compose.material3.IconButtonColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconButtonColors.disabledContentColor (androidx.compose.material3.IconButtonColors.disabledContentColor: androidx.compose.ui.graphics.Color)""" + ... class IconToggleButtonColors: """Kotlin: androidx.compose.material3.IconToggleButtonColors""" + @property + def checked_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.checkedContainerColor (androidx.compose.material3.IconToggleButtonColors.checkedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.checkedContentColor (androidx.compose.material3.IconToggleButtonColors.checkedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.containerColor (androidx.compose.material3.IconToggleButtonColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.contentColor (androidx.compose.material3.IconToggleButtonColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.disabledContainerColor (androidx.compose.material3.IconToggleButtonColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.IconToggleButtonColors.disabledContentColor (androidx.compose.material3.IconToggleButtonColors.disabledContentColor: androidx.compose.ui.graphics.Color)""" + ... class ListItemColors: """Kotlin: androidx.compose.material3.ListItemColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.containerColor (androidx.compose.material3.ListItemColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_headline_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.disabledHeadlineColor (androidx.compose.material3.ListItemColors.disabledHeadlineColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.disabledLeadingIconColor (androidx.compose.material3.ListItemColors.disabledLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.disabledTrailingIconColor (androidx.compose.material3.ListItemColors.disabledTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def headline_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.headlineColor (androidx.compose.material3.ListItemColors.headlineColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.leadingIconColor (androidx.compose.material3.ListItemColors.leadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def overline_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.overlineColor (androidx.compose.material3.ListItemColors.overlineColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def supporting_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.supportingTextColor (androidx.compose.material3.ListItemColors.supportingTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.ListItemColors.trailingIconColor (androidx.compose.material3.ListItemColors.trailingIconColor: androidx.compose.ui.graphics.Color)""" + ... class MenuItemColors: """Kotlin: androidx.compose.material3.MenuItemColors""" + @property + def disabled_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.disabledLeadingIconColor (androidx.compose.material3.MenuItemColors.disabledLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.disabledTextColor (androidx.compose.material3.MenuItemColors.disabledTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.disabledTrailingIconColor (androidx.compose.material3.MenuItemColors.disabledTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.leadingIconColor (androidx.compose.material3.MenuItemColors.leadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.textColor (androidx.compose.material3.MenuItemColors.textColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.MenuItemColors.trailingIconColor (androidx.compose.material3.MenuItemColors.trailingIconColor: androidx.compose.ui.graphics.Color)""" + ... class MultiChoiceSegmentedButtonRowScope: """Kotlin: androidx.compose.material3.MultiChoiceSegmentedButtonRowScope""" SegmentedButton: _t.ClassVar[_MultiChoiceSegmentedButtonRowScope_SegmentedButton] SegmentedButton__MultiChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit: _t.ClassVar[_MultiChoiceSegmentedButtonRowScope_SegmentedButton__MultiChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit] +class NavigationBarItemColors: + """Kotlin: androidx.compose.material3.NavigationBarItemColors""" + @property + def disabled_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.disabledIconColor (androidx.compose.material3.NavigationBarItemColors.disabledIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.disabledTextColor (androidx.compose.material3.NavigationBarItemColors.disabledTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.selectedIconColor (androidx.compose.material3.NavigationBarItemColors.selectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.selectedIndicatorColor (androidx.compose.material3.NavigationBarItemColors.selectedIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.selectedTextColor (androidx.compose.material3.NavigationBarItemColors.selectedTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.unselectedIconColor (androidx.compose.material3.NavigationBarItemColors.unselectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationBarItemColors.unselectedTextColor (androidx.compose.material3.NavigationBarItemColors.unselectedTextColor: androidx.compose.ui.graphics.Color)""" + ... + class NavigationDrawerItemColors: """Kotlin: androidx.compose.material3.NavigationDrawerItemColors""" class NavigationItemColors: """Kotlin: androidx.compose.material3.NavigationItemColors""" + @property + def disabled_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.disabledIconColor (androidx.compose.material3.NavigationItemColors.disabledIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.disabledTextColor (androidx.compose.material3.NavigationItemColors.disabledTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.selectedIconColor (androidx.compose.material3.NavigationItemColors.selectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.selectedIndicatorColor (androidx.compose.material3.NavigationItemColors.selectedIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.selectedTextColor (androidx.compose.material3.NavigationItemColors.selectedTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.unselectedIconColor (androidx.compose.material3.NavigationItemColors.unselectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationItemColors.unselectedTextColor (androidx.compose.material3.NavigationItemColors.unselectedTextColor: androidx.compose.ui.graphics.Color)""" + ... class NavigationRailItemColors: """Kotlin: androidx.compose.material3.NavigationRailItemColors""" + @property + def disabled_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.disabledIconColor (androidx.compose.material3.NavigationRailItemColors.disabledIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.disabledTextColor (androidx.compose.material3.NavigationRailItemColors.disabledTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.selectedIconColor (androidx.compose.material3.NavigationRailItemColors.selectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.selectedIndicatorColor (androidx.compose.material3.NavigationRailItemColors.selectedIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.selectedTextColor (androidx.compose.material3.NavigationRailItemColors.selectedTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.unselectedIconColor (androidx.compose.material3.NavigationRailItemColors.unselectedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.NavigationRailItemColors.unselectedTextColor (androidx.compose.material3.NavigationRailItemColors.unselectedTextColor: androidx.compose.ui.graphics.Color)""" + ... class RadioButtonColors: """Kotlin: androidx.compose.material3.RadioButtonColors""" + @property + def disabled_selected_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RadioButtonColors.disabledSelectedColor (androidx.compose.material3.RadioButtonColors.disabledSelectedColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unselected_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RadioButtonColors.disabledUnselectedColor (androidx.compose.material3.RadioButtonColors.disabledUnselectedColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selected_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RadioButtonColors.selectedColor (androidx.compose.material3.RadioButtonColors.selectedColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unselected_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RadioButtonColors.unselectedColor (androidx.compose.material3.RadioButtonColors.unselectedColor: androidx.compose.ui.graphics.Color)""" + ... class RangeSliderState: """Kotlin: androidx.compose.material3.RangeSliderState""" + @property + def active_range_end(self) -> float: + """Kotlin property: androidx.compose.material3.RangeSliderState.activeRangeEnd (androidx.compose.material3.RangeSliderState.activeRangeEnd: kotlin.Float)""" + ... + @active_range_end.setter + def active_range_end(self, value: float) -> None: + """Kotlin property: androidx.compose.material3.RangeSliderState.activeRangeEnd=""" + ... + @property + def active_range_start(self) -> float: + """Kotlin property: androidx.compose.material3.RangeSliderState.activeRangeStart (androidx.compose.material3.RangeSliderState.activeRangeStart: kotlin.Float)""" + ... + @active_range_start.setter + def active_range_start(self, value: float) -> None: + """Kotlin property: androidx.compose.material3.RangeSliderState.activeRangeStart=""" + ... + @property + def steps(self) -> int: + """Kotlin property: androidx.compose.material3.RangeSliderState.steps (androidx.compose.material3.RangeSliderState.steps: kotlin.Int)""" + ... class RichTooltipColors: """Kotlin: androidx.compose.material3.RichTooltipColors""" + @property + def action_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RichTooltipColors.actionContentColor (androidx.compose.material3.RichTooltipColors.actionContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RichTooltipColors.containerColor (androidx.compose.material3.RichTooltipColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RichTooltipColors.contentColor (androidx.compose.material3.RichTooltipColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def title_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RichTooltipColors.titleContentColor (androidx.compose.material3.RichTooltipColors.titleContentColor: androidx.compose.ui.graphics.Color)""" + ... + +class RippleConfiguration: + """Kotlin: androidx.compose.material3.RippleConfiguration""" + @property + def color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.RippleConfiguration.color (androidx.compose.material3.RippleConfiguration.color: androidx.compose.ui.graphics.Color)""" + ... + @property + def ripple_alpha(self) -> _t.Any | None: + """Kotlin property: androidx.compose.material3.RippleConfiguration.rippleAlpha (androidx.compose.material3.RippleConfiguration.rippleAlpha: androidx.compose.material.ripple.RippleAlpha?)""" + ... class SearchBarColors: """Kotlin: androidx.compose.material3.SearchBarColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SearchBarColors.containerColor (androidx.compose.material3.SearchBarColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def divider_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SearchBarColors.dividerColor (androidx.compose.material3.SearchBarColors.dividerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def input_field_colors(self) -> TextFieldColors: + """Kotlin property: androidx.compose.material3.SearchBarColors.inputFieldColors (androidx.compose.material3.SearchBarColors.inputFieldColors: androidx.compose.material3.TextFieldColors)""" + ... class SearchBarScrollBehavior: """Kotlin: androidx.compose.material3.SearchBarScrollBehavior""" + @property + def nested_scroll_connection(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SearchBarScrollBehavior.nestedScrollConnection (androidx.compose.material3.SearchBarScrollBehavior.nestedScrollConnection: androidx.compose.ui.input.nestedscroll.NestedScrollConnection)""" + ... + @property + def scroll_offset(self) -> float: + """Kotlin property: androidx.compose.material3.SearchBarScrollBehavior.scrollOffset (androidx.compose.material3.SearchBarScrollBehavior.scrollOffset: kotlin.Float)""" + ... + @scroll_offset.setter + def scroll_offset(self, value: float) -> None: + """Kotlin property: androidx.compose.material3.SearchBarScrollBehavior.scrollOffset=""" + ... + @property + def scroll_offset_limit(self) -> float: + """Kotlin property: androidx.compose.material3.SearchBarScrollBehavior.scrollOffsetLimit (androidx.compose.material3.SearchBarScrollBehavior.scrollOffsetLimit: kotlin.Float)""" + ... + @scroll_offset_limit.setter + def scroll_offset_limit(self, value: float) -> None: + """Kotlin property: androidx.compose.material3.SearchBarScrollBehavior.scrollOffsetLimit=""" + ... class SearchBarState: """Kotlin: androidx.compose.material3.SearchBarState""" + @property + def collapsed_coords(self) -> _t.Any | None: + """Kotlin property: androidx.compose.material3.SearchBarState.collapsedCoords (androidx.compose.material3.SearchBarState.collapsedCoords: androidx.compose.ui.layout.LayoutCoordinates?)""" + ... + @collapsed_coords.setter + def collapsed_coords(self, value: _t.Any | None) -> None: + """Kotlin property: androidx.compose.material3.SearchBarState.collapsedCoords=""" + ... + @property + def current_value(self) -> SearchBarValue: + """Kotlin property: androidx.compose.material3.SearchBarState.currentValue (androidx.compose.material3.SearchBarState.currentValue: androidx.compose.material3.SearchBarValue)""" + ... + @property + def is_animating(self) -> bool: + """Kotlin property: androidx.compose.material3.SearchBarState.isAnimating (androidx.compose.material3.SearchBarState.isAnimating: kotlin.Boolean)""" + ... + @property + def progress(self) -> float: + """Kotlin property: androidx.compose.material3.SearchBarState.progress (androidx.compose.material3.SearchBarState.progress: kotlin.Float)""" + ... + @property + def target_value(self) -> SearchBarValue: + """Kotlin property: androidx.compose.material3.SearchBarState.targetValue (androidx.compose.material3.SearchBarState.targetValue: androidx.compose.material3.SearchBarValue)""" + ... class SearchBarValue: """Kotlin: androidx.compose.material3.SearchBarValue""" +class SegmentedButtonColors: + """Kotlin: androidx.compose.material3.SegmentedButtonColors""" + @property + def active_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.activeBorderColor (androidx.compose.material3.SegmentedButtonColors.activeBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def active_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.activeContainerColor (androidx.compose.material3.SegmentedButtonColors.activeContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def active_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.activeContentColor (androidx.compose.material3.SegmentedButtonColors.activeContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_active_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledActiveBorderColor (androidx.compose.material3.SegmentedButtonColors.disabledActiveBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_active_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledActiveContainerColor (androidx.compose.material3.SegmentedButtonColors.disabledActiveContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_active_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledActiveContentColor (androidx.compose.material3.SegmentedButtonColors.disabledActiveContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_inactive_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledInactiveBorderColor (androidx.compose.material3.SegmentedButtonColors.disabledInactiveBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_inactive_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledInactiveContainerColor (androidx.compose.material3.SegmentedButtonColors.disabledInactiveContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_inactive_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.disabledInactiveContentColor (androidx.compose.material3.SegmentedButtonColors.disabledInactiveContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def inactive_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.inactiveBorderColor (androidx.compose.material3.SegmentedButtonColors.inactiveBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def inactive_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.inactiveContainerColor (androidx.compose.material3.SegmentedButtonColors.inactiveContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def inactive_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SegmentedButtonColors.inactiveContentColor (androidx.compose.material3.SegmentedButtonColors.inactiveContentColor: androidx.compose.ui.graphics.Color)""" + ... + class SelectableChipColors: """Kotlin: androidx.compose.material3.SelectableChipColors""" class SelectableChipElevation: """Kotlin: androidx.compose.material3.SelectableChipElevation""" + @property + def disabled_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.disabledElevation (androidx.compose.material3.SelectableChipElevation.disabledElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def dragged_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.draggedElevation (androidx.compose.material3.SelectableChipElevation.draggedElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.elevation (androidx.compose.material3.SelectableChipElevation.elevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def focused_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.focusedElevation (androidx.compose.material3.SelectableChipElevation.focusedElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def hovered_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.hoveredElevation (androidx.compose.material3.SelectableChipElevation.hoveredElevation: androidx.compose.ui.unit.Dp)""" + ... + @property + def pressed_elevation(self) -> float: + """Kotlin property: androidx.compose.material3.SelectableChipElevation.pressedElevation (androidx.compose.material3.SelectableChipElevation.pressedElevation: androidx.compose.ui.unit.Dp)""" + ... class SelectableDates: """Kotlin: androidx.compose.material3.SelectableDates""" @@ -165,33 +1065,442 @@ class SingleChoiceSegmentedButtonRowScope: class SliderColors: """Kotlin: androidx.compose.material3.SliderColors""" + @property + def active_tick_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.activeTickColor (androidx.compose.material3.SliderColors.activeTickColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def active_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.activeTrackColor (androidx.compose.material3.SliderColors.activeTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_active_tick_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.disabledActiveTickColor (androidx.compose.material3.SliderColors.disabledActiveTickColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_active_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.disabledActiveTrackColor (androidx.compose.material3.SliderColors.disabledActiveTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_inactive_tick_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.disabledInactiveTickColor (androidx.compose.material3.SliderColors.disabledInactiveTickColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_inactive_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.disabledInactiveTrackColor (androidx.compose.material3.SliderColors.disabledInactiveTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.disabledThumbColor (androidx.compose.material3.SliderColors.disabledThumbColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def inactive_tick_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.inactiveTickColor (androidx.compose.material3.SliderColors.inactiveTickColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def inactive_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.inactiveTrackColor (androidx.compose.material3.SliderColors.inactiveTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SliderColors.thumbColor (androidx.compose.material3.SliderColors.thumbColor: androidx.compose.ui.graphics.Color)""" + ... class SliderState(_t.Any): """Kotlin: androidx.compose.material3.SliderState""" + @property + def coerced_value_as_fraction(self) -> float: + """Kotlin property: androidx.compose.material3.SliderState.coercedValueAsFraction (androidx.compose.material3.SliderState.coercedValueAsFraction: kotlin.Float)""" + ... + @property + def is_dragging(self) -> bool: + """Kotlin property: androidx.compose.material3.SliderState.isDragging (androidx.compose.material3.SliderState.isDragging: kotlin.Boolean)""" + ... + @property + def should_auto_snap(self) -> bool: + """Kotlin property: androidx.compose.material3.SliderState.shouldAutoSnap (androidx.compose.material3.SliderState.shouldAutoSnap: kotlin.Boolean)""" + ... + @should_auto_snap.setter + def should_auto_snap(self, value: bool) -> None: + """Kotlin property: androidx.compose.material3.SliderState.shouldAutoSnap=""" + ... + @property + def steps(self) -> int: + """Kotlin property: androidx.compose.material3.SliderState.steps (androidx.compose.material3.SliderState.steps: kotlin.Int)""" + ... + @property + def value(self) -> float: + """Kotlin property: androidx.compose.material3.SliderState.value (androidx.compose.material3.SliderState.value: kotlin.Float)""" + ... + @value.setter + def value(self, value: float) -> None: + """Kotlin property: androidx.compose.material3.SliderState.value=""" + ... class SnackbarData: """Kotlin: androidx.compose.material3.SnackbarData""" + @property + def visuals(self) -> SnackbarVisuals: + """Kotlin property: androidx.compose.material3.SnackbarData.visuals (androidx.compose.material3.SnackbarData.visuals: androidx.compose.material3.SnackbarVisuals)""" + ... + +class SnackbarDuration: + """Kotlin: androidx.compose.material3.SnackbarDuration""" + +class SnackbarVisuals: + """Kotlin: androidx.compose.material3.SnackbarVisuals""" + @property + def action_label(self) -> str | None: + """Kotlin property: androidx.compose.material3.SnackbarVisuals.actionLabel (androidx.compose.material3.SnackbarVisuals.actionLabel: kotlin.String?)""" + ... + @property + def duration(self) -> SnackbarDuration: + """Kotlin property: androidx.compose.material3.SnackbarVisuals.duration (androidx.compose.material3.SnackbarVisuals.duration: androidx.compose.material3.SnackbarDuration)""" + ... + @property + def message(self) -> str: + """Kotlin property: androidx.compose.material3.SnackbarVisuals.message (androidx.compose.material3.SnackbarVisuals.message: kotlin.String)""" + ... + @property + def with_dismiss_action(self) -> bool: + """Kotlin property: androidx.compose.material3.SnackbarVisuals.withDismissAction (androidx.compose.material3.SnackbarVisuals.withDismissAction: kotlin.Boolean)""" + ... class SwipeToDismissBoxValue: """Kotlin: androidx.compose.material3.SwipeToDismissBoxValue""" class SwitchColors: """Kotlin: androidx.compose.material3.SwitchColors""" + @property + def checked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.checkedBorderColor (androidx.compose.material3.SwitchColors.checkedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.checkedIconColor (androidx.compose.material3.SwitchColors.checkedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.checkedThumbColor (androidx.compose.material3.SwitchColors.checkedThumbColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def checked_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.checkedTrackColor (androidx.compose.material3.SwitchColors.checkedTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_checked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledCheckedBorderColor (androidx.compose.material3.SwitchColors.disabledCheckedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_checked_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledCheckedIconColor (androidx.compose.material3.SwitchColors.disabledCheckedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_checked_thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledCheckedThumbColor (androidx.compose.material3.SwitchColors.disabledCheckedThumbColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_checked_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledCheckedTrackColor (androidx.compose.material3.SwitchColors.disabledCheckedTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledUncheckedBorderColor (androidx.compose.material3.SwitchColors.disabledUncheckedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledUncheckedIconColor (androidx.compose.material3.SwitchColors.disabledUncheckedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledUncheckedThumbColor (androidx.compose.material3.SwitchColors.disabledUncheckedThumbColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_unchecked_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.disabledUncheckedTrackColor (androidx.compose.material3.SwitchColors.disabledUncheckedTrackColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.uncheckedBorderColor (androidx.compose.material3.SwitchColors.uncheckedBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.uncheckedIconColor (androidx.compose.material3.SwitchColors.uncheckedIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_thumb_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.uncheckedThumbColor (androidx.compose.material3.SwitchColors.uncheckedThumbColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unchecked_track_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.SwitchColors.uncheckedTrackColor (androidx.compose.material3.SwitchColors.uncheckedTrackColor: androidx.compose.ui.graphics.Color)""" + ... class TabIndicatorScope: """Kotlin: androidx.compose.material3.TabIndicatorScope""" +class TabPosition: + """Kotlin: androidx.compose.material3.TabPosition""" + @property + def content_width(self) -> float: + """Kotlin property: androidx.compose.material3.TabPosition.contentWidth (androidx.compose.material3.TabPosition.contentWidth: androidx.compose.ui.unit.Dp)""" + ... + @property + def left(self) -> float: + """Kotlin property: androidx.compose.material3.TabPosition.left (androidx.compose.material3.TabPosition.left: androidx.compose.ui.unit.Dp)""" + ... + @property + def right(self) -> float: + """Kotlin property: androidx.compose.material3.TabPosition.right (androidx.compose.material3.TabPosition.right: androidx.compose.ui.unit.Dp)""" + ... + @property + def width(self) -> float: + """Kotlin property: androidx.compose.material3.TabPosition.width (androidx.compose.material3.TabPosition.width: androidx.compose.ui.unit.Dp)""" + ... + class TextFieldColors: """Kotlin: androidx.compose.material3.TextFieldColors""" + @property + def cursor_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.cursorColor (androidx.compose.material3.TextFieldColors.cursorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledContainerColor (androidx.compose.material3.TextFieldColors.disabledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledIndicatorColor (androidx.compose.material3.TextFieldColors.disabledIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledLabelColor (androidx.compose.material3.TextFieldColors.disabledLabelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledLeadingIconColor (androidx.compose.material3.TextFieldColors.disabledLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_placeholder_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledPlaceholderColor (androidx.compose.material3.TextFieldColors.disabledPlaceholderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_prefix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledPrefixColor (androidx.compose.material3.TextFieldColors.disabledPrefixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_suffix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledSuffixColor (androidx.compose.material3.TextFieldColors.disabledSuffixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_supporting_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledSupportingTextColor (androidx.compose.material3.TextFieldColors.disabledSupportingTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledTextColor (androidx.compose.material3.TextFieldColors.disabledTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def disabled_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.disabledTrailingIconColor (androidx.compose.material3.TextFieldColors.disabledTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorContainerColor (androidx.compose.material3.TextFieldColors.errorContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_cursor_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorCursorColor (androidx.compose.material3.TextFieldColors.errorCursorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorIndicatorColor (androidx.compose.material3.TextFieldColors.errorIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorLabelColor (androidx.compose.material3.TextFieldColors.errorLabelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorLeadingIconColor (androidx.compose.material3.TextFieldColors.errorLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_placeholder_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorPlaceholderColor (androidx.compose.material3.TextFieldColors.errorPlaceholderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_prefix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorPrefixColor (androidx.compose.material3.TextFieldColors.errorPrefixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_suffix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorSuffixColor (androidx.compose.material3.TextFieldColors.errorSuffixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_supporting_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorSupportingTextColor (androidx.compose.material3.TextFieldColors.errorSupportingTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorTextColor (androidx.compose.material3.TextFieldColors.errorTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def error_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.errorTrailingIconColor (androidx.compose.material3.TextFieldColors.errorTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedContainerColor (androidx.compose.material3.TextFieldColors.focusedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedIndicatorColor (androidx.compose.material3.TextFieldColors.focusedIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedLabelColor (androidx.compose.material3.TextFieldColors.focusedLabelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedLeadingIconColor (androidx.compose.material3.TextFieldColors.focusedLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_placeholder_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedPlaceholderColor (androidx.compose.material3.TextFieldColors.focusedPlaceholderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_prefix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedPrefixColor (androidx.compose.material3.TextFieldColors.focusedPrefixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_suffix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedSuffixColor (androidx.compose.material3.TextFieldColors.focusedSuffixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_supporting_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedSupportingTextColor (androidx.compose.material3.TextFieldColors.focusedSupportingTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedTextColor (androidx.compose.material3.TextFieldColors.focusedTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def focused_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.focusedTrailingIconColor (androidx.compose.material3.TextFieldColors.focusedTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def text_selection_colors(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.textSelectionColors (androidx.compose.material3.TextFieldColors.textSelectionColors: androidx.compose.foundation.text.selection.TextSelectionColors)""" + ... + @property + def unfocused_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedContainerColor (androidx.compose.material3.TextFieldColors.unfocusedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_indicator_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedIndicatorColor (androidx.compose.material3.TextFieldColors.unfocusedIndicatorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_label_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedLabelColor (androidx.compose.material3.TextFieldColors.unfocusedLabelColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_leading_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedLeadingIconColor (androidx.compose.material3.TextFieldColors.unfocusedLeadingIconColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_placeholder_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedPlaceholderColor (androidx.compose.material3.TextFieldColors.unfocusedPlaceholderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_prefix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedPrefixColor (androidx.compose.material3.TextFieldColors.unfocusedPrefixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_suffix_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedSuffixColor (androidx.compose.material3.TextFieldColors.unfocusedSuffixColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_supporting_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedSupportingTextColor (androidx.compose.material3.TextFieldColors.unfocusedSupportingTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_text_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedTextColor (androidx.compose.material3.TextFieldColors.unfocusedTextColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def unfocused_trailing_icon_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TextFieldColors.unfocusedTrailingIconColor (androidx.compose.material3.TextFieldColors.unfocusedTrailingIconColor: androidx.compose.ui.graphics.Color)""" + ... class TextFieldLabelPosition: """Kotlin: androidx.compose.material3.TextFieldLabelPosition""" class TextFieldLabelScope: """Kotlin: androidx.compose.material3.TextFieldLabelScope""" + @property + def label_minimized_progress(self) -> float: + """Kotlin property: androidx.compose.material3.TextFieldLabelScope.labelMinimizedProgress (androidx.compose.material3.TextFieldLabelScope.labelMinimizedProgress: kotlin.Float)""" + ... class TimePickerColors: """Kotlin: androidx.compose.material3.TimePickerColors""" + @property + def clock_dial_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.clockDialColor (androidx.compose.material3.TimePickerColors.clockDialColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def clock_dial_selected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.clockDialSelectedContentColor (androidx.compose.material3.TimePickerColors.clockDialSelectedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def clock_dial_unselected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.clockDialUnselectedContentColor (androidx.compose.material3.TimePickerColors.clockDialUnselectedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.containerColor (androidx.compose.material3.TimePickerColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def period_selector_border_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.periodSelectorBorderColor (androidx.compose.material3.TimePickerColors.periodSelectorBorderColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def period_selector_selected_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.periodSelectorSelectedContainerColor (androidx.compose.material3.TimePickerColors.periodSelectorSelectedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def period_selector_selected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.periodSelectorSelectedContentColor (androidx.compose.material3.TimePickerColors.periodSelectorSelectedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def period_selector_unselected_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.periodSelectorUnselectedContainerColor (androidx.compose.material3.TimePickerColors.periodSelectorUnselectedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def period_selector_unselected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.periodSelectorUnselectedContentColor (androidx.compose.material3.TimePickerColors.periodSelectorUnselectedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def selector_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.selectorColor (androidx.compose.material3.TimePickerColors.selectorColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def time_selector_selected_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.timeSelectorSelectedContainerColor (androidx.compose.material3.TimePickerColors.timeSelectorSelectedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def time_selector_selected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.timeSelectorSelectedContentColor (androidx.compose.material3.TimePickerColors.timeSelectorSelectedContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def time_selector_unselected_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.timeSelectorUnselectedContainerColor (androidx.compose.material3.TimePickerColors.timeSelectorUnselectedContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def time_selector_unselected_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TimePickerColors.timeSelectorUnselectedContentColor (androidx.compose.material3.TimePickerColors.timeSelectorUnselectedContentColor: androidx.compose.ui.graphics.Color)""" + ... class TooltipScope: """Kotlin: androidx.compose.material3.TooltipScope""" @@ -200,15 +1509,83 @@ class TooltipScope: class TopAppBarColors: """Kotlin: androidx.compose.material3.TopAppBarColors""" + @property + def action_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.actionIconContentColor (androidx.compose.material3.TopAppBarColors.actionIconContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.containerColor (androidx.compose.material3.TopAppBarColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def navigation_icon_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.navigationIconContentColor (androidx.compose.material3.TopAppBarColors.navigationIconContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def scrolled_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.scrolledContainerColor (androidx.compose.material3.TopAppBarColors.scrolledContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def subtitle_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.subtitleContentColor (androidx.compose.material3.TopAppBarColors.subtitleContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def title_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarColors.titleContentColor (androidx.compose.material3.TopAppBarColors.titleContentColor: androidx.compose.ui.graphics.Color)""" + ... class TopAppBarScrollBehavior: """Kotlin: androidx.compose.material3.TopAppBarScrollBehavior""" + @property + def is_pinned(self) -> bool: + """Kotlin property: androidx.compose.material3.TopAppBarScrollBehavior.isPinned (androidx.compose.material3.TopAppBarScrollBehavior.isPinned: kotlin.Boolean)""" + ... + @property + def nested_scroll_connection(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarScrollBehavior.nestedScrollConnection (androidx.compose.material3.TopAppBarScrollBehavior.nestedScrollConnection: androidx.compose.ui.input.nestedscroll.NestedScrollConnection)""" + ... + @property + def state(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.TopAppBarScrollBehavior.state (androidx.compose.material3.TopAppBarScrollBehavior.state: androidx.compose.material3.TopAppBarState)""" + ... class WideNavigationRailColors: """Kotlin: androidx.compose.material3.WideNavigationRailColors""" + @property + def container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.WideNavigationRailColors.containerColor (androidx.compose.material3.WideNavigationRailColors.containerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.WideNavigationRailColors.contentColor (androidx.compose.material3.WideNavigationRailColors.contentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def modal_container_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.WideNavigationRailColors.modalContainerColor (androidx.compose.material3.WideNavigationRailColors.modalContainerColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def modal_content_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.WideNavigationRailColors.modalContentColor (androidx.compose.material3.WideNavigationRailColors.modalContentColor: androidx.compose.ui.graphics.Color)""" + ... + @property + def modal_scrim_color(self) -> _t.Any: + """Kotlin property: androidx.compose.material3.WideNavigationRailColors.modalScrimColor (androidx.compose.material3.WideNavigationRailColors.modalScrimColor: androidx.compose.ui.graphics.Color)""" + ... class WideNavigationRailState: """Kotlin: androidx.compose.material3.WideNavigationRailState""" + @property + def current_value(self) -> WideNavigationRailValue: + """Kotlin property: androidx.compose.material3.WideNavigationRailState.currentValue (androidx.compose.material3.WideNavigationRailState.currentValue: androidx.compose.material3.WideNavigationRailValue)""" + ... + @property + def is_animating(self) -> bool: + """Kotlin property: androidx.compose.material3.WideNavigationRailState.isAnimating (androidx.compose.material3.WideNavigationRailState.isAnimating: kotlin.Boolean)""" + ... + @property + def target_value(self) -> WideNavigationRailValue: + """Kotlin property: androidx.compose.material3.WideNavigationRailState.targetValue (androidx.compose.material3.WideNavigationRailState.targetValue: androidx.compose.material3.WideNavigationRailValue)""" + ... class WideNavigationRailValue: """Kotlin: androidx.compose.material3.WideNavigationRailValue""" @@ -529,7 +1906,7 @@ def ModalNavigationDrawer(drawer_content: _t.Callable[[], None], modifier: pytho """Kotlin: androidx.compose.material3.ModalNavigationDrawer(drawerContent: kotlin.Function0, modifier: androidx.compose.ui.Modifier, drawerState: androidx.compose.material3.DrawerState, gesturesEnabled: kotlin.Boolean, scrimColor: androidx.compose.ui.graphics.Color, content: kotlin.Function0): kotlin.Unit""" ... -def ModalWideNavigationRail(modifier: pythonx.compose.ui.Modifier = ..., state: WideNavigationRailState = ..., hide_on_collapse: bool = ..., collapsed_shape: pythonx.compose.ui.graphics.Shape = ..., expanded_shape: pythonx.compose.ui.graphics.Shape = ..., colors: WideNavigationRailColors = ..., header: _t.Callable[[], None] | None = ..., expanded_header_top_padding: float = ..., window_insets: _t.Any = ..., arrangement: _t.Any = ..., expanded_properties: _t.Any = ..., *, content: _t.Callable[[], None]) -> None: +def ModalWideNavigationRail(modifier: pythonx.compose.ui.Modifier = ..., state: WideNavigationRailState = ..., hide_on_collapse: bool = ..., collapsed_shape: pythonx.compose.ui.graphics.Shape = ..., expanded_shape: pythonx.compose.ui.graphics.Shape = ..., colors: WideNavigationRailColors = ..., header: _t.Callable[[], None] | None = ..., expanded_header_top_padding: float = ..., window_insets: _t.Any = ..., arrangement: pythonx.compose.layout.Arrangement.Vertical = ..., expanded_properties: _t.Any = ..., *, content: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.ModalWideNavigationRail(modifier: androidx.compose.ui.Modifier, state: androidx.compose.material3.WideNavigationRailState, hideOnCollapse: kotlin.Boolean, collapsedShape: androidx.compose.ui.graphics.Shape, expandedShape: androidx.compose.ui.graphics.Shape, colors: androidx.compose.material3.WideNavigationRailColors, header: kotlin.Function0?, expandedHeaderTopPadding: androidx.compose.ui.unit.Dp, windowInsets: androidx.compose.foundation.layout.WindowInsets, arrangement: androidx.compose.foundation.layout.Arrangement.Vertical, expandedProperties: androidx.compose.material3.ModalWideNavigationRailProperties, content: kotlin.Function0): kotlin.Unit""" ... @@ -545,7 +1922,7 @@ def NavigationBar(modifier: pythonx.compose.ui.Modifier = ..., container_color: """Kotlin: androidx.compose.material3.NavigationBar(modifier: androidx.compose.ui.Modifier, containerColor: androidx.compose.ui.graphics.Color, contentColor: androidx.compose.ui.graphics.Color, tonalElevation: androidx.compose.ui.unit.Dp, windowInsets: androidx.compose.foundation.layout.WindowInsets, content: kotlin.Function1): kotlin.Unit""" ... -def NavigationBarItem(receiver: pythonx.compose.layout.RowScope, /, selected: bool, on_click: _t.Callable[[], None], icon: _t.Callable[[], None], modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., label: _t.Callable[[], None] | None = ..., always_show_label: bool = ..., colors: bool = ..., interaction_source: _t.Any | None = ...) -> None: +def NavigationBarItem(receiver: pythonx.compose.layout.RowScope, /, selected: bool, on_click: _t.Callable[[], None], icon: _t.Callable[[], None], modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., label: _t.Callable[[], None] | None = ..., always_show_label: bool = ..., colors: NavigationBarItemColors = ..., interaction_source: _t.Any | None = ...) -> None: """Kotlin: androidx.compose.foundation.layout.RowScope.NavigationBarItem(selected: kotlin.Boolean, onClick: kotlin.Function0, icon: kotlin.Function0, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, label: kotlin.Function0?, alwaysShowLabel: kotlin.Boolean, colors: androidx.compose.material3.NavigationBarItemColors, interactionSource: androidx.compose.foundation.interaction.MutableInteractionSource?): kotlin.Unit""" ... @@ -601,7 +1978,7 @@ def PermanentNavigationDrawer(drawer_content: _t.Callable[[], None], modifier: p """Kotlin: androidx.compose.material3.PermanentNavigationDrawer(drawerContent: kotlin.Function0, modifier: androidx.compose.ui.Modifier, content: kotlin.Function0): kotlin.Unit""" ... -def PlainTooltip(receiver: TooltipScope, /, modifier: pythonx.compose.ui.Modifier = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: _t.Any = ..., shape: float = ..., content_color: _t.Any = ..., container_color: _t.Any = ..., tonal_elevation: _t.Any = ..., shadow_elevation: float = ..., *, content: _t.Callable[[], None]) -> None: +def PlainTooltip(receiver: TooltipScope, /, modifier: pythonx.compose.ui.Modifier = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: float = ..., shape: pythonx.compose.ui.graphics.Shape = ..., content_color: _t.Any = ..., container_color: _t.Any = ..., tonal_elevation: float = ..., shadow_elevation: float = ..., *, content: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.TooltipScope.PlainTooltip(modifier: androidx.compose.ui.Modifier, caretShape: androidx.compose.ui.graphics.Shape?, maxWidth: androidx.compose.ui.unit.Dp, shape: androidx.compose.ui.graphics.Shape, contentColor: androidx.compose.ui.graphics.Color, containerColor: androidx.compose.ui.graphics.Color, tonalElevation: androidx.compose.ui.unit.Dp, shadowElevation: androidx.compose.ui.unit.Dp, content: kotlin.Function0): kotlin.Unit""" ... @@ -633,7 +2010,7 @@ def RangeSlider__RangeSliderState_Modifier_Boolean_SliderColors_MutableInteracti """Kotlin: androidx.compose.material3.RangeSlider(state: androidx.compose.material3.RangeSliderState, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, colors: androidx.compose.material3.SliderColors, startInteractionSource: androidx.compose.foundation.interaction.MutableInteractionSource, endInteractionSource: androidx.compose.foundation.interaction.MutableInteractionSource, startThumb: kotlin.Function1, endThumb: kotlin.Function1, track: kotlin.Function1): kotlin.Unit""" ... -def RichTooltip(receiver: TooltipScope, /, modifier: pythonx.compose.ui.Modifier = ..., title: _t.Callable[[], None] | None = ..., action: _t.Callable[[], None] | None = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: _t.Any = ..., shape: float = ..., colors: RichTooltipColors = ..., tonal_elevation: _t.Any = ..., shadow_elevation: float = ..., *, text: _t.Callable[[], None]) -> None: +def RichTooltip(receiver: TooltipScope, /, modifier: pythonx.compose.ui.Modifier = ..., title: _t.Callable[[], None] | None = ..., action: _t.Callable[[], None] | None = ..., caret_shape: pythonx.compose.ui.graphics.Shape | None = ..., max_width: float = ..., shape: pythonx.compose.ui.graphics.Shape = ..., colors: RichTooltipColors = ..., tonal_elevation: float = ..., shadow_elevation: float = ..., *, text: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.TooltipScope.RichTooltip(modifier: androidx.compose.ui.Modifier, title: kotlin.Function0?, action: kotlin.Function0?, caretShape: androidx.compose.ui.graphics.Shape?, maxWidth: androidx.compose.ui.unit.Dp, shape: androidx.compose.ui.graphics.Shape, colors: androidx.compose.material3.RichTooltipColors, tonalElevation: androidx.compose.ui.unit.Dp, shadowElevation: androidx.compose.ui.unit.Dp, text: kotlin.Function0): kotlin.Unit""" ... @@ -665,11 +2042,11 @@ def SecondaryTabRow(selected_tab_index: int, modifier: pythonx.compose.ui.Modifi """Kotlin: androidx.compose.material3.SecondaryTabRow(selectedTabIndex: kotlin.Int, modifier: androidx.compose.ui.Modifier, containerColor: androidx.compose.ui.graphics.Color, contentColor: androidx.compose.ui.graphics.Color, indicator: kotlin.Function1, divider: kotlin.Function0, tabs: kotlin.Function0): kotlin.Unit""" ... -def SegmentedButton__MultiChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(receiver: MultiChoiceSegmentedButtonRowScope, /, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: +def SegmentedButton__MultiChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(receiver: MultiChoiceSegmentedButtonRowScope, /, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.MultiChoiceSegmentedButtonRowScope.SegmentedButton(checked: kotlin.Boolean, onCheckedChange: kotlin.Function1, shape: androidx.compose.ui.graphics.Shape, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, colors: androidx.compose.material3.SegmentedButtonColors, border: androidx.compose.foundation.BorderStroke, contentPadding: androidx.compose.foundation.layout.PaddingValues, interactionSource: androidx.compose.foundation.interaction.MutableInteractionSource?, icon: kotlin.Function0, label: kotlin.Function0): kotlin.Unit""" ... -def SegmentedButton__SingleChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(receiver: SingleChoiceSegmentedButtonRowScope, /, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: +def SegmentedButton__SingleChoiceSegmentedButtonRowScope_Boolean_Unit_Shape_Modifier_Boolean_SegmentedButtonColors_BorderStroke_PaddingValues_MutableInteractionSource_Unit_Unit(receiver: SingleChoiceSegmentedButtonRowScope, /, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.SingleChoiceSegmentedButtonRowScope.SegmentedButton(selected: kotlin.Boolean, onClick: kotlin.Function0, shape: androidx.compose.ui.graphics.Shape, modifier: androidx.compose.ui.Modifier, enabled: kotlin.Boolean, colors: androidx.compose.material3.SegmentedButtonColors, border: androidx.compose.foundation.BorderStroke, contentPadding: androidx.compose.foundation.layout.PaddingValues, interactionSource: androidx.compose.foundation.interaction.MutableInteractionSource?, icon: kotlin.Function0, label: kotlin.Function0): kotlin.Unit""" ... @@ -849,7 +2226,7 @@ def VerticalDragHandle(modifier: pythonx.compose.ui.Modifier = ..., sizes: DragH """Kotlin: androidx.compose.material3.VerticalDragHandle(modifier: androidx.compose.ui.Modifier, sizes: androidx.compose.material3.DragHandleSizes, colors: androidx.compose.material3.DragHandleColors, shapes: androidx.compose.material3.DragHandleShapes, interactionSource: androidx.compose.foundation.interaction.MutableInteractionSource?): kotlin.Unit""" ... -def WideNavigationRail(modifier: pythonx.compose.ui.Modifier = ..., state: WideNavigationRailState = ..., shape: pythonx.compose.ui.graphics.Shape = ..., colors: WideNavigationRailColors = ..., header: _t.Callable[[], None] | None = ..., window_insets: _t.Any = ..., arrangement: _t.Any = ..., *, content: _t.Callable[[], None]) -> None: +def WideNavigationRail(modifier: pythonx.compose.ui.Modifier = ..., state: WideNavigationRailState = ..., shape: pythonx.compose.ui.graphics.Shape = ..., colors: WideNavigationRailColors = ..., header: _t.Callable[[], None] | None = ..., window_insets: _t.Any = ..., arrangement: pythonx.compose.layout.Arrangement.Vertical = ..., *, content: _t.Callable[[], None]) -> None: """Kotlin: androidx.compose.material3.WideNavigationRail(modifier: androidx.compose.ui.Modifier, state: androidx.compose.material3.WideNavigationRailState, shape: androidx.compose.ui.graphics.Shape, colors: androidx.compose.material3.WideNavigationRailColors, header: kotlin.Function0?, windowInsets: androidx.compose.foundation.layout.WindowInsets, arrangement: androidx.compose.foundation.layout.Arrangement.Vertical, content: kotlin.Function0): kotlin.Unit""" ... @@ -1060,9 +2437,9 @@ def SearchBar(query: str, on_query_change: _t.Callable[[str], None], on_search: def SearchBar(input_field: _t.Callable[[], None], expanded: bool, on_expanded_change: _t.Callable[[bool], None], modifier: pythonx.compose.ui.Modifier = ..., shape: pythonx.compose.ui.graphics.Shape = ..., colors: SearchBarColors = ..., tonal_elevation: float = ..., shadow_elevation: float = ..., window_insets: _t.Any = ..., *, content: _t.Callable[[pythonx.compose.layout.ColumnScope], None]) -> None: ... # type: ignore[overload-cannot-match] @_t.overload -def SegmentedButton(receiver: MultiChoiceSegmentedButtonRowScope, /, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... +def SegmentedButton(receiver: MultiChoiceSegmentedButtonRowScope, /, checked: bool, on_checked_change: _t.Callable[[bool], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... @_t.overload -def SegmentedButton(receiver: SingleChoiceSegmentedButtonRowScope, /, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: bool = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... # type: ignore[overload-cannot-match] +def SegmentedButton(receiver: SingleChoiceSegmentedButtonRowScope, /, selected: bool, on_click: _t.Callable[[], None], shape: pythonx.compose.ui.graphics.Shape, modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., colors: SegmentedButtonColors = ..., border: pythonx.compose.foundation.BorderStroke = ..., content_padding: _t.Any = ..., interaction_source: _t.Any | None = ..., icon: _t.Callable[[], None] = ..., *, label: _t.Callable[[], None]) -> None: ... # type: ignore[overload-cannot-match] @_t.overload def Slider(value: float, on_value_change: _t.Callable[[float], None], modifier: pythonx.compose.ui.Modifier = ..., enabled: bool = ..., value_range: _t.Any = ..., steps: int = ..., on_value_change_finished: _t.Callable[[], None] | None = ..., colors: SliderColors = ..., interaction_source: _t.Any = ...) -> None: ... @@ -1203,6 +2580,10 @@ class DatePickerDefaults: """Kotlin: androidx.compose.material3.DatePickerDefaults.YearMonthWeekdayDaySkeleton(): kotlin.String""" YearRange: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.material3.DatePickerDefaults.YearRange(): kotlin.ranges.IntRange""" + @staticmethod + def date_formatter(year_selection_skeleton: str = ..., selected_date_skeleton: str = ..., selected_date_description_skeleton: str = ...) -> DatePickerFormatter: + """Kotlin: androidx.compose.material3.DatePickerDefaults.dateFormatter(yearSelectionSkeleton: kotlin.String, selectedDateSkeleton: kotlin.String, selectedDateDescriptionSkeleton: kotlin.String): androidx.compose.material3.DatePickerFormatter""" + ... class DisplayMode: """Kotlin: androidx.compose.material3.DisplayMode""" @@ -1263,6 +2644,10 @@ class FloatingActionButtonDefaults: """Kotlin: androidx.compose.material3.FloatingActionButtonDefaults""" LargeIconSize: _t.ClassVar[float] """Kotlin: androidx.compose.material3.FloatingActionButtonDefaults.LargeIconSize(): androidx.compose.ui.unit.Dp""" + @staticmethod + def bottom_app_bar_fab_elevation(default_elevation: float = ..., pressed_elevation: float = ..., focused_elevation: float = ..., hovered_elevation: float = ...) -> FloatingActionButtonElevation: + """Kotlin: androidx.compose.material3.FloatingActionButtonDefaults.bottomAppBarFabElevation(defaultElevation: androidx.compose.ui.unit.Dp, pressedElevation: androidx.compose.ui.unit.Dp, focusedElevation: androidx.compose.ui.unit.Dp, hoveredElevation: androidx.compose.ui.unit.Dp): androidx.compose.material3.FloatingActionButtonElevation""" + ... class InputChipDefaults: """Kotlin: androidx.compose.material3.InputChipDefaults""" @@ -1319,6 +2704,10 @@ class OutlinedTextFieldDefaults: """Kotlin: androidx.compose.material3.OutlinedTextFieldDefaults.MinWidth(): androidx.compose.ui.unit.Dp""" UnfocusedBorderThickness: _t.ClassVar[float] """Kotlin: androidx.compose.material3.OutlinedTextFieldDefaults.UnfocusedBorderThickness(): androidx.compose.ui.unit.Dp""" + @staticmethod + def content_padding(start: float = ..., top: float = ..., end: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.OutlinedTextFieldDefaults.contentPadding(start: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... class ProgressIndicatorDefaults: """Kotlin: androidx.compose.material3.ProgressIndicatorDefaults""" @@ -1336,6 +2725,10 @@ class ProgressIndicatorDefaults: """Kotlin: androidx.compose.material3.ProgressIndicatorDefaults.LinearStrokeCap(): androidx.compose.ui.graphics.StrokeCap""" LinearTrackStopIndicatorSize: _t.ClassVar[float] """Kotlin: androidx.compose.material3.ProgressIndicatorDefaults.LinearTrackStopIndicatorSize(): androidx.compose.ui.unit.Dp""" + @staticmethod + def draw_stop_indicator(draw_scope: _t.Any, stop_size: float, color: _t.Any, stroke_cap: _t.Any) -> None: + """Kotlin: androidx.compose.material3.ProgressIndicatorDefaults.drawStopIndicator(drawScope: androidx.compose.ui.graphics.drawscope.DrawScope, stopSize: androidx.compose.ui.unit.Dp, color: androidx.compose.ui.graphics.Color, strokeCap: androidx.compose.ui.graphics.StrokeCap): kotlin.Unit""" + ... class RippleDefaults: """Kotlin: androidx.compose.material3.RippleDefaults""" @@ -1361,6 +2754,10 @@ class SegmentedButtonDefaults: """Kotlin: androidx.compose.material3.SegmentedButtonDefaults.ContentPadding(): androidx.compose.foundation.layout.PaddingValues""" IconSize: _t.ClassVar[float] """Kotlin: androidx.compose.material3.SegmentedButtonDefaults.IconSize(): androidx.compose.ui.unit.Dp""" + @staticmethod + def border_stroke(color: _t.Any, width: float = ...) -> pythonx.compose.foundation.BorderStroke: + """Kotlin: androidx.compose.material3.SegmentedButtonDefaults.borderStroke(color: androidx.compose.ui.graphics.Color, width: androidx.compose.ui.unit.Dp): androidx.compose.foundation.BorderStroke""" + ... class ShapeDefaults: """Kotlin: androidx.compose.material3.ShapeDefaults""" @@ -1427,6 +2824,26 @@ class TextFieldDefaults: """Kotlin: androidx.compose.material3.TextFieldDefaults.UnfocusedBorderThickness(): androidx.compose.ui.unit.Dp""" UnfocusedIndicatorThickness: _t.ClassVar[float] """Kotlin: androidx.compose.material3.TextFieldDefaults.UnfocusedIndicatorThickness(): androidx.compose.ui.unit.Dp""" + @staticmethod + def content_padding_with_label(start: float = ..., end: float = ..., top: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.TextFieldDefaults.contentPaddingWithLabel(start: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... + @staticmethod + def content_padding_without_label(start: float = ..., top: float = ..., end: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.TextFieldDefaults.contentPaddingWithoutLabel(start: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... + @staticmethod + def outlined_text_field_padding(start: float = ..., top: float = ..., end: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.TextFieldDefaults.outlinedTextFieldPadding(start: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... + @staticmethod + def text_field_with_label_padding(start: float = ..., end: float = ..., top: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.TextFieldDefaults.textFieldWithLabelPadding(start: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... + @staticmethod + def text_field_without_label_padding(start: float = ..., top: float = ..., end: float = ..., bottom: float = ...) -> _t.Any: + """Kotlin: androidx.compose.material3.TextFieldDefaults.textFieldWithoutLabelPadding(start: androidx.compose.ui.unit.Dp, top: androidx.compose.ui.unit.Dp, end: androidx.compose.ui.unit.Dp, bottom: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.PaddingValues""" + ... class TimePickerDialogDefaults: """Kotlin: androidx.compose.material3.TimePickerDialogDefaults""" @@ -1471,12 +2888,26 @@ class TooltipAnchorPosition: class TooltipDefaults: """Kotlin: androidx.compose.material3.TooltipDefaults""" + @staticmethod + def caret_shape__0() -> DefaultTooltipCaretShape: + """Kotlin: androidx.compose.material3.TooltipDefaults.caretShape(): androidx.compose.material3.DefaultTooltipCaretShape""" + ... + @staticmethod + def caret_shape__DpSize(caret_size: _t.Any) -> pythonx.compose.ui.graphics.Shape: + """Kotlin: androidx.compose.material3.TooltipDefaults.caretShape(caretSize: androidx.compose.ui.unit.DpSize): androidx.compose.ui.graphics.Shape""" + ... caret_size: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.material3.TooltipDefaults.caretSize(): androidx.compose.ui.unit.DpSize""" plain_tooltip_max_width: _t.ClassVar[float] """Kotlin: androidx.compose.material3.TooltipDefaults.plainTooltipMaxWidth(): androidx.compose.ui.unit.Dp""" rich_tooltip_max_width: _t.ClassVar[float] """Kotlin: androidx.compose.material3.TooltipDefaults.richTooltipMaxWidth(): androidx.compose.ui.unit.Dp""" + @staticmethod + @_t.overload + def caret_shape() -> DefaultTooltipCaretShape: ... + @staticmethod + @_t.overload + def caret_shape(caret_size: _t.Any) -> pythonx.compose.ui.graphics.Shape: ... # type: ignore[overload-cannot-match] class TopAppBarDefaults: """Kotlin: androidx.compose.material3.TopAppBarDefaults""" @@ -1504,9 +2935,33 @@ class TopAppBarState: Saver: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.material3.TopAppBarState.Saver(): androidx.compose.runtime.saveable.Saver""" +class VerticalDragHandleDefaults: + """Kotlin: androidx.compose.material3.VerticalDragHandleDefaults""" + @staticmethod + def sizes__0() -> DragHandleSizes: + """Kotlin: androidx.compose.material3.VerticalDragHandleDefaults.sizes(): androidx.compose.material3.DragHandleSizes""" + ... + @staticmethod + def sizes__DpSize_DpSize_DpSize(size: _t.Any = ..., pressed_size: _t.Any = ..., dragged_size: _t.Any = ...) -> DragHandleSizes: + """Kotlin: androidx.compose.material3.VerticalDragHandleDefaults.sizes(size: androidx.compose.ui.unit.DpSize, pressedSize: androidx.compose.ui.unit.DpSize, draggedSize: androidx.compose.ui.unit.DpSize): androidx.compose.material3.DragHandleSizes""" + ... + @staticmethod + @_t.overload + def sizes() -> DragHandleSizes: ... + @staticmethod + @_t.overload + def sizes(size: _t.Any = ..., pressed_size: _t.Any = ..., dragged_size: _t.Any = ...) -> DragHandleSizes: ... # type: ignore[overload-cannot-match] + class WideNavigationRailDefaults: """Kotlin: androidx.compose.material3.WideNavigationRailDefaults""" ModalExpandedProperties: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.material3.WideNavigationRailDefaults.ModalExpandedProperties(): androidx.compose.material3.ModalWideNavigationRailProperties""" - arrangement: _t.ClassVar[_t.Any] + arrangement: _t.ClassVar[pythonx.compose.layout.Arrangement.Vertical] """Kotlin: androidx.compose.material3.WideNavigationRailDefaults.arrangement(): androidx.compose.foundation.layout.Arrangement.Vertical""" + +class WideNavigationRailItemDefaults: + """Kotlin: androidx.compose.material3.WideNavigationRailItemDefaults""" + @staticmethod + def icon_position_for(rail_expanded: bool) -> _t.Any: + """Kotlin: androidx.compose.material3.WideNavigationRailItemDefaults.iconPositionFor(railExpanded: kotlin.Boolean): androidx.compose.material3.NavigationItemIconPosition""" + ... diff --git a/pythonx/compose/runtime/__init__.pyi b/pythonx/compose/runtime/__init__.pyi index f3ce745..4bd45f8 100644 --- a/pythonx/compose/runtime/__init__.pyi +++ b/pythonx/compose/runtime/__init__.pyi @@ -1,4 +1,4 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t import pythonx.compose.ui @@ -11,17 +11,156 @@ class _CompositionLocalAccessorScope_mediaQuery(_t.Protocol): class _CompositionLocalAccessorScope_mediaQuery__CompositionLocalAccessorScope_Boolean(_t.Protocol): def __call__(self, query: _t.Callable[[pythonx.compose.ui.UiMediaScope], bool]) -> bool: ... +class _MutableState_setValue(_t.Protocol): + def __call__(self, this_obj: _t.Any | None, property: _t.Any, value: _t.Any | None) -> None: ... + +class _State_getValue(_t.Protocol): + def __call__(self, this_obj: _t.Any | None, property: _t.Any) -> _t.Any | None: ... + class Composer: """Kotlin: androidx.compose.runtime.Composer""" materialize: _t.ClassVar[_Composer_materialize] +class CompositionLocal: + """Kotlin: androidx.compose.runtime.CompositionLocal""" + class CompositionLocalAccessorScope: """Kotlin: androidx.compose.runtime.CompositionLocalAccessorScope""" media_query: _t.ClassVar[_CompositionLocalAccessorScope_mediaQuery] media_query__CompositionLocalAccessorScope_Boolean: _t.ClassVar[_CompositionLocalAccessorScope_mediaQuery__CompositionLocalAccessorScope_Boolean] +class CompositionLocalContext: + """Kotlin: androidx.compose.runtime.CompositionLocalContext""" + +class MutableState(State): + """Kotlin: androidx.compose.runtime.MutableState""" + set_value: _t.ClassVar[_MutableState_setValue] + @property + def value(self) -> _t.Any | None: + """Kotlin property: androidx.compose.runtime.MutableState.value (androidx.compose.runtime.MutableState.value: kotlin.Any?)""" + ... + @value.setter + def value(self, value: _t.Any | None) -> None: + """Kotlin property: androidx.compose.runtime.MutableState.value=""" + ... + +class ProduceStateScope: + """Kotlin: androidx.compose.runtime.ProduceStateScope""" + +class SnapshotFlowManager: + """Kotlin: androidx.compose.runtime.SnapshotFlowManager""" + +class SnapshotMutationPolicy: + """Kotlin: androidx.compose.runtime.SnapshotMutationPolicy""" + class State: """Kotlin: androidx.compose.runtime.State""" + get_value: _t.ClassVar[_State_getValue] + @property + def value(self) -> _t.Any | None: + """Kotlin property: androidx.compose.runtime.State.value (androidx.compose.runtime.State.value: kotlin.Any?)""" + ... + +def collect_as_state(receiver: _t.Any, /, context: _t.Any = ...) -> State: + """Kotlin: kotlinx.coroutines.flow.StateFlow.collectAsState(context: kotlin.coroutines.CoroutineContext): androidx.compose.runtime.State""" + ... + +def derived_state_of__Any(calculation: _t.Callable[[], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.derivedStateOf(calculation: kotlin.Function0): androidx.compose.runtime.State""" + ... + +def derived_state_of__SnapshotMutationPolicy_Any(policy: SnapshotMutationPolicy, calculation: _t.Callable[[], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.derivedStateOf(policy: androidx.compose.runtime.SnapshotMutationPolicy, calculation: kotlin.Function0): androidx.compose.runtime.State""" + ... + +def get_value(receiver: State, /, this_obj: _t.Any | None, property: _t.Any) -> _t.Any | None: + """Kotlin: androidx.compose.runtime.State.getValue(thisObj: kotlin.Any?, property: kotlin.reflect.KProperty): kotlin.Any""" + ... + +def mutable_state_list_of() -> _t.Any: + """Kotlin: androidx.compose.runtime.mutableStateListOf(): androidx.compose.runtime.snapshots.SnapshotStateList""" + ... + +def mutable_state_map_of() -> _t.Any: + """Kotlin: androidx.compose.runtime.mutableStateMapOf(): androidx.compose.runtime.snapshots.SnapshotStateMap""" + ... + +def mutable_state_of(value: _t.Any | None, policy: SnapshotMutationPolicy = ...) -> MutableState: + """Kotlin: androidx.compose.runtime.mutableStateOf(value: kotlin.Any?, policy: androidx.compose.runtime.SnapshotMutationPolicy): androidx.compose.runtime.MutableState""" + ... + +def mutable_state_set_of() -> _t.Any: + """Kotlin: androidx.compose.runtime.mutableStateSetOf(): androidx.compose.runtime.snapshots.SnapshotStateSet""" + ... + +def never_equal_policy() -> SnapshotMutationPolicy: + """Kotlin: androidx.compose.runtime.neverEqualPolicy(): androidx.compose.runtime.SnapshotMutationPolicy""" + ... + +def produce_state__Any_Any(initial_value: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.produceState(initialValue: kotlin.Any?, producer: kotlin.Function2): androidx.compose.runtime.State""" + ... + +def produce_state__Any_Any_Any(initial_value: _t.Any | None, key1: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.produceState(initialValue: kotlin.Any?, key1: kotlin.Any?, producer: kotlin.Function2): androidx.compose.runtime.State""" + ... + +def produce_state__Any_Any_Any_Any(initial_value: _t.Any | None, key1: _t.Any | None, key2: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.produceState(initialValue: kotlin.Any?, key1: kotlin.Any?, key2: kotlin.Any?, producer: kotlin.Function2): androidx.compose.runtime.State""" + ... + +def produce_state__Any_Any_Any_Any_Any(initial_value: _t.Any | None, key1: _t.Any | None, key2: _t.Any | None, key3: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.produceState(initialValue: kotlin.Any?, key1: kotlin.Any?, key2: kotlin.Any?, key3: kotlin.Any?, producer: kotlin.Function2): androidx.compose.runtime.State""" + ... + +def produce_state__Any_Array_Any(initial_value: _t.Any | None, keys: _t.Any, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: + """Kotlin: androidx.compose.runtime.produceState(initialValue: kotlin.Any?, keys: kotlin.Array, producer: kotlin.Function2): androidx.compose.runtime.State""" + ... + +def referential_equality_policy() -> SnapshotMutationPolicy: + """Kotlin: androidx.compose.runtime.referentialEqualityPolicy(): androidx.compose.runtime.SnapshotMutationPolicy""" + ... + +def remember_updated_state(new_value: _t.Any | None) -> State: + """Kotlin: androidx.compose.runtime.rememberUpdatedState(newValue: kotlin.Any?): androidx.compose.runtime.State""" + ... + +def set_value(receiver: MutableState, /, this_obj: _t.Any | None, property: _t.Any, value: _t.Any | None) -> None: + """Kotlin: androidx.compose.runtime.MutableState.setValue(thisObj: kotlin.Any?, property: kotlin.reflect.KProperty, value: kotlin.Any?): kotlin.Unit""" + ... + +def snapshot_flow__Any(block: _t.Callable[[], _t.Any | None]) -> _t.Any: + """Kotlin: androidx.compose.runtime.snapshotFlow(block: kotlin.Function0): kotlinx.coroutines.flow.Flow""" + ... + +def snapshot_flow__SnapshotFlowManager_Any(manager: SnapshotFlowManager, block: _t.Callable[[], _t.Any | None]) -> _t.Any: + """Kotlin: androidx.compose.runtime.snapshotFlow(manager: androidx.compose.runtime.SnapshotFlowManager, block: kotlin.Function0): kotlinx.coroutines.flow.Flow""" + ... + +def structural_equality_policy() -> SnapshotMutationPolicy: + """Kotlin: androidx.compose.runtime.structuralEqualityPolicy(): androidx.compose.runtime.SnapshotMutationPolicy""" + ... + +@_t.overload +def derived_state_of(calculation: _t.Callable[[], _t.Any | None]) -> State: ... +@_t.overload +def derived_state_of(policy: SnapshotMutationPolicy, calculation: _t.Callable[[], _t.Any | None]) -> State: ... # type: ignore[overload-cannot-match] + +@_t.overload +def produce_state(initial_value: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: ... +@_t.overload +def produce_state(initial_value: _t.Any | None, key1: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: ... # type: ignore[overload-cannot-match] +@_t.overload +def produce_state(initial_value: _t.Any | None, key1: _t.Any | None, key2: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: ... # type: ignore[overload-cannot-match] +@_t.overload +def produce_state(initial_value: _t.Any | None, key1: _t.Any | None, key2: _t.Any | None, key3: _t.Any | None, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: ... # type: ignore[overload-cannot-match] +@_t.overload +def produce_state(initial_value: _t.Any | None, keys: _t.Any, producer: _t.Callable[[ProduceStateScope, _t.Any], _t.Any | None]) -> State: ... # type: ignore[overload-cannot-match] + +@_t.overload +def snapshot_flow(block: _t.Callable[[], _t.Any | None]) -> _t.Any: ... +@_t.overload +def snapshot_flow(manager: SnapshotFlowManager, block: _t.Callable[[], _t.Any | None]) -> _t.Any: ... # type: ignore[overload-cannot-match] def Composable(target): ... diff --git a/pythonx/compose/ui/__init__.pyi b/pythonx/compose/ui/__init__.pyi index 29fda7e..198bc7c 100644 --- a/pythonx/compose/ui/__init__.pyi +++ b/pythonx/compose/ui/__init__.pyi @@ -1,8 +1,12 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t import pythonx.compose.layout import pythonx.compose.runtime import pythonx.compose.ui.graphics +import pythonx.compose.ui.unit + +class _ImageComposeScene_use(_t.Protocol): + def __call__(self, block: _t.Callable[[ImageComposeScene], _t.Any | None]) -> _t.Any | None: ... class _Modifier_absoluteOffset(_t.Protocol): @_t.overload @@ -213,6 +217,9 @@ class _Modifier_minimumInteractiveComponentSize(_t.Protocol): class _Modifier_modifierLocalConsumer(_t.Protocol): def __call__(self, consumer: _t.Callable[[_t.Any], None]) -> Modifier: ... +class _Modifier_modifierLocalProvider(_t.Protocol): + def __call__(self, key: _t.Any, value: _t.Callable[[], _t.Any | None]) -> Modifier: ... + class _Modifier_mouseScrollFilter(_t.Protocol): def __call__(self, on_mouse_scroll: _t.Callable[[_t.Any, _t.Any], bool]) -> Modifier: ... @@ -334,6 +341,18 @@ class _Modifier_paint(_t.Protocol): class _Modifier_pointerHoverIcon(_t.Protocol): def __call__(self, icon: _t.Any, override_descendants: bool = ...) -> Modifier: ... +class _Modifier_pointerInput(_t.Protocol): + @_t.overload + def __call__(self, key1: _t.Any | None, key2: _t.Any | None, block: _t.Any) -> Modifier: ... + @_t.overload + def __call__(self, key1: _t.Any | None, block: _t.Any) -> Modifier: ... # type: ignore[overload-cannot-match] + +class _Modifier_pointerInput__Any_Any_PointerInputEventHandler(_t.Protocol): + def __call__(self, key1: _t.Any | None, key2: _t.Any | None, block: _t.Any) -> Modifier: ... + +class _Modifier_pointerInput__Any_PointerInputEventHandler(_t.Protocol): + def __call__(self, key1: _t.Any | None, block: _t.Any) -> Modifier: ... + class _Modifier_pointerMoveFilter(_t.Protocol): def __call__(self, on_move: _t.Callable[[_t.Any], bool] = ..., on_exit: _t.Callable[[], bool] = ..., on_enter: _t.Callable[[], bool] = ...) -> Modifier: ... @@ -513,17 +532,41 @@ class _Modifier_windowInsetsTopHeight(_t.Protocol): def __call__(self, insets: _t.Any) -> Modifier: ... class _Modifier_wrapContentHeight(_t.Protocol): - def __call__(self, align: _t.Any = ..., unbounded: bool = ...) -> Modifier: ... + def __call__(self, align: Alignment.Vertical = ..., unbounded: bool = ...) -> Modifier: ... class _Modifier_wrapContentSize(_t.Protocol): def __call__(self, align: _t.Any = ..., unbounded: bool = ...) -> Modifier: ... class _Modifier_wrapContentWidth(_t.Protocol): - def __call__(self, align: _t.Any = ..., unbounded: bool = ...) -> Modifier: ... + def __call__(self, align: Alignment.Horizontal = ..., unbounded: bool = ...) -> Modifier: ... class _Modifier_zIndex(_t.Protocol): def __call__(self, z_index: float) -> Modifier: ... +class ImageComposeScene: + """Kotlin: androidx.compose.ui.ImageComposeScene""" + use: _t.ClassVar[_ImageComposeScene_use] + @property + def constraints(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.ImageComposeScene.constraints (androidx.compose.ui.ImageComposeScene.constraints: androidx.compose.ui.unit.Constraints)""" + ... + @constraints.setter + def constraints(self, value: int) -> None: + """Kotlin property: androidx.compose.ui.ImageComposeScene.constraints=""" + ... + @property + def content_size(self) -> int: + """Kotlin property: androidx.compose.ui.ImageComposeScene.contentSize (androidx.compose.ui.ImageComposeScene.contentSize: androidx.compose.ui.unit.IntSize)""" + ... + @property + def layout_direction(self) -> pythonx.compose.ui.unit.LayoutDirection: + """Kotlin property: androidx.compose.ui.ImageComposeScene.layoutDirection (androidx.compose.ui.ImageComposeScene.layoutDirection: androidx.compose.ui.unit.LayoutDirection)""" + ... + @layout_direction.setter + def layout_direction(self, value: pythonx.compose.ui.unit.LayoutDirection) -> None: + """Kotlin property: androidx.compose.ui.ImageComposeScene.layoutDirection=""" + ... + class Modifier: """Kotlin: androidx.compose.ui.Modifier""" absolute_offset: _t.ClassVar[_Modifier_absoluteOffset] @@ -586,6 +629,7 @@ class Modifier: mandatory_system_gestures_padding: _t.ClassVar[_Modifier_mandatorySystemGesturesPadding] minimum_interactive_component_size: _t.ClassVar[_Modifier_minimumInteractiveComponentSize] modifier_local_consumer: _t.ClassVar[_Modifier_modifierLocalConsumer] + modifier_local_provider: _t.ClassVar[_Modifier_modifierLocalProvider] mouse_scroll_filter: _t.ClassVar[_Modifier_mouseScrollFilter] navigation_bars_padding: _t.ClassVar[_Modifier_navigationBarsPadding] nested_scroll: _t.ClassVar[_Modifier_nestedScroll] @@ -621,6 +665,9 @@ class Modifier: padding__PaddingValues: _t.ClassVar[_Modifier_padding__PaddingValues] paint: _t.ClassVar[_Modifier_paint] pointer_hover_icon: _t.ClassVar[_Modifier_pointerHoverIcon] + pointer_input: _t.ClassVar[_Modifier_pointerInput] + pointer_input__Any_Any_PointerInputEventHandler: _t.ClassVar[_Modifier_pointerInput__Any_Any_PointerInputEventHandler] + pointer_input__Any_PointerInputEventHandler: _t.ClassVar[_Modifier_pointerInput__Any_PointerInputEventHandler] pointer_move_filter: _t.ClassVar[_Modifier_pointerMoveFilter] preferred_frame_rate: _t.ClassVar[_Modifier_preferredFrameRate] preferred_frame_rate__Float: _t.ClassVar[_Modifier_preferredFrameRate__Float] @@ -676,9 +723,62 @@ class Modifier: wrap_content_size: _t.ClassVar[_Modifier_wrapContentSize] wrap_content_width: _t.ClassVar[_Modifier_wrapContentWidth] z_index: _t.ClassVar[_Modifier_zIndex] + class Node: + """Kotlin: androidx.compose.ui.Modifier.Node""" + +class MotionDurationScale: + """Kotlin: androidx.compose.ui.MotionDurationScale""" + @property + def key(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.MotionDurationScale.key (androidx.compose.ui.MotionDurationScale.key: kotlin.coroutines.CoroutineContext.Key)""" + ... + @property + def scale_factor(self) -> float: + """Kotlin property: androidx.compose.ui.MotionDurationScale.scaleFactor (androidx.compose.ui.MotionDurationScale.scaleFactor: kotlin.Float)""" + ... class UiMediaScope: """Kotlin: androidx.compose.ui.UiMediaScope""" + @property + def has_camera(self) -> bool: + """Kotlin property: androidx.compose.ui.UiMediaScope.hasCamera (androidx.compose.ui.UiMediaScope.hasCamera: kotlin.Boolean)""" + ... + @property + def has_microphone(self) -> bool: + """Kotlin property: androidx.compose.ui.UiMediaScope.hasMicrophone (androidx.compose.ui.UiMediaScope.hasMicrophone: kotlin.Boolean)""" + ... + @property + def keyboard_kind(self) -> UiMediaScope.KeyboardKind: + """Kotlin property: androidx.compose.ui.UiMediaScope.keyboardKind (androidx.compose.ui.UiMediaScope.keyboardKind: androidx.compose.ui.UiMediaScope.KeyboardKind)""" + ... + @property + def pointer_precision(self) -> UiMediaScope.PointerPrecision: + """Kotlin property: androidx.compose.ui.UiMediaScope.pointerPrecision (androidx.compose.ui.UiMediaScope.pointerPrecision: androidx.compose.ui.UiMediaScope.PointerPrecision)""" + ... + @property + def viewing_distance(self) -> UiMediaScope.ViewingDistance: + """Kotlin property: androidx.compose.ui.UiMediaScope.viewingDistance (androidx.compose.ui.UiMediaScope.viewingDistance: androidx.compose.ui.UiMediaScope.ViewingDistance)""" + ... + @property + def window_height(self) -> float: + """Kotlin property: androidx.compose.ui.UiMediaScope.windowHeight (androidx.compose.ui.UiMediaScope.windowHeight: androidx.compose.ui.unit.Dp)""" + ... + @property + def window_posture(self) -> UiMediaScope.Posture: + """Kotlin property: androidx.compose.ui.UiMediaScope.windowPosture (androidx.compose.ui.UiMediaScope.windowPosture: androidx.compose.ui.UiMediaScope.Posture)""" + ... + @property + def window_width(self) -> float: + """Kotlin property: androidx.compose.ui.UiMediaScope.windowWidth (androidx.compose.ui.UiMediaScope.windowWidth: androidx.compose.ui.unit.Dp)""" + ... + class KeyboardKind: + """Kotlin: androidx.compose.ui.UiMediaScope.KeyboardKind""" + class PointerPrecision: + """Kotlin: androidx.compose.ui.UiMediaScope.PointerPrecision""" + class Posture: + """Kotlin: androidx.compose.ui.UiMediaScope.Posture""" + class ViewingDistance: + """Kotlin: androidx.compose.ui.UiMediaScope.ViewingDistance""" def BiasAbsoluteAlignment(horizontal_bias: float, vertical_bias: float) -> _t.Any: """Kotlin: androidx.compose.ui.BiasAbsoluteAlignment(horizontalBias: kotlin.Float, verticalBias: kotlin.Float): androidx.compose.ui.BiasAbsoluteAlignment""" @@ -732,6 +832,10 @@ def sensitive_content(receiver: Modifier, /, is_content_sensitive: bool = ...) - """Kotlin: androidx.compose.ui.Modifier.sensitiveContent(isContentSensitive: kotlin.Boolean): androidx.compose.ui.Modifier""" ... +def use(receiver: ImageComposeScene, /, block: _t.Callable[[ImageComposeScene], _t.Any | None]) -> _t.Any | None: + """Kotlin: androidx.compose.ui.ImageComposeScene.use(block: kotlin.Function1): kotlin.Any""" + ... + def z_index(receiver: Modifier, /, z_index: float) -> Modifier: """Kotlin: androidx.compose.ui.Modifier.zIndex(zIndex: kotlin.Float): androidx.compose.ui.Modifier""" ... @@ -758,9 +862,9 @@ class AbsoluteAlignment: """Kotlin: androidx.compose.ui.AbsoluteAlignment.CenterLeft(): androidx.compose.ui.Alignment""" CenterRight: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.AbsoluteAlignment.CenterRight(): androidx.compose.ui.Alignment""" - Left: _t.ClassVar[_t.Any] + Left: _t.ClassVar[Alignment.Horizontal] """Kotlin: androidx.compose.ui.AbsoluteAlignment.Left(): androidx.compose.ui.Alignment.Horizontal""" - Right: _t.ClassVar[_t.Any] + Right: _t.ClassVar[Alignment.Horizontal] """Kotlin: androidx.compose.ui.AbsoluteAlignment.Right(): androidx.compose.ui.Alignment.Horizontal""" TopLeft: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.AbsoluteAlignment.TopLeft(): androidx.compose.ui.Alignment""" @@ -769,7 +873,17 @@ class AbsoluteAlignment: class Alignment: """Kotlin: androidx.compose.ui.Alignment""" - Bottom: _t.ClassVar[_t.Any] + class Horizontal: + """Kotlin: androidx.compose.ui.Alignment.Horizontal""" + CenterHorizontally: _t.ClassVar[Alignment.Horizontal] + End: _t.ClassVar[Alignment.Horizontal] + Start: _t.ClassVar[Alignment.Horizontal] + class Vertical: + """Kotlin: androidx.compose.ui.Alignment.Vertical""" + Bottom: _t.ClassVar[Alignment.Vertical] + CenterVertically: _t.ClassVar[Alignment.Vertical] + Top: _t.ClassVar[Alignment.Vertical] + Bottom: _t.ClassVar[Alignment.Vertical] """Kotlin: androidx.compose.ui.Alignment.Bottom(): androidx.compose.ui.Alignment.Vertical""" BottomCenter: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.Alignment.BottomCenter(): androidx.compose.ui.Alignment""" @@ -781,17 +895,17 @@ class Alignment: """Kotlin: androidx.compose.ui.Alignment.Center(): androidx.compose.ui.Alignment""" CenterEnd: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.Alignment.CenterEnd(): androidx.compose.ui.Alignment""" - CenterHorizontally: _t.ClassVar[_t.Any] + CenterHorizontally: _t.ClassVar[Alignment.Horizontal] """Kotlin: androidx.compose.ui.Alignment.CenterHorizontally(): androidx.compose.ui.Alignment.Horizontal""" CenterStart: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.Alignment.CenterStart(): androidx.compose.ui.Alignment""" - CenterVertically: _t.ClassVar[_t.Any] + CenterVertically: _t.ClassVar[Alignment.Vertical] """Kotlin: androidx.compose.ui.Alignment.CenterVertically(): androidx.compose.ui.Alignment.Vertical""" - End: _t.ClassVar[_t.Any] + End: _t.ClassVar[Alignment.Horizontal] """Kotlin: androidx.compose.ui.Alignment.End(): androidx.compose.ui.Alignment.Horizontal""" - Start: _t.ClassVar[_t.Any] + Start: _t.ClassVar[Alignment.Horizontal] """Kotlin: androidx.compose.ui.Alignment.Start(): androidx.compose.ui.Alignment.Horizontal""" - Top: _t.ClassVar[_t.Any] + Top: _t.ClassVar[Alignment.Vertical] """Kotlin: androidx.compose.ui.Alignment.Top(): androidx.compose.ui.Alignment.Vertical""" TopCenter: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.Alignment.TopCenter(): androidx.compose.ui.Alignment""" @@ -799,22 +913,6 @@ class Alignment: """Kotlin: androidx.compose.ui.Alignment.TopEnd(): androidx.compose.ui.Alignment""" TopStart: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.Alignment.TopStart(): androidx.compose.ui.Alignment""" - class Horizontal: - """Kotlin: the constants of androidx.compose.ui.Alignment declared as androidx.compose.ui.Alignment.Horizontal""" - CenterHorizontally: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.CenterHorizontally(): androidx.compose.ui.Alignment.Horizontal""" - End: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.End(): androidx.compose.ui.Alignment.Horizontal""" - Start: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.Start(): androidx.compose.ui.Alignment.Horizontal""" - class Vertical: - """Kotlin: the constants of androidx.compose.ui.Alignment declared as androidx.compose.ui.Alignment.Vertical""" - Bottom: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.Bottom(): androidx.compose.ui.Alignment.Vertical""" - CenterVertically: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.CenterVertically(): androidx.compose.ui.Alignment.Vertical""" - Top: _t.ClassVar[_t.Any] - """Kotlin: androidx.compose.ui.Alignment.Top(): androidx.compose.ui.Alignment.Vertical""" class ComposeUiFlags: """Kotlin: androidx.compose.ui.ComposeUiFlags""" diff --git a/pythonx/compose/ui/graphics/__init__.pyi b/pythonx/compose/ui/graphics/__init__.pyi index 009baf2..a0762b9 100644 --- a/pythonx/compose/ui/graphics/__init__.pyi +++ b/pythonx/compose/ui/graphics/__init__.pyi @@ -1,4 +1,4 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t import pythonx.compose.ui @@ -17,8 +17,23 @@ class _PathEffect_asSkiaPathEffect(_t.Protocol): class _RenderEffect_asDesktopImageFilter(_t.Protocol): def __call__(self) -> _t.Any: ... +class BlendModeColorFilter: + """Kotlin: androidx.compose.ui.graphics.BlendModeColorFilter""" + @property + def blend_mode(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.BlendModeColorFilter.blendMode (androidx.compose.ui.graphics.BlendModeColorFilter.blendMode: androidx.compose.ui.graphics.BlendMode)""" + ... + @property + def color(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.BlendModeColorFilter.color (androidx.compose.ui.graphics.BlendModeColorFilter.color: androidx.compose.ui.graphics.Color)""" + ... + class Brush: """Kotlin: androidx.compose.ui.graphics.Brush""" + @property + def intrinsic_size(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.Brush.intrinsicSize (androidx.compose.ui.graphics.Brush.intrinsicSize: androidx.compose.ui.geometry.Size)""" + ... class ColorFilter: """Kotlin: androidx.compose.ui.graphics.ColorFilter""" @@ -30,9 +45,50 @@ class ColorProducer: class GraphicsContext: """Kotlin: androidx.compose.ui.graphics.GraphicsContext""" + @property + def shadow_context(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.GraphicsContext.shadowContext (androidx.compose.ui.graphics.GraphicsContext.shadowContext: androidx.compose.ui.graphics.shadow.ShadowContext)""" + ... + +class Interval: + """Kotlin: androidx.compose.ui.graphics.Interval""" + @property + def data(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.graphics.Interval.data (androidx.compose.ui.graphics.Interval.data: kotlin.Any?)""" + ... + @property + def end(self) -> float: + """Kotlin property: androidx.compose.ui.graphics.Interval.end (androidx.compose.ui.graphics.Interval.end: kotlin.Float)""" + ... + @property + def start(self) -> float: + """Kotlin property: androidx.compose.ui.graphics.Interval.start (androidx.compose.ui.graphics.Interval.start: kotlin.Float)""" + ... + +class LightingColorFilter: + """Kotlin: androidx.compose.ui.graphics.LightingColorFilter""" + @property + def add(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.LightingColorFilter.add (androidx.compose.ui.graphics.LightingColorFilter.add: androidx.compose.ui.graphics.Color)""" + ... + @property + def multiply(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.LightingColorFilter.multiply (androidx.compose.ui.graphics.LightingColorFilter.multiply: androidx.compose.ui.graphics.Color)""" + ... + +class LinearGradient: + """Kotlin: androidx.compose.ui.graphics.LinearGradient""" + @property + def intrinsic_size(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.LinearGradient.intrinsicSize (androidx.compose.ui.graphics.LinearGradient.intrinsicSize: androidx.compose.ui.geometry.Size)""" + ... class Outline: """Kotlin: androidx.compose.ui.graphics.Outline""" + @property + def bounds(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.Outline.bounds (androidx.compose.ui.graphics.Outline.bounds: androidx.compose.ui.geometry.Rect)""" + ... class PathEffect: """Kotlin: androidx.compose.ui.graphics.PathEffect""" @@ -41,17 +97,90 @@ class PathEffect: class PathSegment: """Kotlin: androidx.compose.ui.graphics.PathSegment""" + @property + def type(self) -> PathSegment.Type: + """Kotlin property: androidx.compose.ui.graphics.PathSegment.type (androidx.compose.ui.graphics.PathSegment.type: androidx.compose.ui.graphics.PathSegment.Type)""" + ... + @property + def weight(self) -> float: + """Kotlin property: androidx.compose.ui.graphics.PathSegment.weight (androidx.compose.ui.graphics.PathSegment.weight: kotlin.Float)""" + ... + class Type: + """Kotlin: androidx.compose.ui.graphics.PathSegment.Type""" + +class PixelMap: + """Kotlin: androidx.compose.ui.graphics.PixelMap""" + @property + def buffer_offset(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.PixelMap.bufferOffset (androidx.compose.ui.graphics.PixelMap.bufferOffset: kotlin.Int)""" + ... + @property + def height(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.PixelMap.height (androidx.compose.ui.graphics.PixelMap.height: kotlin.Int)""" + ... + @property + def stride(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.PixelMap.stride (androidx.compose.ui.graphics.PixelMap.stride: kotlin.Int)""" + ... + @property + def width(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.PixelMap.width (androidx.compose.ui.graphics.PixelMap.width: kotlin.Int)""" + ... + +class RadialGradient: + """Kotlin: androidx.compose.ui.graphics.RadialGradient""" + @property + def intrinsic_size(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.RadialGradient.intrinsicSize (androidx.compose.ui.graphics.RadialGradient.intrinsicSize: androidx.compose.ui.geometry.Size)""" + ... class RenderEffect: """Kotlin: androidx.compose.ui.graphics.RenderEffect""" as_desktop_image_filter: _t.ClassVar[_RenderEffect_asDesktopImageFilter] + @property + def skia_image_filter(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.skiaImageFilter (androidx.compose.ui.graphics.RenderEffect.skiaImageFilter: org.jetbrains.skia.ImageFilter)""" + ... class Shader: """Kotlin: androidx.compose.ui.graphics.Shader""" + @property + def skia_shader(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.skiaShader (androidx.compose.ui.graphics.Shader.skiaShader: org.jetbrains.skia.Shader)""" + ... + +class Shadow: + """Kotlin: androidx.compose.ui.graphics.Shadow""" + @property + def blur_radius(self) -> float: + """Kotlin property: androidx.compose.ui.graphics.Shadow.blurRadius (androidx.compose.ui.graphics.Shadow.blurRadius: kotlin.Float)""" + ... + @property + def color(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.Shadow.color (androidx.compose.ui.graphics.Shadow.color: androidx.compose.ui.graphics.Color)""" + ... + @property + def offset(self) -> int: + """Kotlin property: androidx.compose.ui.graphics.Shadow.offset (androidx.compose.ui.graphics.Shadow.offset: androidx.compose.ui.geometry.Offset)""" + ... class Shape: """Kotlin: androidx.compose.ui.graphics.Shape""" +class SolidColor: + """Kotlin: androidx.compose.ui.graphics.SolidColor""" + @property + def value(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.SolidColor.value (androidx.compose.ui.graphics.SolidColor.value: androidx.compose.ui.graphics.Color)""" + ... + +class Vertices: + """Kotlin: androidx.compose.ui.graphics.Vertices""" + @property + def vertex_mode(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.Vertices.vertexMode (androidx.compose.ui.graphics.Vertices.vertexMode: androidx.compose.ui.graphics.VertexMode)""" + ... + def BlurEffect(radius_x: float, radius_y: float, edge_treatment: _t.Any = ...) -> _t.Any: """Kotlin: androidx.compose.ui.graphics.BlurEffect(radiusX: kotlin.Float, radiusY: kotlin.Float, edgeTreatment: androidx.compose.ui.graphics.TileMode): androidx.compose.ui.graphics.BlurEffect""" ... @@ -288,7 +417,7 @@ def lerp__Color_Color_Float(start: _t.Any, stop: _t.Any, fraction: float) -> _t. """Kotlin: androidx.compose.ui.graphics.lerp(start: androidx.compose.ui.graphics.Color, stop: androidx.compose.ui.graphics.Color, fraction: kotlin.Float): androidx.compose.ui.graphics.Color""" ... -def lerp__Shadow_Shadow_Float(start: _t.Any, stop: _t.Any, fraction: float) -> _t.Any: +def lerp__Shadow_Shadow_Float(start: Shadow, stop: Shadow, fraction: float) -> Shadow: """Kotlin: androidx.compose.ui.graphics.lerp(start: androidx.compose.ui.graphics.Shadow, stop: androidx.compose.ui.graphics.Shadow, fraction: kotlin.Float): androidx.compose.ui.graphics.Shadow""" ... @@ -407,7 +536,7 @@ def is_supported(receiver: _t.Any, /) -> bool: ... # type: ignore[overload-cann @_t.overload def lerp(start: _t.Any, stop: _t.Any, fraction: float) -> _t.Any: ... @_t.overload -def lerp(start: _t.Any, stop: _t.Any, fraction: float) -> _t.Any: ... # type: ignore[overload-cannot-match] +def lerp(start: Shadow, stop: Shadow, fraction: float) -> Shadow: ... # type: ignore[overload-cannot-match] class BlendMode: """Kotlin: androidx.compose.ui.graphics.BlendMode""" @@ -549,6 +678,28 @@ class PathFillType: class PathOperation: """Kotlin: androidx.compose.ui.graphics.PathOperation""" + class Companion: + """Kotlin: androidx.compose.ui.graphics.PathOperation.Companion""" + @property + def difference(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.difference (androidx.compose.ui.graphics.PathOperation.Companion.difference: androidx.compose.ui.graphics.PathOperation)""" + ... + @property + def intersect(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.intersect (androidx.compose.ui.graphics.PathOperation.Companion.intersect: androidx.compose.ui.graphics.PathOperation)""" + ... + @property + def reverseDifference(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.reverseDifference (androidx.compose.ui.graphics.PathOperation.Companion.reverseDifference: androidx.compose.ui.graphics.PathOperation)""" + ... + @property + def union(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.union (androidx.compose.ui.graphics.PathOperation.Companion.union: androidx.compose.ui.graphics.PathOperation)""" + ... + @property + def xor(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.graphics.xor (androidx.compose.ui.graphics.PathOperation.Companion.xor: androidx.compose.ui.graphics.PathOperation)""" + ... Difference: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.graphics.PathOperation.Difference(): androidx.compose.ui.graphics.PathOperation""" Intersect: _t.ClassVar[_t.Any] @@ -569,9 +720,6 @@ class PointMode: Polygon: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.graphics.PointMode.Polygon(): androidx.compose.ui.graphics.PointMode""" -class Shadow: - """Kotlin: androidx.compose.ui.graphics.Shadow""" - class StampedPathEffectStyle: """Kotlin: androidx.compose.ui.graphics.StampedPathEffectStyle""" Morph: _t.ClassVar[_t.Any] diff --git a/pythonx/compose/ui/text/__init__.pyi b/pythonx/compose/ui/text/__init__.pyi index 0af64bb..f4b779c 100644 --- a/pythonx/compose/ui/text/__init__.pyi +++ b/pythonx/compose/ui/text/__init__.pyi @@ -1,22 +1,282 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t import pythonx.compose.ui.graphics import pythonx.compose.ui.unit +class LinkAnnotation: + """Kotlin: androidx.compose.ui.text.LinkAnnotation""" + @property + def link_interaction_listener(self) -> LinkInteractionListener | None: + """Kotlin property: androidx.compose.ui.text.LinkAnnotation.linkInteractionListener (androidx.compose.ui.text.LinkAnnotation.linkInteractionListener: androidx.compose.ui.text.LinkInteractionListener?)""" + ... + @property + def styles(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.LinkAnnotation.styles (androidx.compose.ui.text.LinkAnnotation.styles: androidx.compose.ui.text.TextLinkStyles?)""" + ... + +class LinkInteractionListener: + """Kotlin: androidx.compose.ui.text.LinkInteractionListener""" + class MultiParagraphIntrinsics: """Kotlin: androidx.compose.ui.text.MultiParagraphIntrinsics""" + @property + def annotated_string(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.MultiParagraphIntrinsics.annotatedString (androidx.compose.ui.text.MultiParagraphIntrinsics.annotatedString: androidx.compose.ui.text.AnnotatedString)""" + ... + @property + def has_stale_resolved_fonts(self) -> bool: + """Kotlin property: androidx.compose.ui.text.MultiParagraphIntrinsics.hasStaleResolvedFonts (androidx.compose.ui.text.MultiParagraphIntrinsics.hasStaleResolvedFonts: kotlin.Boolean)""" + ... + @property + def max_intrinsic_width(self) -> float: + """Kotlin property: androidx.compose.ui.text.MultiParagraphIntrinsics.maxIntrinsicWidth (androidx.compose.ui.text.MultiParagraphIntrinsics.maxIntrinsicWidth: kotlin.Float)""" + ... + @property + def min_intrinsic_width(self) -> float: + """Kotlin property: androidx.compose.ui.text.MultiParagraphIntrinsics.minIntrinsicWidth (androidx.compose.ui.text.MultiParagraphIntrinsics.minIntrinsicWidth: kotlin.Float)""" + ... class ParagraphIntrinsics: """Kotlin: androidx.compose.ui.text.ParagraphIntrinsics""" + @property + def has_stale_resolved_fonts(self) -> bool: + """Kotlin property: androidx.compose.ui.text.ParagraphIntrinsics.hasStaleResolvedFonts (androidx.compose.ui.text.ParagraphIntrinsics.hasStaleResolvedFonts: kotlin.Boolean)""" + ... + @property + def max_intrinsic_width(self) -> float: + """Kotlin property: androidx.compose.ui.text.ParagraphIntrinsics.maxIntrinsicWidth (androidx.compose.ui.text.ParagraphIntrinsics.maxIntrinsicWidth: kotlin.Float)""" + ... + @property + def min_intrinsic_width(self) -> float: + """Kotlin property: androidx.compose.ui.text.ParagraphIntrinsics.minIntrinsicWidth (androidx.compose.ui.text.ParagraphIntrinsics.minIntrinsicWidth: kotlin.Float)""" + ... class ParagraphStyle: """Kotlin: androidx.compose.ui.text.ParagraphStyle""" + @property + def deprecated_boxing_hyphens(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_hyphens (androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_hyphens: androidx.compose.ui.text.style.Hyphens?)""" + ... + @property + def deprecated_boxing_line_break(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_lineBreak (androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_lineBreak: androidx.compose.ui.text.style.LineBreak?)""" + ... + @property + def deprecated_boxing_text_align(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_textAlign (androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_textAlign: androidx.compose.ui.text.style.TextAlign?)""" + ... + @property + def deprecated_boxing_text_direction(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_textDirection (androidx.compose.ui.text.ParagraphStyle.deprecated_boxing_textDirection: androidx.compose.ui.text.style.TextDirection?)""" + ... + @property + def hyphens(self) -> int: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.hyphens (androidx.compose.ui.text.ParagraphStyle.hyphens: androidx.compose.ui.text.style.Hyphens)""" + ... + @property + def line_break(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.lineBreak (androidx.compose.ui.text.ParagraphStyle.lineBreak: androidx.compose.ui.text.style.LineBreak)""" + ... + @property + def line_height(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.lineHeight (androidx.compose.ui.text.ParagraphStyle.lineHeight: androidx.compose.ui.unit.TextUnit)""" + ... + @property + def line_height_style(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.lineHeightStyle (androidx.compose.ui.text.ParagraphStyle.lineHeightStyle: androidx.compose.ui.text.style.LineHeightStyle?)""" + ... + @property + def platform_style(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.platformStyle (androidx.compose.ui.text.ParagraphStyle.platformStyle: androidx.compose.ui.text.PlatformParagraphStyle?)""" + ... + @property + def text_align(self) -> int: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.textAlign (androidx.compose.ui.text.ParagraphStyle.textAlign: androidx.compose.ui.text.style.TextAlign)""" + ... + @property + def text_direction(self) -> int: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.textDirection (androidx.compose.ui.text.ParagraphStyle.textDirection: androidx.compose.ui.text.style.TextDirection)""" + ... + @property + def text_indent(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.textIndent (androidx.compose.ui.text.ParagraphStyle.textIndent: androidx.compose.ui.text.style.TextIndent?)""" + ... + @property + def text_motion(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.ParagraphStyle.textMotion (androidx.compose.ui.text.ParagraphStyle.textMotion: androidx.compose.ui.text.style.TextMotion?)""" + ... + +class Placeholder: + """Kotlin: androidx.compose.ui.text.Placeholder""" + @property + def height(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.Placeholder.height (androidx.compose.ui.text.Placeholder.height: androidx.compose.ui.unit.TextUnit)""" + ... + @property + def placeholder_vertical_align(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.Placeholder.placeholderVerticalAlign (androidx.compose.ui.text.Placeholder.placeholderVerticalAlign: androidx.compose.ui.text.PlaceholderVerticalAlign)""" + ... + @property + def width(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.Placeholder.width (androidx.compose.ui.text.Placeholder.width: androidx.compose.ui.unit.TextUnit)""" + ... class SpanStyle: """Kotlin: androidx.compose.ui.text.SpanStyle""" + @property + def alpha(self) -> float: + """Kotlin property: androidx.compose.ui.text.SpanStyle.alpha (androidx.compose.ui.text.SpanStyle.alpha: kotlin.Float)""" + ... + @property + def background(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.SpanStyle.background (androidx.compose.ui.text.SpanStyle.background: androidx.compose.ui.graphics.Color)""" + ... + @property + def baseline_shift(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.baselineShift (androidx.compose.ui.text.SpanStyle.baselineShift: androidx.compose.ui.text.style.BaselineShift?)""" + ... + @property + def brush(self) -> pythonx.compose.ui.graphics.Brush | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.brush (androidx.compose.ui.text.SpanStyle.brush: androidx.compose.ui.graphics.Brush?)""" + ... + @property + def color(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.SpanStyle.color (androidx.compose.ui.text.SpanStyle.color: androidx.compose.ui.graphics.Color)""" + ... + @property + def draw_style(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.drawStyle (androidx.compose.ui.text.SpanStyle.drawStyle: androidx.compose.ui.graphics.drawscope.DrawStyle?)""" + ... + @property + def font_family(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontFamily (androidx.compose.ui.text.SpanStyle.fontFamily: androidx.compose.ui.text.font.FontFamily?)""" + ... + @property + def font_feature_settings(self) -> str | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontFeatureSettings (androidx.compose.ui.text.SpanStyle.fontFeatureSettings: kotlin.String?)""" + ... + @property + def font_size(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontSize (androidx.compose.ui.text.SpanStyle.fontSize: androidx.compose.ui.unit.TextUnit)""" + ... + @property + def font_style(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontStyle (androidx.compose.ui.text.SpanStyle.fontStyle: androidx.compose.ui.text.font.FontStyle?)""" + ... + @property + def font_synthesis(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontSynthesis (androidx.compose.ui.text.SpanStyle.fontSynthesis: androidx.compose.ui.text.font.FontSynthesis?)""" + ... + @property + def font_weight(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.fontWeight (androidx.compose.ui.text.SpanStyle.fontWeight: androidx.compose.ui.text.font.FontWeight?)""" + ... + @property + def letter_spacing(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.SpanStyle.letterSpacing (androidx.compose.ui.text.SpanStyle.letterSpacing: androidx.compose.ui.unit.TextUnit)""" + ... + @property + def locale_list(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.localeList (androidx.compose.ui.text.SpanStyle.localeList: androidx.compose.ui.text.intl.LocaleList?)""" + ... + @property + def platform_style(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.platformStyle (androidx.compose.ui.text.SpanStyle.platformStyle: androidx.compose.ui.text.PlatformSpanStyle?)""" + ... + @property + def shadow(self) -> pythonx.compose.ui.graphics.Shadow | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.shadow (androidx.compose.ui.text.SpanStyle.shadow: androidx.compose.ui.graphics.Shadow?)""" + ... + @property + def text_decoration(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.textDecoration (androidx.compose.ui.text.SpanStyle.textDecoration: androidx.compose.ui.text.style.TextDecoration?)""" + ... + @property + def text_geometric_transform(self) -> _t.Any | None: + """Kotlin property: androidx.compose.ui.text.SpanStyle.textGeometricTransform (androidx.compose.ui.text.SpanStyle.textGeometricTransform: androidx.compose.ui.text.style.TextGeometricTransform?)""" + ... + +class TextLayoutInput: + """Kotlin: androidx.compose.ui.text.TextLayoutInput""" + @property + def constraints(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.constraints (androidx.compose.ui.text.TextLayoutInput.constraints: androidx.compose.ui.unit.Constraints)""" + ... + @property + def density(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.density (androidx.compose.ui.text.TextLayoutInput.density: androidx.compose.ui.unit.Density)""" + ... + @property + def font_family_resolver(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.fontFamilyResolver (androidx.compose.ui.text.TextLayoutInput.fontFamilyResolver: androidx.compose.ui.text.font.FontFamily.Resolver)""" + ... + @property + def layout_direction(self) -> pythonx.compose.ui.unit.LayoutDirection: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.layoutDirection (androidx.compose.ui.text.TextLayoutInput.layoutDirection: androidx.compose.ui.unit.LayoutDirection)""" + ... + @property + def max_lines(self) -> int: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.maxLines (androidx.compose.ui.text.TextLayoutInput.maxLines: kotlin.Int)""" + ... + @property + def overflow(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.overflow (androidx.compose.ui.text.TextLayoutInput.overflow: androidx.compose.ui.text.style.TextOverflow)""" + ... + @property + def resource_loader(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.resourceLoader (androidx.compose.ui.text.TextLayoutInput.resourceLoader: androidx.compose.ui.text.font.Font.ResourceLoader)""" + ... + @property + def soft_wrap(self) -> bool: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.softWrap (androidx.compose.ui.text.TextLayoutInput.softWrap: kotlin.Boolean)""" + ... + @property + def style(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.style (androidx.compose.ui.text.TextLayoutInput.style: androidx.compose.ui.text.TextStyle)""" + ... + @property + def text(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutInput.text (androidx.compose.ui.text.TextLayoutInput.text: androidx.compose.ui.text.AnnotatedString)""" + ... class TextLayoutResult: """Kotlin: androidx.compose.ui.text.TextLayoutResult""" + @property + def did_overflow_height(self) -> bool: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.didOverflowHeight (androidx.compose.ui.text.TextLayoutResult.didOverflowHeight: kotlin.Boolean)""" + ... + @property + def did_overflow_width(self) -> bool: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.didOverflowWidth (androidx.compose.ui.text.TextLayoutResult.didOverflowWidth: kotlin.Boolean)""" + ... + @property + def first_baseline(self) -> float: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.firstBaseline (androidx.compose.ui.text.TextLayoutResult.firstBaseline: kotlin.Float)""" + ... + @property + def has_visual_overflow(self) -> bool: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.hasVisualOverflow (androidx.compose.ui.text.TextLayoutResult.hasVisualOverflow: kotlin.Boolean)""" + ... + @property + def last_baseline(self) -> float: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.lastBaseline (androidx.compose.ui.text.TextLayoutResult.lastBaseline: kotlin.Float)""" + ... + @property + def layout_input(self) -> TextLayoutInput: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.layoutInput (androidx.compose.ui.text.TextLayoutResult.layoutInput: androidx.compose.ui.text.TextLayoutInput)""" + ... + @property + def line_count(self) -> int: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.lineCount (androidx.compose.ui.text.TextLayoutResult.lineCount: kotlin.Int)""" + ... + @property + def multi_paragraph(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.multiParagraph (androidx.compose.ui.text.TextLayoutResult.multiParagraph: androidx.compose.ui.text.MultiParagraph)""" + ... + @property + def size(self) -> int: + """Kotlin property: androidx.compose.ui.text.TextLayoutResult.size (androidx.compose.ui.text.TextLayoutResult.size: androidx.compose.ui.unit.IntSize)""" + ... def AnnotatedString__String_ParagraphStyle(text: str, paragraph_style: ParagraphStyle) -> _t.Any: """Kotlin: androidx.compose.ui.text.AnnotatedString(text: kotlin.String, paragraphStyle: androidx.compose.ui.text.ParagraphStyle): androidx.compose.ui.text.AnnotatedString""" @@ -102,11 +362,11 @@ def decapitalize__String_LocaleList(receiver: str, /, locale_list: _t.Any) -> st """Kotlin: kotlin.String.decapitalize(localeList: androidx.compose.ui.text.intl.LocaleList): kotlin.String""" ... -def draw_text__TextLayoutResult_Brush_Offset_Float_Shadow_TextDecoration_DrawStyle_BlendMode(receiver: _t.Any, /, text_layout_result: TextLayoutResult, brush: pythonx.compose.ui.graphics.Brush, top_left: int = ..., alpha: float = ..., shadow: _t.Any | None = ..., text_decoration: _t.Any | None = ..., draw_style: _t.Any | None = ..., blend_mode: _t.Any = ...) -> None: +def draw_text__TextLayoutResult_Brush_Offset_Float_Shadow_TextDecoration_DrawStyle_BlendMode(receiver: _t.Any, /, text_layout_result: TextLayoutResult, brush: pythonx.compose.ui.graphics.Brush, top_left: int = ..., alpha: float = ..., shadow: pythonx.compose.ui.graphics.Shadow | None = ..., text_decoration: _t.Any | None = ..., draw_style: _t.Any | None = ..., blend_mode: _t.Any = ...) -> None: """Kotlin: androidx.compose.ui.graphics.drawscope.DrawScope.drawText(textLayoutResult: androidx.compose.ui.text.TextLayoutResult, brush: androidx.compose.ui.graphics.Brush, topLeft: androidx.compose.ui.geometry.Offset, alpha: kotlin.Float, shadow: androidx.compose.ui.graphics.Shadow?, textDecoration: androidx.compose.ui.text.style.TextDecoration?, drawStyle: androidx.compose.ui.graphics.drawscope.DrawStyle?, blendMode: androidx.compose.ui.graphics.BlendMode): kotlin.Unit""" ... -def draw_text__TextLayoutResult_Color_Offset_Float_Shadow_TextDecoration_DrawStyle_BlendMode(receiver: _t.Any, /, text_layout_result: TextLayoutResult, color: _t.Any, top_left: int, alpha: float, shadow: _t.Any | None, text_decoration: _t.Any | None, draw_style: _t.Any | None, blend_mode: _t.Any) -> None: +def draw_text__TextLayoutResult_Color_Offset_Float_Shadow_TextDecoration_DrawStyle_BlendMode(receiver: _t.Any, /, text_layout_result: TextLayoutResult, color: _t.Any, top_left: int, alpha: float, shadow: pythonx.compose.ui.graphics.Shadow | None, text_decoration: _t.Any | None, draw_style: _t.Any | None, blend_mode: _t.Any) -> None: """Kotlin: androidx.compose.ui.graphics.drawscope.DrawScope.drawText(textLayoutResult: androidx.compose.ui.text.TextLayoutResult, color: androidx.compose.ui.graphics.Color, topLeft: androidx.compose.ui.geometry.Offset, alpha: kotlin.Float, shadow: androidx.compose.ui.graphics.Shadow?, textDecoration: androidx.compose.ui.text.style.TextDecoration?, drawStyle: androidx.compose.ui.graphics.drawscope.DrawStyle?, blendMode: androidx.compose.ui.graphics.BlendMode): kotlin.Unit""" ... @@ -196,9 +456,9 @@ def decapitalize(receiver: str, /, locale: _t.Any) -> str: ... # type: ignore[o def decapitalize(receiver: str, /, locale_list: _t.Any) -> str: ... # type: ignore[overload-cannot-match] @_t.overload -def draw_text(receiver: _t.Any, /, text_layout_result: TextLayoutResult, brush: pythonx.compose.ui.graphics.Brush, top_left: int = ..., alpha: float = ..., shadow: _t.Any | None = ..., text_decoration: _t.Any | None = ..., draw_style: _t.Any | None = ..., blend_mode: _t.Any = ...) -> None: ... +def draw_text(receiver: _t.Any, /, text_layout_result: TextLayoutResult, brush: pythonx.compose.ui.graphics.Brush, top_left: int = ..., alpha: float = ..., shadow: pythonx.compose.ui.graphics.Shadow | None = ..., text_decoration: _t.Any | None = ..., draw_style: _t.Any | None = ..., blend_mode: _t.Any = ...) -> None: ... @_t.overload -def draw_text(receiver: _t.Any, /, text_layout_result: TextLayoutResult, color: _t.Any, top_left: int, alpha: float, shadow: _t.Any | None, text_decoration: _t.Any | None, draw_style: _t.Any | None, blend_mode: _t.Any) -> None: ... # type: ignore[overload-cannot-match] +def draw_text(receiver: _t.Any, /, text_layout_result: TextLayoutResult, color: _t.Any, top_left: int, alpha: float, shadow: pythonx.compose.ui.graphics.Shadow | None, text_decoration: _t.Any | None, draw_style: _t.Any | None, blend_mode: _t.Any) -> None: ... # type: ignore[overload-cannot-match] @_t.overload def draw_text(receiver: _t.Any, /, text_measurer: _t.Any, text: str, top_left: int, style: _t.Any, overflow: _t.Any, soft_wrap: bool, max_lines: int, size: int, blend_mode: _t.Any) -> None: ... # type: ignore[overload-cannot-match] @@ -304,6 +564,13 @@ class TextInclusionStrategy: ContainsCenter: _t.ClassVar[_t.Any] """Kotlin: androidx.compose.ui.text.TextInclusionStrategy.ContainsCenter(): androidx.compose.ui.text.TextInclusionStrategy""" +class TextPainter: + """Kotlin: androidx.compose.ui.text.TextPainter""" + @staticmethod + def paint(canvas: _t.Any, text_layout_result: TextLayoutResult) -> None: + """Kotlin: androidx.compose.ui.text.TextPainter.paint(canvas: androidx.compose.ui.graphics.Canvas, textLayoutResult: androidx.compose.ui.text.TextLayoutResult): kotlin.Unit""" + ... + class TextStyle: """Kotlin: androidx.compose.ui.text.TextStyle""" Default: _t.ClassVar[_t.Any] diff --git a/pythonx/compose/ui/unit/__init__.pyi b/pythonx/compose/ui/unit/__init__.pyi index 89cdf06..1b1e204 100644 --- a/pythonx/compose/ui/unit/__init__.pyi +++ b/pythonx/compose/ui/unit/__init__.pyi @@ -1,6 +1,44 @@ -# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37077627980, commit 86012ca0, Compose 1.11.1). Do not edit. +# GENERATED by tools/gen_stubs.py from python-multiplatform's Kotlin-named stubs (artifact kotlin-stubs, workflow run 37098191598, commit fa2558e3, Compose 1.11.1). Do not edit. import typing as _t +class DpRect: + """Kotlin: androidx.compose.ui.unit.DpRect""" + @property + def bottom(self) -> float: + """Kotlin property: androidx.compose.ui.unit.DpRect.bottom (androidx.compose.ui.unit.DpRect.bottom: androidx.compose.ui.unit.Dp)""" + ... + @property + def height(self) -> float: + """Kotlin property: androidx.compose.ui.unit.height (androidx.compose.ui.unit.DpRect.height: androidx.compose.ui.unit.Dp)""" + ... + @property + def left(self) -> float: + """Kotlin property: androidx.compose.ui.unit.DpRect.left (androidx.compose.ui.unit.DpRect.left: androidx.compose.ui.unit.Dp)""" + ... + @property + def right(self) -> float: + """Kotlin property: androidx.compose.ui.unit.DpRect.right (androidx.compose.ui.unit.DpRect.right: androidx.compose.ui.unit.Dp)""" + ... + @property + def size(self) -> _t.Any: + """Kotlin property: androidx.compose.ui.unit.size (androidx.compose.ui.unit.DpRect.size: androidx.compose.ui.unit.DpSize)""" + ... + @property + def top(self) -> float: + """Kotlin property: androidx.compose.ui.unit.DpRect.top (androidx.compose.ui.unit.DpRect.top: androidx.compose.ui.unit.Dp)""" + ... + @property + def width(self) -> float: + """Kotlin property: androidx.compose.ui.unit.width (androidx.compose.ui.unit.DpRect.width: androidx.compose.ui.unit.Dp)""" + ... + +class FontScalingLinear: + """Kotlin: androidx.compose.ui.unit.FontScalingLinear""" + @property + def font_scale(self) -> float: + """Kotlin property: androidx.compose.ui.unit.FontScalingLinear.fontScale (androidx.compose.ui.unit.FontScalingLinear.fontScale: kotlin.Float)""" + ... + class LayoutDirection: """Kotlin: androidx.compose.ui.unit.LayoutDirection""" diff --git a/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/Arrangement/__init__.pyi b/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/Arrangement/__init__.pyi new file mode 100644 index 0000000..2423a01 --- /dev/null +++ b/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/Arrangement/__init__.pyi @@ -0,0 +1,34 @@ +# GENERATED by python-multiplatform-gradle-plugin. Do not edit. + +import typing as _t +import androidx.compose.ui.Alignment + +class Horizontal: + """Kotlin: androidx.compose.foundation.layout.Arrangement.Horizontal""" + +class HorizontalOrVertical(Horizontal): + """Kotlin: androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" + +class Vertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.Vertical""" + +End: Horizontal +"""Kotlin: androidx.compose.foundation.layout.Arrangement.End(): androidx.compose.foundation.layout.Arrangement.Horizontal""" + +SpaceBetween: HorizontalOrVertical +"""Kotlin: androidx.compose.foundation.layout.Arrangement.SpaceBetween(): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" + +Top: Vertical +"""Kotlin: androidx.compose.foundation.layout.Arrangement.Top(): androidx.compose.foundation.layout.Arrangement.Vertical""" + +def aligned__Horizontal(alignment: androidx.compose.ui.Alignment.Horizontal) -> Horizontal: + """Kotlin: androidx.compose.foundation.layout.Arrangement.aligned(alignment: androidx.compose.ui.Alignment.Horizontal): androidx.compose.foundation.layout.Arrangement.Horizontal""" + ... + +def aligned__Vertical(alignment: androidx.compose.ui.Alignment.Vertical) -> Vertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.aligned(alignment: androidx.compose.ui.Alignment.Vertical): androidx.compose.foundation.layout.Arrangement.Vertical""" + ... + +def spacedBy__Dp(space: float) -> HorizontalOrVertical: + """Kotlin: androidx.compose.foundation.layout.Arrangement.spacedBy(space: androidx.compose.ui.unit.Dp): androidx.compose.foundation.layout.Arrangement.HorizontalOrVertical""" + ... diff --git a/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/__init__.pyi b/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/__init__.pyi new file mode 100644 index 0000000..a1cea12 --- /dev/null +++ b/tests/fixtures/kotlin_stubs_v3/androidx/compose/foundation/layout/__init__.pyi @@ -0,0 +1,8 @@ +# GENERATED by python-multiplatform-gradle-plugin. Do not edit. + +import typing as _t +import androidx.compose.ui + +def Column(verticalAlignment: androidx.compose.ui.Alignment.Vertical = ..., horizontalAlignment: androidx.compose.ui.Alignment.Horizontal = ..., *, content: _t.Callable[[], None]) -> None: + """Kotlin: androidx.compose.foundation.layout.Column(verticalAlignment: androidx.compose.ui.Alignment.Vertical, horizontalAlignment: androidx.compose.ui.Alignment.Horizontal, content: kotlin.Function0): kotlin.Unit""" + ... diff --git a/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/Alignment/__init__.pyi b/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/Alignment/__init__.pyi new file mode 100644 index 0000000..a8e08b3 --- /dev/null +++ b/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/Alignment/__init__.pyi @@ -0,0 +1,18 @@ +# GENERATED by python-multiplatform-gradle-plugin. Do not edit. + +import typing as _t + +class Horizontal: + """Kotlin: androidx.compose.ui.Alignment.Horizontal""" + +class Vertical: + """Kotlin: androidx.compose.ui.Alignment.Vertical""" + +Center: _t.Any +"""Kotlin: androidx.compose.ui.Alignment.Center(): androidx.compose.ui.Alignment""" + +End: Horizontal +"""Kotlin: androidx.compose.ui.Alignment.End(): androidx.compose.ui.Alignment.Horizontal""" + +Top: Vertical +"""Kotlin: androidx.compose.ui.Alignment.Top(): androidx.compose.ui.Alignment.Vertical""" diff --git a/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/__init__.pyi b/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/__init__.pyi new file mode 100644 index 0000000..e7e64fd --- /dev/null +++ b/tests/fixtures/kotlin_stubs_v3/androidx/compose/ui/__init__.pyi @@ -0,0 +1,23 @@ +# GENERATED by python-multiplatform-gradle-plugin. Do not edit. + +import typing as _t +import androidx.compose.ui.unit + +class Scene: + """Kotlin: androidx.compose.ui.Scene""" + @property + def layoutDirection(self) -> androidx.compose.ui.unit.LayoutDirection: + """Kotlin property: androidx.compose.ui.Scene.layoutDirection (androidx.compose.ui.Scene.layoutDirection: androidx.compose.ui.unit.LayoutDirection)""" + ... + @layoutDirection.setter + def layoutDirection(self, value: androidx.compose.ui.unit.LayoutDirection) -> None: + """Kotlin property: androidx.compose.ui.Scene.layoutDirection=""" + ... + @property + def isMinimized(self) -> bool: + """Kotlin property: androidx.compose.ui.Scene.isMinimized (androidx.compose.ui.Scene.isMinimized: kotlin.Boolean)""" + ... + @isMinimized.setter + def isMinimized(self, value: bool) -> None: + """Kotlin property: androidx.compose.ui.Scene.isMinimized=""" + ... diff --git a/tests/test_stubs.py b/tests/test_stubs.py index c436f1d..f9df16a 100644 --- a/tests/test_stubs.py +++ b/tests/test_stubs.py @@ -8,6 +8,10 @@ class per bound Kotlin type with its extension members as `ClassVar`s of callabl parent stub). So `TheStubMatchesTheRuntime` can do what a stub is for and check it: the signature an editor reads from the stub is the signature `inspect.signature` reports at run time. +`kotlin_stubs_v3` is the format of python-multiplatform #53, #44 and #38: an object stub that declares its +nested Kotlin types as classes (`End: Horizontal`), object functions as explicit overloads, and properties +with `@name.setter`. + `TheCommittedStubs` holds the stubs this repository ships to the real input, python-multiplatform's `kotlin-stubs` artefact, when it has been downloaded to `.tmp/kotlin-stubs.zip`. """ @@ -34,6 +38,7 @@ class per bound Kotlin type with its extension members as `ClassVar`s of callabl KOTLIN_STUBS = HERE / "fixtures" / "kotlin_stubs" KOTLIN_STUBS_V2 = HERE / "fixtures" / "kotlin_stubs_v2" +KOTLIN_STUBS_V3 = HERE / "fixtures" / "kotlin_stubs_v3" ARTEFACT = REPO / ".tmp" / "kotlin-stubs.zip" PACKAGE = REPO / "pythonx" COMPOSE = PACKAGE / "compose" @@ -388,6 +393,74 @@ def test_a_class_with_no_such_constants_gets_no_groups(self): self.assertEqual({}, _nested(cls)) +class TheObjectAndPropertyFormat(unittest.TestCase): + """The upstream format of python-multiplatform #53 (objects), #38 (properties) and #44.""" + + def setUp(self): + self.stubs = _generated(KOTLIN_STUBS_V3) + self.alignment = _classes(self.stubs[UI])["Alignment"] + self.arrangement = _classes(self.stubs[LAYOUT])["Arrangement"] + + def test_a_property_and_its_setter_are_renamed_together(self): + scene = _classes(self.stubs[UI])["Scene"] + functions = [n for n in scene.body if isinstance(n, ast.FunctionDef)] + self.assertEqual(["layout_direction", "layout_direction", "is_minimized", "is_minimized"], + [f.name for f in functions]) + self.assertEqual( + [["property"], ["layout_direction.setter"], ["property"], ["is_minimized.setter"]], + [[ast.unparse(d) for d in f.decorator_list] for f in functions], + ) + + def test_an_objects_nested_types_become_the_constant_groups(self): + """The nested class is the Kotlin type and the notebook's group at once.""" + nested = _nested(self.alignment) + self.assertEqual(["Horizontal", "Vertical"], sorted(nested)) + self.assertEqual({"End"}, _constants(nested["Horizontal"])) + self.assertEqual({"Top"}, _constants(nested["Vertical"])) + self.assertIn("Kotlin: androidx.compose.ui.Alignment.Horizontal", ast.get_docstring(nested["Horizontal"])) + + def test_a_constant_is_typed_with_its_nested_type_qualified(self): + for cls, name, annotation in ( + (self.alignment, "End", "_t.ClassVar[Alignment.Horizontal]"), + (self.alignment, "Center", "_t.ClassVar[_t.Any]"), + (_nested(self.alignment)["Horizontal"], "End", "_t.ClassVar[Alignment.Horizontal]"), + (self.arrangement, "End", "_t.ClassVar[Arrangement.Horizontal]"), + # Derived from another nested type upstream, though Kotlin's is also a Vertical: Any. + (self.arrangement, "SpaceBetween", "_t.ClassVar[_t.Any]"), + (_nested(self.arrangement)["HorizontalOrVertical"], "SpaceBetween", "_t.ClassVar[_t.Any]"), + ): + with self.subTest(constant=name, annotation=annotation): + self.assertEqual(annotation, ast.unparse(_members(cls)[name].annotation)) + + def test_a_nested_types_base_is_qualified_too(self): + bases = _nested(self.arrangement)["HorizontalOrVertical"].bases + self.assertEqual(["Arrangement.Horizontal"], [ast.unparse(b) for b in bases]) + + def test_a_reference_to_an_objects_nested_type_names_the_pythonx_module(self): + column = _functions(self.stubs[LAYOUT])["Column"][0] + self.assertEqual( + ["pythonx.compose.ui.Alignment.Vertical", "pythonx.compose.ui.Alignment.Horizontal"], + [ast.unparse(a.annotation) for a in column.args.args], + ) + aligned = _members(self.arrangement)["aligned__Horizontal"] + self.assertEqual("pythonx.compose.ui.Alignment.Horizontal", ast.unparse(aligned.args.args[0].annotation)) + self.assertEqual("Arrangement.Horizontal", ast.unparse(aligned.returns)) + + def test_an_object_function_is_a_snake_case_static_method(self): + members = self.arrangement.body + spaced = [n for n in members if isinstance(n, ast.FunctionDef) and n.name.startswith("spaced_by")] + self.assertEqual(["spaced_by", "spaced_by__Dp"], sorted(f.name for f in spaced)) + for function in spaced: + self.assertIn("staticmethod", [ast.unparse(d) for d in function.decorator_list]) + self.assertEqual("_t.Any", ast.unparse(function.returns)) + + def test_an_object_functions_overload_set_gets_its_base_name(self): + aligned = [n for n in self.arrangement.body if isinstance(n, ast.FunctionDef) and n.name == "aligned"] + self.assertEqual(2, len(aligned)) + for function in aligned: + self.assertEqual(["staticmethod", "_t.overload"], [ast.unparse(d) for d in function.decorator_list]) + + class TheCommittedStubs(unittest.TestCase): """What ships is what the generator makes of python-multiplatform's `kotlin-stubs` artefact.""" diff --git a/tests/test_typing.py b/tests/test_typing.py index 2c8d93f..4dfada1 100644 --- a/tests/test_typing.py +++ b/tests/test_typing.py @@ -135,6 +135,36 @@ def test_a_grouped_constant_type_checks(self): Alignment.Horizontal.Top """, '"Top"', "[attr-defined]") + def test_an_object_function_and_nested_types_type_check(self): + """SPEC S7.1: `Arrangement.spaced_by` is a static method; a nested type is the group too.""" + self.assertPasses(""" + from pythonx.compose.layout import Arrangement, Column + from pythonx.compose.ui import Alignment + + a = Arrangement.spaced_by(8) + Column(vertical_arrangement=a, horizontal_alignment=Alignment.Horizontal.End, content=lambda scope: None) + Column(horizontal_alignment=Alignment.CenterHorizontally, content=lambda scope: None) + """) + self.assertFails(""" + from pythonx.compose.layout import Arrangement + + Arrangement.spacedBy(8) + """, '"spacedBy"', "[attr-defined]") + self.assertFails(""" + from pythonx.compose.layout import Column + from pythonx.compose.ui import Alignment + + Column(horizontal_alignment=Alignment.Vertical.Top, content=lambda scope: None) + """, "[arg-type]") + + def test_a_property_and_its_setter_type_check(self): + self.assertPasses(""" + from pythonx.compose.ui import ImageComposeScene + + def flip(scene: ImageComposeScene) -> None: + scene.layout_direction = scene.layout_direction + """) + def test_a_kotlin_spelled_module_function_fails(self): self.assertFails(""" from pythonx.compose.layout import fillMaxWidth diff --git a/tools/gen_stubs.py b/tools/gen_stubs.py index 4be0c7e..136683e 100644 --- a/tools/gen_stubs.py +++ b/tools/gen_stubs.py @@ -26,9 +26,15 @@ (python-multiplatform #44). A sub-package directory holding only `__init__.pyi` would be a namespace package at run time and shadow the `KotlinObject` the re-export rule serves. An object whose name the parent uses for a function is left out: at run time that name is the function; +- a property keeps its decorators in step with its name (`@layout_direction.setter`); an object's + nested Kotlin types (`class Horizontal` in `Alignment`'s stub, `End: Horizontal`) become classes of + its class, referenced as `Alignment.Horizontal` (from another module `pythonx.compose.ui.Alignment.Horizontal`), + except a type derived from another nested type, which is `Any` (see `_Qualify`); an object's + explicit overload set (`spacedBy__Dp`) also gets its base name, as a static method; - an object's constants are also grouped by the type nested in it that their docstring declares them as (`Alignment.End(): Alignment.Horizontal`), as a class nested in the object's class - (`Alignment.Horizontal.End`), the runtime's `ConstantGroup` rule; a member of that name wins; + (`Alignment.Horizontal.End`), the runtime's `ConstantGroup` rule; a member of that name wins, unless + it is the nested Kotlin type itself, which then is the group; - a reference to another Kotlin package names the `pythonx.compose` module the manifest lists first for it, and its import is rewritten to match; a package the manifest does not map, or a name the target stub does not declare as a class, becomes `typing.Any`; @@ -163,6 +169,14 @@ def _arity(arguments: ast.arguments) -> int: return len(arguments.posonlyargs) + len(arguments.args) + len(arguments.kwonlyargs) +def _rename_property_decorators(function: ast.FunctionDef) -> None: + """`@layoutDirection.setter` follows its property: the decorator names the renamed property.""" + for decorator in function.decorator_list: + if (isinstance(decorator, ast.Attribute) and decorator.attr in ("setter", "getter", "deleter") + and isinstance(decorator.value, ast.Name)): + decorator.value.id = python_name(decorator.value.id) + + def _is_overload(function: ast.FunctionDef) -> bool: return any(ast.unparse(d) in ("overload", f"{TYPING}.overload") for d in function.decorator_list) @@ -179,13 +193,24 @@ def _annotation(text: str) -> ast.expr: return ast.parse(text, mode="eval").body -def _overload(function: ast.FunctionDef, name: str) -> ast.FunctionDef: +def _overload(function: ast.FunctionDef, name: str, single: bool = False) -> ast.FunctionDef: + """A copy of [function] named [name], as one `@overload` -- or plain when it is the only variant.""" copy = ast.parse(ast.unparse(function)).body[0] copy.name = name - copy.decorator_list = [_annotation(f"{TYPING}.overload")] + copy.decorator_list + if single: + return copy + decorators = [d for d in copy.decorator_list if ast.unparse(d) == "staticmethod"] + others = [d for d in copy.decorator_list if ast.unparse(d) != "staticmethod"] + copy.decorator_list = decorators + [_annotation(f"{TYPING}.overload")] + others return copy +def _base_overloads(variants: list[ast.FunctionDef], base: str) -> list[ast.FunctionDef]: + """The base name of an explicit overload set (`padding__Dp`, ...): fewest parameters first.""" + ordered = sorted(variants, key=lambda variant: _arity(variant.args)) + return [_overload(variant, base, single=len(ordered) == 1) for variant in ordered] + + def _name_of(node: ast.stmt) -> str | None: if isinstance(node, (ast.FunctionDef, ast.ClassDef)): return node.name @@ -213,10 +238,13 @@ def _add_constant_groups(cls: ast.ClassDef, kotlin_name: str) -> None: The runtime's `ConstantGroup` rule, read off the stub: a constant whose docstring (`Kotlin: .End(): .Horizontal`) declares it as exactly `.`, for one simple upper-case name `G`, is repeated in `class G`, which is - emitted unless [cls] already has a member named `G` (a Kotlin member wins). A constant declared + emitted unless [cls] already has a member named `G` (a Kotlin member wins). When that member is + a class -- the Kotlin type nested in the object, `Alignment.Horizontal` -- it is the group: the + constants are added to it, so it is the type and the notebook's grouped spelling at once. A constant declared as anything else -- [cls] itself, a deeper or a foreign type -- stays flat only. """ members = {_name_of(node) for node in cls.body} - {None} + nested = {node.name: node for node in cls.body if isinstance(node, ast.ClassDef)} groups: dict[str, list[ast.stmt]] = {} for index, node in enumerate(cls.body): if not (isinstance(node, ast.AnnAssign) and isinstance(node.target, ast.Name)): @@ -229,12 +257,19 @@ def _add_constant_groups(cls: ast.ClassDef, kotlin_name: str) -> None: if declared is None or declared["owner"] != kotlin_name: continue group = declared["type"][len(kotlin_name) + 1:] if declared["type"].startswith(kotlin_name + ".") else "" - if not group[:1].isupper() or "." in group or group in members: + if not group[:1].isupper() or "." in group or (group in members and group not in nested): continue groups.setdefault(group, []).extend( ast.parse(ast.unparse(statement)).body[0] for statement in (node, following) ) for group in sorted(groups): + if group in nested: + # The Kotlin type nested in the object is the group too: `Alignment.Horizontal.End`. + have = {_name_of(node) for node in nested[group].body} + nested[group].body.extend( + statement for statement in groups[group] if _name_of(statement) not in have + ) + continue doc = f"Kotlin: the constants of {kotlin_name} declared as {kotlin_name}.{group}" cls.body.append(ast.ClassDef( name=group, bases=[], keywords=[], decorator_list=[], @@ -242,6 +277,38 @@ def _add_constant_groups(cls: ast.ClassDef, kotlin_name: str) -> None: )) +class _Qualify(ast.NodeTransformer): + """A Kotlin type nested in an object, named bare in its stub (`End: Horizontal`), as `Alignment.Horizontal`. + + Once the object is a class of its parent stub the bare name resolves to nothing, and the object's + own class holds the nested type under it. A nested type that the stub derives from another nested + type (`HorizontalOrVertical(Horizontal)`) is [untrusted]: Kotlin's `HorizontalOrVertical` is both + an `Arrangement.Horizontal` and an `Arrangement.Vertical`, which one base cannot say, so an + annotation naming it is `Any` rather than a type that rejects half of its uses. + """ + + def __init__(self, owner: str, nested: set[str], untrusted: frozenset[str] = frozenset()): + self.owner = owner + self.nested = nested + self.untrusted = untrusted + + def visit_Name(self, node: ast.Name) -> ast.expr: + if node.id in self.untrusted and isinstance(node.ctx, ast.Load): + return _annotation(_ANY) + if node.id in self.nested and isinstance(node.ctx, ast.Load): + return _annotation(f"{self.owner}.{node.id}") + return node + + def annotations(self, function: ast.FunctionDef) -> None: + arguments = function.args + for argument in (*arguments.posonlyargs, *arguments.args, *arguments.kwonlyargs, + *filter(None, (arguments.vararg, arguments.kwarg))): + if argument.annotation is not None: + argument.annotation = self.visit(argument.annotation) + if function.returns is not None: + function.returns = self.visit(function.returns) + + # -------------------------------------------------------------------------------------- references @@ -308,10 +375,32 @@ def collect(prefix: str, body: list[ast.stmt]) -> None: collect("", tree.body) functions = {_name_of(n) for n in tree.body if not isinstance(n, ast.ClassDef)} - {None} - declared.update(name for name in self.stubs.objects(kotlin_package) if name not in functions) + for name in self.stubs.objects(kotlin_package): + if name in functions: + continue + declared.add(name) + # The Kotlin types an object nests (`Alignment.Horizontal`) are folded into its class. + object_stub = self.stubs.stub(f"{kotlin_package}.{name}") + if object_stub is not None: + declared.update( + f"{name}.{node.name}" for node in parse(object_stub).body if isinstance(node, ast.ClassDef) + ) self._declared[kotlin_package] = declared return dotted in self._declared[kotlin_package] + def _packages(self, tree: ast.Module) -> set[str]: + """The Kotlin packages a stub imports. An object's own stub is a package upstream + (`import androidx.compose.ui.Alignment`) but not a module here: a reference below it is the + parent's, `androidx.compose.ui` + `Alignment.Horizontal`.""" + found = set() + for node in tree.body: + if isinstance(node, ast.Import): + for alias in node.names: + parent, _, child = alias.name.rpartition(".") + if alias.name != "typing" and child not in self.stubs.objects(parent): + found.add(alias.name) + return found + def convert(self, source: str, kotlin_package: str = "", module_name: str = "") -> str: """One Kotlin-named stub module, rewritten to the Pythonic surface.""" dropped: list[str] = [] @@ -319,10 +408,7 @@ def convert(self, source: str, kotlin_package: str = "", module_name: str = "") _mark_ignores(tree) for name in dropped: self.notes.append(f"{kotlin_package}: constant {name!r} is a Python keyword; left out") - imported = { - alias.name for node in tree.body if isinstance(node, ast.Import) for alias in node.names - if alias.name != "typing" - } + imported = self._packages(tree) body: list[ast.stmt] = [] explicit: dict[str, list[ast.FunctionDef]] = {} for node in tree.body: @@ -330,6 +416,7 @@ def convert(self, source: str, kotlin_package: str = "", module_name: str = "") continue if isinstance(node, ast.FunctionDef): node.name = python_name(node.name) + _rename_property_decorators(node) _rename_arguments(node.args) base, sep, _ = node.name.partition("__") if sep: @@ -344,8 +431,7 @@ def convert(self, source: str, kotlin_package: str = "", module_name: str = "") for base, variants in explicit.items(): if base in defined: continue # the binder's own overload set (current format) stands as it is - ordered = sorted(variants, key=lambda variant: _arity(variant.args)) - body.extend(_overload(variant, base) for variant in ordered) + body.extend(_base_overloads(variants, base)) for name in self.stubs.objects(kotlin_package) if kotlin_package else (): self._add_object(body, kotlin_package, name, imported) @@ -377,6 +463,7 @@ def _convert_class(self, cls: ast.ClassDef) -> None: if isinstance(member, ast.AnnAssign) and isinstance(member.target, ast.Name): member.target.id = python_name(member.target.id) elif isinstance(member, ast.FunctionDef) and not member.name.startswith("__"): + _rename_property_decorators(member) member.name = python_name(member.name) if _is_static(member): # A function of a Kotlin object: `KotlinObject` translates its keywords. @@ -399,26 +486,44 @@ def _add_object(self, body: list[ast.stmt], kotlin_package: str, name: str, impo _mark_ignores(tree) for constant in dropped: self.notes.append(f"{kotlin_package}.{name}: constant {constant!r} is a Python keyword; left out") - imported.update( - alias.name for node in tree.body if isinstance(node, ast.Import) for alias in node.names - if alias.name != "typing" + imported.update(self._packages(tree)) + nested = {node.name for node in tree.body if isinstance(node, ast.ClassDef)} + derived = frozenset( + node.name for node in tree.body if isinstance(node, ast.ClassDef) + and any(isinstance(b, ast.Name) and b.id in nested for b in node.bases) ) + bases = _Qualify(name, nested) + qualify = _Qualify(name, nested, derived) groups: list[list[ast.stmt]] = [] # each member with the docstring that follows it + explicit: dict[str, list[ast.FunctionDef]] = {} for node in tree.body: - if isinstance(node, ast.AnnAssign) and isinstance(node.target, ast.Name): + if isinstance(node, ast.ClassDef): + # A Kotlin type the object nests (`Alignment.Horizontal`): a class of the folded object. + node.bases = [bases.visit(base) for base in node.bases] + groups.append([node]) + elif isinstance(node, ast.AnnAssign) and isinstance(node.target, ast.Name): node.target.id = python_name(node.target.id) + node.annotation = qualify.visit(node.annotation) if not ast.unparse(node.annotation).startswith(f"{TYPING}.ClassVar["): node.annotation = _annotation(f"{TYPING}.ClassVar[{ast.unparse(node.annotation)}]") groups.append([node]) elif isinstance(node, ast.FunctionDef): node.name = python_name(node.name) _rename_arguments(node.args) + qualify.annotations(node) node.decorator_list = [ast.Name(id="staticmethod", ctx=ast.Load())] + [ d for d in node.decorator_list if ast.unparse(d) != "staticmethod" ] groups.append([node]) + base, sep, _ = node.name.partition("__") + if sep: + explicit.setdefault(base, []).append(node) elif isinstance(node, ast.Expr) and groups and isinstance(groups[-1][0], ast.AnnAssign): groups[-1].append(node) + defined = {_name_of(group[0]) for group in groups} + for base, variants in explicit.items(): + if base not in defined: + groups.extend([function] for function in _base_overloads(variants, base)) if holder is None: holder = ast.ClassDef( name=name, bases=[], keywords=[], decorator_list=[],