Patch Class Reference

#include <patch.h>

Inherits ListItem< Patch >.

Collaboration diagram for Patch:

Collaboration graph
[legend]

Public Member Functions

 Patch ()
 Patch (MWindow *mwindow, PatchBay *patchbay, int data_type)
 ~Patch ()
int save (FileXML *xml)
int load (FileXML *xml)
int create_objects (char *text, int pixel)
int set_pixel (int pixel)
int set_title (char *new_title)
int flip_vertical ()
int pixelmovement (int distance)
Moduleget_module ()

Data Fields

int pixel
int data_type
int record
int play
int automate
int draw
char title [1024]
PatchBaypatches
MWindowmwindow
RecordPatchOldrecordpatch
PlayPatchOldplaypatch
TitlePatchOldtitle_text
AutoPatchOldautopatch
DrawPatchOlddrawpatch

Detailed Description

Definition at line 30 of file patch.h.


Constructor & Destructor Documentation

Patch::Patch (  )  [inline]

Definition at line 33 of file patch.h.

Patch::Patch ( MWindow mwindow,
PatchBay patchbay,
int  data_type 
)

Definition at line 12 of file patch.C.

References automate, draw, patches, play, record, and title.

Patch::~Patch (  ) 

Definition at line 21 of file patch.C.

References autopatch, drawpatch, MWindow::gui, mwindow, playpatch, recordpatch, and title_text.


Member Function Documentation

int Patch::save ( FileXML xml  ) 

Definition at line 64 of file patch.C.

References FileXML::append_newline(), FileXML::append_tag(), FileXML::append_text(), automate, draw, play, record, XMLTag::set_title(), FileXML::tag, and title.

Here is the call graph for this function:

int Patch::load ( FileXML xml  ) 

int Patch::create_objects ( char *  text,
int  pixel 
)

Definition at line 33 of file patch.C.

References BC_WindowBase::add_subwindow(), drawpatch, MWindow::gui, mwindow, patches, playpatch, recordpatch, MWindow::session, title, and title_text.

Here is the call graph for this function:

int Patch::set_pixel ( int  pixel  ) 

int Patch::set_title ( char *  new_title  ) 

Definition at line 193 of file patch.C.

References title, title_text, and BC_TextBox::update().

Here is the call graph for this function:

int Patch::flip_vertical (  ) 

int Patch::pixelmovement ( int  distance  ) 

Definition at line 226 of file patch.C.

References MWindow::gui, mwindow, pixel, and set_pixel().

Here is the call graph for this function:

Module * Patch::get_module (  ) 

Definition at line 236 of file patch.C.

Referenced by TitlePatchOld::handle_event().


Field Documentation

Definition at line 46 of file patch.h.

Referenced by flip_vertical(), and pixelmovement().

Definition at line 47 of file patch.h.

Definition at line 50 of file patch.h.

Referenced by load(), Patch(), and save().

char Patch::title[1024]

Definition at line 52 of file patch.h.

Referenced by create_objects(), TitlePatchOld::handle_event(), load(), Patch(), save(), and set_title().

Definition at line 69 of file patch.h.

Referenced by create_objects(), flip_vertical(), load(), pixelmovement(), set_pixel(), and ~Patch().

Definition at line 71 of file patch.h.

Referenced by create_objects(), flip_vertical(), load(), set_pixel(), and ~Patch().

Definition at line 72 of file patch.h.

Referenced by create_objects(), flip_vertical(), load(), set_pixel(), and ~Patch().

Definition at line 73 of file patch.h.

Referenced by create_objects(), flip_vertical(), load(), set_pixel(), set_title(), and ~Patch().

Definition at line 74 of file patch.h.

Referenced by flip_vertical(), load(), set_pixel(), and ~Patch().

Definition at line 75 of file patch.h.

Referenced by create_objects(), flip_vertical(), load(), set_pixel(), and ~Patch().


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

Generated on Mon Apr 28 14:34:56 2008 for Cinelerra by  doxygen 1.5.5