Float Layout
The CFloatLayout class inherits from FloatLayout and extends its functionality by introducing additional properties.
For instance, let’s see an example of how CFloatLayout enhances control of background color compared to standard one.
CFloatLayout:
bg_color: app.background_hover
FloatLayout:
canvas.before:
Color:
rgba: app.background_hover
SmoothRectangle:
pos: self.pos
size: self.size
API
- class carbonkivy.uix.floatlayout.floatlayout.CFloatLayout(*args: Any, **kwargs: Any)[source]
Bases:
AdaptiveBehavior,BackgroundColorBehaviorRectangular,FloatLayout,DeclarativeBehavior