mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
Switch CLAY_CLIP_TO_NONE to default option for floating elements
This commit is contained in:
parent
78e83b15e0
commit
9ab240376f
14
clay.h
14
clay.h
|
@ -445,12 +445,12 @@ typedef CLAY_PACKED_ENUM {
|
|||
CLAY_ATTACH_TO_ROOT,
|
||||
} Clay_FloatingAttachToElement;
|
||||
|
||||
// Controls how a floating element is clipped
|
||||
// Controls whether or not a floating element is clipped to the same clipping rectangle as the element it's attached to.
|
||||
typedef CLAY_PACKED_ENUM {
|
||||
// (default) The floating element is clipped by the context of its attached parent.
|
||||
CLAY_CLIP_TO_ATTACHED_PARENT,
|
||||
// The floating element is not clipped.
|
||||
// (default) - The floating element does not inherit clipping.
|
||||
CLAY_CLIP_TO_NONE,
|
||||
// The floating element is clipped to the same clipping rectangle as the element it's attached to.
|
||||
CLAY_CLIP_TO_ATTACHED_PARENT
|
||||
} Clay_FloatingClipToElement;
|
||||
|
||||
// Controls various settings related to "floating" elements, which are elements that "float" above other elements, potentially overlapping their boundaries,
|
||||
|
@ -481,9 +481,9 @@ typedef struct {
|
|||
// CLAY_ATTACH_TO_ELEMENT_WITH_ID - Attaches this floating element to an element with a specific ID, specified with the .parentId field. positioned based on the .attachPoints and .offset fields.
|
||||
// CLAY_ATTACH_TO_ROOT - Attaches this floating element to the root of the layout, which combined with the .offset field provides functionality similar to "absolute positioning".
|
||||
Clay_FloatingAttachToElement attachTo;
|
||||
// Controls how a floating element is clipped
|
||||
// CLAY_CLIP_TO_ATTACHED_PARENT (default) - The floating element is clipped by the context of its attached parent.
|
||||
// CLAY_CLIP_TO_NONE - The floating element is not clipped.
|
||||
// Controls whether or not a floating element is clipped to the same clipping rectangle as the element it's attached to.
|
||||
// CLAY_CLIP_TO_NONE (default) - The floating element does not inherit clipping.
|
||||
// CLAY_CLIP_TO_ATTACHED_PARENT - The floating element is clipped to the same clipping rectangle as the element it's attached to.
|
||||
Clay_FloatingClipToElement clipTo;
|
||||
} Clay_FloatingElementConfig;
|
||||
|
||||
|
|
Loading…
Reference in a new issue