Anchor Layout

The CAnchorLayout class inherits from AnchorLayout and extends its functionality by introducing additional properties.

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

CAnchorLayout:
    bg_color: app.background_hover
AnchorLayout:
    canvas.before:
        Color:
            rgba: app.background_hover
        SmoothRectangle:
            pos: self.pos
            size: self.size

API

class carbonkivy.uix.anchorlayout.anchorlayout.CAnchorLayout(*args: Any, **kwargs: Any)[source]

Bases: AdaptiveBehavior, BackgroundColorBehaviorRectangular, AnchorLayout, DeclarativeBehavior