4 @SuppressWarnings public class QVideoWidget : QWidget{
6 onVideoWidgetListener _l;
16 nativehandle = QtXnl.createQObject(QType.qtVideoWidget,
this, 0);
17 if (nativehandle == 0) {
23 public bool create(@NotNilptr QWidget parent)
override{
24 nativehandle = QtXnl.createQObject(QType.qtVideoWidget,
this, parent.nativehandle);
25 if (nativehandle == 0) {
39 return (QMediaObject)QtXnl.widget_get_object(nativehandle, Constant.QVIDEOWIDGET_MEDIAOBJECT);
43 return (AspectRatioMode)QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_ASPECTRATIOMODE);
47 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_BRIGHTNESS);
50 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_CONTRAST);
53 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_HUE);
56 return QtXnl.widget_get_int_value(nativehandle, Constant.QVIDEOWIDGET_SATURATION);
60 long lsize = QtXnl.long_get(nativehandle, Constant.QVIDEOWIDGET_SIZEHINT);
61 return new QSize(lsize >> 32 & 0xffffffff, lsize & 0xffffffff);
66 QtXnl.widget_set_bool_value(nativehandle, Constant.QVIDEOWIDGET_SETFULLSCREEN, fullScreen);
69 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETASPECTRATIOMODE, mode);
72 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETBRIGHTNESS, brightness);
75 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETCONTRAST, contrast);
78 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETHUE, hue);
81 QtXnl.widget_set_vint_value(nativehandle, Constant.QVIDEOWIDGET_SETSATURATION, saturation);
87 _l.fullScreenChanged(
this, fullScreen);
92 _l.brightnessChanged(
this, brightness);
97 _l.contrastChanged(
this, contrast);
102 _l.hueChanged(
this, hue);
107 _l.saturationChanged(
this, saturation);