api: add widget line height accessors

This commit is contained in:
Adam
2021-06-11 15:16:29 -04:00
parent d4078a9555
commit 53e257ce17
2 changed files with 15 additions and 0 deletions

View File

@@ -845,6 +845,20 @@ public interface Widget
*/
void setYPositionMode(int ypm);
/**
* Get the line height for this widget.
*
* @return
*/
int getLineHeight();
/**
* Set the line height for this widget. If set to 0, the line height is taken from the font instead.
*
* @param lineHeight
*/
void setLineHeight(int lineHeight);
/**
* Gets the X axis text position mode
*

View File

@@ -181,6 +181,7 @@ public class WidgetInfoTableModel extends AbstractTableModel
out.add(new WidgetField<>("YPositionMode", Widget::getYPositionMode, Widget::setYPositionMode, Integer.class));
out.add(new WidgetField<>("WidthMode", Widget::getWidthMode, Widget::setWidthMode, Integer.class));
out.add(new WidgetField<>("HeightMode", Widget::getHeightMode, Widget::setHeightMode, Integer.class));
out.add(new WidgetField<>("LineHeight", Widget::getLineHeight, Widget::setLineHeight, Integer.class));
out.add(new WidgetField<>("XTextAlignment", Widget::getXTextAlignment, Widget::setXTextAlignment, Integer.class));
out.add(new WidgetField<>("YTextAlignment", Widget::getYTextAlignment, Widget::setYTextAlignment, Integer.class));
out.add(new WidgetField<>("RelativeX", Widget::getRelativeX, Widget::setRelativeX, Integer.class));