Enum GenListMode
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
Enumeration for setting the genlist's resizing behavior, transverse axis scrolling, and items cropping.
public enum GenListMode
Fields
Name | Description |
---|---|
Compress | The genlist won't set any of its size hints to inform how a possible container should resize it. Then, if it's not created as a "resize object", it might end up with zeroed dimensions. The genlist will respect the container's geometry,and if any of its items won't fit into its transverse axis, one won't be able to scroll it in that direction. |
Expand | Besides setting a minimum size on the transverse axis, just like on Limit, the genlist will set a minimum size on the longitudinal axis, trying to reserve space to all its children to be visible at a time. This is naturally bound by the genlist object's maximum size hints, set externally. |
Limit | Sets a minimum size hint on the genlist object, so that containers may respect it (and resize itself to fit the child properly). More specifically, a minimum size hint will be set for its transverse axis, so that the largest item in that direction fits well. This is naturally bound by the genlist object's maximum size hints, set externally. |
Scroll | This is the same as Compress, with the exception that if any of its items won't fit into its transverse axis, one will be able to scroll it in that direction. |