Files
divkit/json-builder/python/pydivkit/div/div_rounded_rectangle_shape.py
T
timatifey 7bb4ec59c2 pydivkit gitignore
gitignore change
2022-10-20 13:45:09 +03:00

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()