api: add widget line height accessors
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user