Lumiera  0.pre.03
»edit your freedom«
stage::timeline::anonymous_namespace{clip-widget.cpp} Namespace Reference

Typedefs

using HookedWidget = model::CanvasHooked< widget::ElementBoxWidget, Gtk::Widget >
 
using WidgetHook = model::CanvasHook< Gtk::Widget >
 

Enumerations

enum  Mode {
  HIDDEN,
  SUMMARY,
  INDIVIDUAL
}
 

Classes

class  ClipData
 
class  ClipWidget
 
class  DormantClip
 A Clip not directly mapped into presentation, yet present as entity within the timeline framework. More...
 

Functions

ClipDelegatebuildDelegateFor (Mode newMode, PDelegate &existingDelegate, WidgetHook *newView, optional< TimeSpan > const &timing)
 
bool canRepresentAsClip (PDelegate &existing, optional< TimeSpan > const &timing)
 
bool canShow (Time start)
 special convention to suppress a clip with start time == Time::NEVER
 
Mode classifyAppearance (ClipDelegate::Appearance appearance)
 

Function Documentation

◆ buildDelegateFor()

ClipDelegate* stage::timeline::anonymous_namespace{clip-widget.cpp}::buildDelegateFor ( Mode  newMode,
PDelegate &  existingDelegate,
WidgetHook newView,
optional< TimeSpan > const &  timing 
)
inline

either build a new delegate from scratch or build it based on the existingDelegate

Remarks
this function unifies two quite distinct use cases
  • either we have mutated an existing clip delegate, and want to reflect the changes in clipData
  • or we just inserted a new clip, and have to build the delegate for the given timing

Definition at line 376 of file clip-widget.cpp.

References INSTANCEOF.