Stack Layout

The CStackLayout class inherits from StackLayout and extends its functionality by introducing additional properties.

For instance, let’s see an example of how CStackLayout enhances control of background color compared to standard one.

CStackLayout:
    bg_color: app.background_hover
StackLayout:
    canvas.before:
        Color:
            rgba: app.background_hover
        SmoothRectangle:
            pos: self.pos
            size: self.size

API

class carbonkivy.uix.stacklayout.stacklayout.CStackLayout(*args: Any, **kwargs: Any)[source]

Bases: AdaptiveBehavior, BackgroundColorBehaviorRectangular, StackLayout, DeclarativeBehavior