-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.PrivateContainer
Jean-Philippe Bruyère edited this page Oct 26, 2021
·
4 revisions
Implement drawing and layouting for a single child, but does not expose child to allow reuse of container behaviour for widgets that have other xml hierarchy: example TemplatedControl may have 3 children (template,templateItem,content) but behave exactely as a container for layouting and drawing
namespace: Crow
-
PrivateContainer
public class PrivateContainer : Widget
⬜ | prototype | description |
---|---|---|
PrivateContainer (Interface iface, string style=null) |
__ |
⬜ | name | description |
---|
⬜ | prototype | description |
---|---|---|
void checkHoverWidget(MouseMoveEventArgs e) |
__ | |
bool Contains(Widget goToFind) |
__ | |
Widget FindByName(string nameToFind) |
__ | |
T FindByType< T >() |
__ | |
int measureRawSize(LayoutingType lt) |
return size of content + margins | |
void OnChildLayoutChanges(object sender, LayoutingEventArgs arg) |
__ | |
void OnDataSourceChanged(object sender, DataSourceChangeEventArgs e) |
__ | |
void OnLayoutChanges(LayoutingType layoutType) |
trigger dependant sizing component update | |
bool UpdateLayout(LayoutingType layoutType) |
Update layout component only one at a time, this is where the computation of alignement and size take place. The redrawing will only be triggered if final slot size has changed |
⬜ | name | description |
---|