mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
7bb4ec59c2
gitignore change
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
# Generated code. Do not modify.
|
|
|
|
from __future__ import annotations
|
|
from pydivkit.core import BaseDiv, Field
|
|
import enum
|
|
import typing
|
|
|
|
from . import div_fixed_size
|
|
|
|
|
|
# A rectangle with rounded corners.
|
|
class DivRoundedRectangleShape(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
type: str = 'rounded_rectangle',
|
|
corner_radius: typing.Optional[div_fixed_size.DivFixedSize] = None,
|
|
item_height: typing.Optional[div_fixed_size.DivFixedSize] = None,
|
|
item_width: typing.Optional[div_fixed_size.DivFixedSize] = None,
|
|
):
|
|
super().__init__(
|
|
type=type,
|
|
corner_radius=corner_radius,
|
|
item_height=item_height,
|
|
item_width=item_width,
|
|
)
|
|
|
|
type: str = Field(default='rounded_rectangle')
|
|
corner_radius: typing.Optional[div_fixed_size.DivFixedSize] = Field(description='Corner rounding radius.')
|
|
item_height: typing.Optional[div_fixed_size.DivFixedSize] = Field(description='Height.')
|
|
item_width: typing.Optional[div_fixed_size.DivFixedSize] = Field(description='Width.')
|
|
|
|
|
|
DivRoundedRectangleShape.update_forward_refs()
|