Compare commits
3 commits
v0.2.0+0.1
...
main
Author | SHA1 | Date | |
---|---|---|---|
d467608ca4 | |||
|
37110b6e0e | ||
|
d1618770c7 |
1 changed files with 2 additions and 2 deletions
|
@ -723,7 +723,7 @@ pub const ElementDeclaration = extern struct {
|
||||||
/// Firstly, tagging an element with an ID allows you to query information about the element later, such as its mouseover state or dimensions.
|
/// Firstly, tagging an element with an ID allows you to query information about the element later, such as its mouseover state or dimensions.
|
||||||
///
|
///
|
||||||
/// Secondly, IDs are visually useful when attempting to read and modify UI code, as well as when using the built-in debug tools.
|
/// Secondly, IDs are visually useful when attempting to read and modify UI code, as well as when using the built-in debug tools.
|
||||||
id: ElementId = .{ .base_id = 0, .id = 0, .offset = 0, .string_id = .{ .chars = &.{}, .length = 0 } },
|
id: ElementId = .{ .base_id = 0, .id = 0, .offset = 0, .string_id = .{ .chars = &[_]u8{}, .length = 0 } },
|
||||||
/// Controls various settings that affect the size and position of an element, as well as the sizes and positions of any child elements.
|
/// Controls various settings that affect the size and position of an element, as well as the sizes and positions of any child elements.
|
||||||
layout: LayoutConfig = .{},
|
layout: LayoutConfig = .{},
|
||||||
/// Controls the background color of the resulting element.
|
/// Controls the background color of the resulting element.
|
||||||
|
@ -1083,7 +1083,7 @@ pub fn getElementId(string: []const u8) ElementId {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: doc
|
// TODO: doc
|
||||||
fn getScrollOffset() Vector2 {
|
pub fn getScrollOffset() Vector2 {
|
||||||
return cdefs.Clay_GetScrollOffset();
|
return cdefs.Clay_GetScrollOffset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue