Lumiera  0.pre.03
»edit your freedom«
ClipWidget Class Reference

Description

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

Public Member Functions

 ClipWidget (WidgetHook &displayAnchor, TimeSpan const &timings)
 
 ClipWidget (ClipData &&existing, WidgetHook *newView=nullptr)
 state switch ctor
 
- Public Member Functions inherited from CanvasHooked< WID, BASE >
template<typename... ARGS>
 CanvasHooked (typename Canvas::Pos attachmentPos, ARGS &&...args)
 
void moveTo (int xPos, int yPos)
 
- Public Member Functions inherited from ClipData
 ClipData (TimeSpan const &timings=TimeSpan{Time::NEVER, Duration::NIL})
 
 ClipData (ClipData &&)=default
 
TimeVaraccessDuration () override
 
TimeVaraccessStartTime () override
 
- Public Member Functions inherited from ClipDelegate
virtual ~ClipDelegate ()
 this is an interface
 
WidgetHook::Pos establishHookPoint (WidgetHook *newView)
 (re)establish current canvas attachment coordinates, thereby possibly switching to a new canvas implementation More...
 

Private Member Functions

uint calcRequiredHeight () const override
 
Appearance changeAppearance (Appearance desired) override
 alter appearance style, to the degree possible for this delegate. More...
 
Appearance currentAppearance () const override
 presentation mode and style currently employed
 
int establishHorizontalExtension ()
 use underlying canvas metric to derive a size constraint, taking into account the duration of the clip and the zoom level.
 
WidgetHookgetCanvas () const override
 
cuString getClipName () const override
 human readable rendering of the clip's name or identity
 
uint getVerticalOffset () const override
 
void setClipName (cuString &newName) override
 
void updatePosition () override
 

Additional Inherited Members

- Public Types inherited from ClipDelegate
enum  Appearance {
  PENDING,
  SYMBOLIC,
  DEGRADED,
  ABRIDGED,
  COMPACT,
  EXPANDED
}
 desired appearance style for the clip
 
- Static Public Member Functions inherited from ClipDelegate
static Gtk::Widget & expect_and_expose_Widget (PDelegate &manager)
 Wrapper to safely expose the actual clip implementation widget. More...
 
static Appearance selectAppearance (PDelegate &existing, Appearance desired=PENDING, WidgetHook *newView=nullptr, optional< TimeSpan > const &timing=nullopt)
 request to change the clip delegate's appearance style, if possible. More...
 
- Static Public Attributes inherited from ClipDelegate
static const string defaultName {_("clip")}
 placeholder name – typically overridden from the model
 
static const int defaultOffsetY {0}
 vertical offset below the track start
 
- Protected Member Functions inherited from CanvasHooked< WID, BASE >
CanvasgetCanvas () const
 

Member Function Documentation

◆ changeAppearance()

Appearance changeAppearance ( Appearance  desired)
inlineoverrideprivatevirtual

alter appearance style, to the degree possible for this delegate.

Returns
the new Appearance style acquired

Implements ClipDelegate.

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

References ClipDelegate::currentAppearance().

+ Here is the call graph for this function:
+ Inheritance diagram for ClipWidget:
+ Collaboration diagram for ClipWidget:

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