Padre-Plugin-WxWidgets

 view release on metacpan or  search on metacpan

share/doc/wxwidgets.pod  view on Meta::CPAN


   See also Modify.

=head2 Wx::Document::LoadObject

   virtual istream& LoadObject(istream& stream)

   virtual wxInputStream& LoadObject(wxInputStream& stream)

   Override this function and call it from your own LoadObject before
   streaming your own data. LoadObject is called by the framework
   automatically when the document contents need to be loaded.

   Note that only one of these forms exists, depending on how wxWidgets
   was configured.

=head2 Wx::Document::Modify

   virtual void Modify(bool modify)

   Call with true to mark the document as modified since the last save,

share/doc/wxwidgets.pod  view on Meta::CPAN


   Prompts the user for a file to save to, and then calls OnSaveDocument.

=head2 Wx::Document::SaveObject

   virtual ostream& SaveObject(ostream& stream)

   virtual wxOutputStream& SaveObject(wxOutputStream& stream)

   Override this function and call it from your own SaveObject before
   streaming your own data. SaveObject is called by the framework
   automatically when the document contents need to be saved.

   Note that only one of these forms exists, depending on how wxWidgets
   was configured.

=head2 Wx::Document::SetCommandProcessor

   virtual void SetCommandProcessor(wxCommandProcessor *processor)

   Sets the command processor to be used for this document. The document

share/doc/wxwidgets.pod  view on Meta::CPAN

   available, for example, it falls outside the realm of licensing
   restrictions).

   For general operation, all you need to do is call wxMediaCtrl::Load to
   load the file you want to render, catch the EVT_MEDIA_LOADED event,
   and then call wxMediaCtrl::Play to show the video/audio of the media
   in that event.

   More complex operations are generally more heavily dependant on the
   capabilities of the backend. For example, QuickTime cannot set the
   playback rate of certain streaming media - while DirectShow is
   slightly more flexible in that regard.

=head2 Operation

   When wxMediaCtrl plays a file, it plays until the stop position is
   reached (currently the end of the file/stream). Right before it hits
   the end of the stream, it fires off a EVT_MEDIA_STOP event to its
   parent window, at which point the event handler can choose to veto the
   event, preventing the stream from actually stopping.



( run in 0.247 second using v1.01-cache-2.11-cpan-4d50c553e7e )