mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsmediawidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsMediaWidget : QWidget
|
|
{
|
|
%Docstring(signature="appended")
|
|
A widget for playing back audio and video media files.
|
|
|
|
.. versionadded:: 3.30
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmediawidget.h"
|
|
%End
|
|
public:
|
|
enum Mode
|
|
{
|
|
Audio,
|
|
Video,
|
|
};
|
|
|
|
explicit QgsMediaWidget( QWidget *parent /TransferThis/ = 0 );
|
|
%Docstring
|
|
Constructor
|
|
%End
|
|
|
|
QString mediaPath() const;
|
|
%Docstring
|
|
Returns the media path.
|
|
%End
|
|
|
|
void setMediaPath( const QString &path );
|
|
%Docstring
|
|
Sets the media ``path``.
|
|
%End
|
|
|
|
Mode mode() const;
|
|
%Docstring
|
|
Returns the media widget mode.
|
|
%End
|
|
|
|
void setMode( Mode mode );
|
|
%Docstring
|
|
Sets the media widget ``mode``.
|
|
%End
|
|
|
|
int videoHeight() const;
|
|
%Docstring
|
|
Returns the video frame height.
|
|
%End
|
|
|
|
void setVideoHeight( int height );
|
|
%Docstring
|
|
Sets the video frame height.
|
|
|
|
.. note::
|
|
|
|
setting the height to 0 is interpreted as a video frame that will
|
|
expand to fill available height in the widget's parent layout.
|
|
%End
|
|
|
|
QMediaPlayer *mediaPlayer();
|
|
%Docstring
|
|
Returns the QMediaPlayer object.
|
|
%End
|
|
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsmediawidget.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|