JUCE
Public Member Functions | Public Attributes | List of all members
VideoComponent::Pimpl Struct Reference

Inherits Component, and BaseClass.

Public Member Functions

 Pimpl ()
 
 ~Pimpl ()
 
Result load (const File &file)
 
Result load (const URL &url)
 
Result load (NSURL *url)
 
void close ()
 
bool isOpen () const noexcept
 
bool isPlaying () const noexcept
 
void play () noexcept
 
void stop () noexcept
 
void setPosition (double newPosition)
 
double getPosition () const
 
void setSpeed (double newSpeed)
 
double getSpeed () const
 
Rectangle< int > getNativeSize () const
 
double getDuration () const
 
void setVolume (float newVolume)
 
float getVolume () const
 
 Pimpl ()
 
 ~Pimpl ()
 
Result loadFromString (const String &fileOrURLPath)
 
Result load (const File &file)
 
Result load (const URL &url)
 
void close ()
 
bool isOpen () const
 
bool isPlaying () const
 
void play ()
 
void stop ()
 
void setPosition (double newPosition)
 
double getPosition () const
 
void setSpeed (double newSpeed)
 
Rectangle< int > getNativeSize () const
 
double getDuration () const
 
void setVolume (float newVolume)
 
float getVolume () const
 
void paint (Graphics &g) override
 
void updateContextPosition ()
 
void updateContextVisibility ()
 
void recreateNativeWindowAsync ()
 

Public Attributes

File currentFile
 
URL currentURL
 

Constructor & Destructor Documentation

◆ Pimpl() [1/2]

VideoComponent::Pimpl::Pimpl ( )

◆ ~Pimpl() [1/2]

VideoComponent::Pimpl::~Pimpl ( )

References close().

◆ Pimpl() [2/2]

VideoComponent::Pimpl::Pimpl ( )

◆ ~Pimpl() [2/2]

VideoComponent::Pimpl::~Pimpl ( )

Member Function Documentation

◆ load() [1/5]

Result VideoComponent::Pimpl::load ( const File &  file)

Referenced by load().

◆ load() [2/5]

Result VideoComponent::Pimpl::load ( const URL &  url)

References load().

◆ load() [3/5]

Result VideoComponent::Pimpl::load ( NSURL *  url)

References close().

◆ close() [1/2]

void VideoComponent::Pimpl::close ( )

References currentFile, currentURL, and stop().

Referenced by load(), and ~Pimpl().

◆ isOpen() [1/2]

bool VideoComponent::Pimpl::isOpen ( ) const
noexcept

◆ isPlaying() [1/2]

bool VideoComponent::Pimpl::isPlaying ( ) const
noexcept

References getSpeed().

◆ play() [1/2]

void VideoComponent::Pimpl::play ( )
noexcept

References play().

Referenced by play().

◆ stop() [1/2]

void VideoComponent::Pimpl::stop ( )
noexcept

Referenced by close().

◆ setPosition() [1/2]

void VideoComponent::Pimpl::setPosition ( double  newPosition)

◆ getPosition() [1/2]

double VideoComponent::Pimpl::getPosition ( ) const

◆ setSpeed() [1/2]

void VideoComponent::Pimpl::setSpeed ( double  newSpeed)

◆ getSpeed()

double VideoComponent::Pimpl::getSpeed ( ) const

Referenced by isPlaying().

◆ getNativeSize() [1/2]

Rectangle<int> VideoComponent::Pimpl::getNativeSize ( ) const

◆ getDuration() [1/2]

double VideoComponent::Pimpl::getDuration ( ) const

◆ setVolume() [1/2]

void VideoComponent::Pimpl::setVolume ( float  newVolume)

◆ getVolume() [1/2]

float VideoComponent::Pimpl::getVolume ( ) const

◆ loadFromString()

Result VideoComponent::Pimpl::loadFromString ( const String &  fileOrURLPath)

◆ load() [4/5]

Result VideoComponent::Pimpl::load ( const File &  file)

◆ load() [5/5]

Result VideoComponent::Pimpl::load ( const URL &  url)

◆ close() [2/2]

void VideoComponent::Pimpl::close ( )

◆ isOpen() [2/2]

bool VideoComponent::Pimpl::isOpen ( ) const

◆ isPlaying() [2/2]

bool VideoComponent::Pimpl::isPlaying ( ) const

◆ play() [2/2]

void VideoComponent::Pimpl::play ( )

◆ stop() [2/2]

void VideoComponent::Pimpl::stop ( )

◆ setPosition() [2/2]

void VideoComponent::Pimpl::setPosition ( double  newPosition)

◆ getPosition() [2/2]

double VideoComponent::Pimpl::getPosition ( ) const

◆ setSpeed() [2/2]

void VideoComponent::Pimpl::setSpeed ( double  newSpeed)

◆ getNativeSize() [2/2]

Rectangle<int> VideoComponent::Pimpl::getNativeSize ( ) const

◆ getDuration() [2/2]

double VideoComponent::Pimpl::getDuration ( ) const

◆ setVolume() [2/2]

void VideoComponent::Pimpl::setVolume ( float  newVolume)

◆ getVolume() [2/2]

float VideoComponent::Pimpl::getVolume ( ) const

◆ paint()

void VideoComponent::Pimpl::paint ( Graphics &  g)
override

◆ updateContextPosition()

void VideoComponent::Pimpl::updateContextPosition ( )

◆ updateContextVisibility()

void VideoComponent::Pimpl::updateContextVisibility ( )

◆ recreateNativeWindowAsync()

void VideoComponent::Pimpl::recreateNativeWindowAsync ( )

Member Data Documentation

◆ currentFile

File VideoComponent::Pimpl::currentFile

Referenced by close().

◆ currentURL

URL VideoComponent::Pimpl::currentURL

Referenced by close().


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