API reference
QMLPlus
Mixin that adds anchors, property binding, and simple states to QWidget-based components.
No matching API members.
fluent::AnchorLayout
Inherits QLayout
Lightweight anchor-based layout for QWidget controls.
Constructors
Methods
Anchors anchorsForWidget(QWidget* widget) constReturns the current anchors for a registered widget.
bool setWidgetAnchors(QWidget* widget, const Anchors& anchors)Replaces a registered widget's anchors and invalidates the layout.
Enumerations
enum class EdgeAnchorable edge or center line.
NoneLeftRightTopBottomHCenterVCenter
Types and aliases
struct AnchorOne anchor relation from an edge to a target widget edge.
struct AnchorsComplete anchor set for one child widget.
Destructors
All inherited Qt members:QLayout
fluent::AnchorLayout::Anchor
One anchor relation from an edge to a target widget edge.
Constructors
Fields
fluent::AnchorLayout::Anchors
Complete anchor set for one child widget.
Constructors
Fields
fluent::PropertyLink
Inherits QObject
Runtime link that synchronizes one QObject property into another.
Constructors
Methods
All inherited Qt members:QObject
fluent::BindingDependency
Explicit observable input to a computed binding or state condition.
Fields
fluent::BindingOptions
Initial enablement and optional event-loop coalescing for a binding.
Fields
fluent::BindingHandle
Copyable, non-owning control for a target-owned property binding.
Constructors
Methods
bool isValid() constReports whether the binding and its endpoints remain available.
bool isEnabled() constReturns enablement independently of manual or state suspension.
bool isSuspended() constReports manual pause or an active state override.
void setEnabled(bool enabled) constEnables or disables synchronization; enabling refreshes immediately.
void pause() constHolds the current displayed value while preserving enablement.
void resume() constRemoves manual pause and refreshes an enabled, uncovered binding.
void refresh() constEvaluates an active binding immediately, bypassing deferred scheduling.
void unbind() constPermanently removes the binding and holds its current displayed value.
fluent::PropertyBinder
Managed property synchronization through Qt meta-properties and NOTIFY.
Methods
static void bind(QObject* source, const char* sPropName, QObject* target, const char* tPropName, Direction dir = OneWay)Synchronizes properties, observing the available NOTIFY signals.
static BindingHandle bindManaged(QObject* source, const char* sourceProp, QObject* target, const char* targetProp, Direction direction = OneWay, BindingOptions options = {})Installs a managed direct binding, synchronizing immediately.
static BindingHandle bindComputed(QObject* target, const char* targetProp, const QVector<BindingDependency>& dependencies, std::function<QVariant()> evaluate, BindingOptions options = {})Installs a C++ expression binding with explicitly observed inputs.
Enumerations
enum DirectionBinding direction.
OneWayTwoWay
fluent::PropertyChange
Property assignment applied by a QMLPlus state.
Fields
fluent::AnchorChange
Complete replacement anchor set applied and restored by a state.
Fields
fluent::QMLState
Named set of property changes.
Fields
fluent::PropertyAnimation
MotionPolicy-aware animation for managed property writes.
Fields
fluent::StateTransition
Animation selected for matching state changes; empty properties match all.
Fields
fluent::QMLPlusRuntime
Inherits QObject
Lazy QObject-host-owned observation surface for QMLPlus state transitions.
Properties
QString stateReturns the logical destination state, before animation completion.
Readstate()NotifystateChanged()bool transitionRunningReports whether managed state transition animations are running.
ReadisTransitionRunning()NotifytransitionRunningChanged()
Methods
QString state() constReturns the logical destination state, before animation completion.
bool isTransitionRunning() constReports whether managed state transition animations are running.
Signals
void stateChanged(const QString& state)Returns the logical destination state, before animation completion.
void transitionRunningChanged(bool running)Reports whether managed state transition animations are running.
Destructors
All inherited Qt members:QObject
fluent::QMLPlus
Constructors
Methods
AnchorLayout::Anchors* anchors()Returns mutable anchors for the QWidget host.
void setState(const QString& name)Applies a named state, or clears state when name is empty.
void addState(const QMLState& state)Registers or replaces a named state definition.
void evaluateStates()Reevaluates conditions; the first registered true condition wins.
QMLPlusRuntime* runtime()Returns the lazy host-owned state observation object.
void setAnchors(const AnchorLayout::Anchors& anchors)Replaces all host anchors and invalidates the parent layout.
void resetAnchors()Clears all host anchors and invalidates the parent layout.
void bind(const char* targetProp, QObject* source, const char* sourceProp, PropertyBinder::Direction dir = PropertyBinder::OneWay)Binds a source property to a property on the QWidget host.
BindingHandle bindManaged(const char* targetProp, QObject* source, const char* sourceProp, PropertyBinder::Direction direction = PropertyBinder::OneWay, BindingOptions options = {})Installs a managed direct binding on this QWidget host.
BindingHandle bindComputed(const char* targetProp, const QVector<BindingDependency>& dependencies, std::function<QVariant()> evaluate, BindingOptions options = {})Installs an explicit-dependency C++ expression on this QWidget host.
void addTransition(const StateTransition& transition)Registers a state transition in precedence order.
void setBehavior(const char* propertyName, const PropertyAnimation& animation)Sets the default animation for this host's managed property writes.
void clearBehavior(const char* propertyName)Removes the default animation for future managed writes.
bool writeProperty(const char* propertyName, const QVariant& value)Writes a host property through Behavior without removing its binding.