Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
ClipView Class Reference
Inheritance diagram for ClipView:
Collaboration diagram for ClipView:

Public Member Functions

uint32_t getMaxZoom () override
 
uint32_t getMaxLength () override
 
ActionResult horizontalEncoderAction (int32_t offset) override
 
int32_t getLengthChopAmount (int32_t square)
 
int32_t getLengthExtendAmount (int32_t square)
 
void focusRegained () override
 
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
 
- Public Member Functions inherited from TimelineView
void scrollFinished () override
 
TimelineViewtoTimelineView () final
 Convert this view to a TimelineView.
 
virtual bool calculateZoomPinSquares (uint32_t oldScroll, uint32_t newScroll, uint32_t newZoom, uint32_t oldZoom)
 
virtual bool setupScroll (uint32_t oldScroll)
 
virtual int32_t getNavSysId () const
 
virtual void tellMatrixDriverWhichRowsContainSomethingZoomable ()
 
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
 
void displayZoomLevel (bool justPopup=false)
 
ActionResult horizontalEncoderAction (int32_t offset) override
 
void displayScrollPos ()
 
void displayNumberOfBarsAndBeats (uint32_t number, uint32_t quantization, bool countFromOne, char const *tooLongText)
 
void initiateXScroll (uint32_t newXScroll, int32_t numSquaresToScroll=kDisplayWidth)
 
bool zoomToMax (bool inOnly=false)
 
void initiateXZoom (int32_t zoomMagnitude, int32_t newScroll, uint32_t oldZoom)
 
void midiLearnFlash () override
 
bool scrollRightToEndOfLengthIfNecessary (int32_t maxLength)
 
bool scrollLeftIfTooFarRight (int32_t maxLength)
 
void tripletsButtonPressed ()
 
void setTripletsLEDState ()
 
int32_t getPosFromSquare (int32_t square, int32_t localScroll=-1) const
 
int32_t getPosFromSquare (int32_t square, int32_t xScroll, uint32_t xZoom) const
 
int32_t getSquareFromPos (int32_t pos, bool *rightOnSquare=nullptr, int32_t localScroll=-1)
 
int32_t getSquareFromPos (int32_t pos, bool *rightOnSquare, int32_t xScroll, uint32_t xZoom)
 
int32_t getSquareEndFromPos (int32_t pos, int32_t localScroll=-1)
 
bool isSquareDefined (int32_t square, int32_t xScroll=-1)
 
bool isSquareDefined (int32_t square, int32_t xScroll, uint32_t xZoom)
 
bool inTripletsView () const
 
- Public Member Functions inherited from RootUI
virtual bool getAffectEntire ()
 
bool canSeeViewUnderneath () final
 
virtual bool supportsTriplets () const
 
virtual void notifyPlaybackBegun ()
 
virtual uint32_t getGreyedOutRowsNotRepresentingOutput (Output *output)
 
virtual void noteRowChanged (InstrumentClip *clip, NoteRow *noteRow)
 
virtual void playbackEnded ()
 
virtual void clipNeedsReRendering (Clip *clip)
 
virtual void sampleNeedsReRendering (Sample *sample)
 
- Public Member Functions inherited from UI
virtual ActionResult padAction (int32_t x, int32_t y, int32_t velocity)
 
virtual ActionResult verticalEncoderAction (int32_t offset, bool inCardRoutine)
 
virtual void selectEncoderAction (int8_t offset)
 
virtual void modEncoderAction (int32_t whichModEncoder, int32_t offset)
 
virtual void modButtonAction (uint8_t whichButton, bool on)
 
virtual void modEncoderButtonAction (uint8_t whichModEncoder, bool on)
 
virtual void graphicsRoutine ()
 
virtual ActionResult timerCallback ()
 
virtual bool opened ()
 
virtual void displayOrLanguageChanged ()
 
virtual ClipMindertoClipMinder ()
 
virtual bool pcReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t program)
 
virtual bool noteOnReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t note, int32_t velocity)
 
virtual bool getGreyoutColsAndRows (uint32_t *cols, uint32_t *rows)
 
virtual bool renderMainPads (uint32_t whichRows=0, RGB image[][kDisplayWidth+kSideBarWidth]=nullptr, uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth]=nullptr, bool drawUndefinedArea=true)
 
virtual bool renderSidebar (uint32_t whichRows=0, RGB image[][kDisplayWidth+kSideBarWidth]=nullptr, uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth]=nullptr)
 
virtual bool exitUI ()
 returns whether a UI exited
 
void close ()
 
virtual void renderOLED (deluge::hid::display::oled_canvas::Canvas &canvas)=0
 
virtual UIType getUIType ()=0
 

Protected Member Functions

int32_t getTickSquare ()
 
ActionlengthenClip (int32_t newLength)
 
ActionshortenClip (int32_t newLength)
 
uint32_t changeClipLength (int32_t offset, uint32_t oldLength, Action *&action)
 
- Protected Member Functions inherited from ClipNavigationTimelineView
void horizontalScrollForLinearRecording (int32_t newXScroll)
 

Additional Inherited Members

- Public Attributes inherited from UI
bool oledShowsUIUnderneath
 
- Protected Attributes inherited from UI
UIType uiType
 
- Static Protected Attributes inherited from ClipNavigationTimelineView
static int32_t xScrollBeforeFollowingAutoExtendingLinearRecording
 

Member Function Documentation

◆ buttonAction()

ActionResult ClipView::buttonAction ( deluge::hid::Button b,
bool on,
bool inCardRoutine )
overridevirtual

Reimplemented from UI.

◆ focusRegained()

void ClipView::focusRegained ( )
overridevirtual

Reimplemented from ClipNavigationTimelineView.

◆ getMaxLength()

uint32_t ClipView::getMaxLength ( )
overridevirtual

Implements TimelineView.

◆ getMaxZoom()

uint32_t ClipView::getMaxZoom ( )
overridevirtual

Implements TimelineView.

◆ horizontalEncoderAction()

ActionResult ClipView::horizontalEncoderAction ( int32_t offset)
overridevirtual

Reimplemented from ClipNavigationTimelineView.


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