Get current value.
QxToolBarMenuButton.getDirection();
Set new value.
QxToolBarMenuButton.setDirection(newValue);