20 template<
typename Base>
21 struct focused: Base {
22 template<
typename... Args>
23 focused(Args&&... args):
24 Base(std::forward<Args>(args)...)
29 bool isStateApplicable(
AView* view)
override {
30 return Base::isStateApplicable(view) && view->hasFocus();
34 Base::setupConnections(view, helper);
35 view->focusState.clearAllConnectionsWith(helper.get());
Base class of all UI objects.
Definition AView.h:78
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
#define slot(v)
Passes some variable and type of the variable separated by comma. It's convenient to use with the con...
Definition kAUI.h:88
static void connect(const Signal &signal, Object *object, Function &&function)
Connects signal to the slot of the specified object.
Definition AObject.h:65