* Set desired aspect ratio of this widget. * @param ratio Desired aspect ratio, or 0 for none. * @param flags Dimensions which should be resized. */
| 1008 | * @param flags Dimensions which should be resized. |
| 1009 | */ |
| 1010 | void NWidgetResizeBase::SetAspect(float ratio, AspectFlags flags) |
| 1011 | { |
| 1012 | this->aspect_ratio = ratio; |
| 1013 | this->aspect_flags = flags; |
| 1014 | } |
| 1015 | |
| 1016 | /** |
| 1017 | * Set desired aspect ratio of this widget, in terms of horizontal and vertical dimensions. |