Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QVideoTextureHelper::SubtitleLayout Struct Reference

#include <qvideotexturehelper_p.h>

Collaboration diagram for QVideoTextureHelper::SubtitleLayout:

Public Member Functions

bool update (const QSize &frameSize, QString text)
void draw (QPainter *painter, const QPointF &translate) const
QImage toImage () const

Public Attributes

QSize videoSize
QRectF bounds
QTextLayout layout

Detailed Description

Definition at line 173 of file qvideotexturehelper_p.h.

Member Function Documentation

◆ draw()

void QVideoTextureHelper::SubtitleLayout::draw ( QPainter * painter,
const QPointF & translate ) const

Definition at line 974 of file qvideotexturehelper.cpp.

◆ toImage()

QImage QVideoTextureHelper::SubtitleLayout::toImage ( ) const

Definition at line 994 of file qvideotexturehelper.cpp.

◆ update()

bool QVideoTextureHelper::SubtitleLayout::update ( const QSize & frameSize,
QString text )

Definition at line 920 of file qvideotexturehelper.cpp.

Member Data Documentation

◆ bounds

QRectF QVideoTextureHelper::SubtitleLayout::bounds

Definition at line 176 of file qvideotexturehelper_p.h.

◆ layout

QTextLayout QVideoTextureHelper::SubtitleLayout::layout

Definition at line 177 of file qvideotexturehelper_p.h.

◆ videoSize

QSize QVideoTextureHelper::SubtitleLayout::videoSize

Definition at line 175 of file qvideotexturehelper_p.h.


The documentation for this struct was generated from the following files: