Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 73cc2d21c6a7157aa21e4d77d28ab8b2bddb9548
  • master par défaut
  • 1-baka-export
  • meson
  • assdraw
  • old-master
  • v3.2.2
  • v3.2.1
  • v3.2.0
  • v3.1.3
  • v3.1.2
  • v3.1.1
  • v3.1.0
  • v3.0.4
  • v3.0.3
  • v3.0.2
  • v3.0.1
  • v3.0.0
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.1.6
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.1.7
26 résultats

video_provider_ffmpegsource.cpp

Blame
  • Line.hh 1,03 Kio
    #ifndef VIVY_ASS_LINE_H
    #define VIVY_ASS_LINE_H
    
    #include <QString>
    #include <QtGlobal>
    #include "Syl.hh"
    #include "StyleProperties.hh"
    #include "Style.hh"
    
    namespace Vivy::Ass
    {
    class AssFactory;
    
    class Line final {
    private:
        quint64 start{ 0 };
        quint64 end{ 0 };
        int layer{ 0 };
    
        QVector<Syl> content{};
        StyleProperties styleProperties{};
        QString effect{};
        QString nameOrActor{};
        StyleWeakPtr lineStyle;
    
        QString ___contentAsText;
    
        AssFactory *const assFactory;
    
    public:
        explicit Line(const Line &) = default;
        explicit Line(AssFactory *const, const QString &);
        Line &operator=(const Line &) = delete;
    
        ~Line() noexcept = default;
    
        void setStart(quint64 s) noexcept;
        void setEnd(quint64 s) noexcept;
        quint64 getDuration() const noexcept;
    
        StyleProperties getStyleProperties() const noexcept;
        StyleWeakPtr getStyle() const noexcept;
        const QVector<Syl> &getContent() const noexcept;
    
    private:
        void initSylFromString(const QString &) noexcept;
    };
    
    }
    
    #endif // VIVY_ASS_LINE_H