Skip to content

Commit

Permalink
Add .length setter to Children
Browse files Browse the repository at this point in the history
  • Loading branch information
Soaku committed Aug 29, 2021
1 parent 8203ffb commit 1df1e75
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions source/glui/children.d
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,21 @@ debug struct Children {

}

@property
size_t length() const {
@property {

return _children.length;
size_t length() const {

return _children.length;

}

size_t length(size_t value) {

debug assert(!_locked, mutateError);

return _children.length = value;

}

}

Expand Down

0 comments on commit 1df1e75

Please sign in to comment.