18#include <AUI/Image/IDrawable.h>
19#include <AUI/Util/Declarative.h>
56 &ADrawableView::getDrawable,
57 &ADrawableView::setDrawable,
76 const _<IDrawable>& getDrawable() const noexcept {
81 _<IDrawable> mDrawable;
89 return view->drawable();
95 static auto getSetter() {
return &ADrawableView::setDrawable; }
98namespace declarative {
Simple view to draw an IDrawable.
Definition ADrawableView.h:42
auto drawable() const
Drawable property.
Definition ADrawableView.h:53
ADrawableView(const AUrl &url)
Create an instance with the URL of a image resource.
Definition ADrawableView.cpp:36
Uniform Resource Locator implementation.
Definition AUrl.h:31
void redraw()
Request window manager to redraw this AView.
Definition AView.cpp:68
virtual void render(ARenderContext ctx)
Draws this AView. Noone should call this function except rendering routine.
Definition AView.cpp:142
An abstract image that determines itself how it is displayed. Essentially an abstraction from vector ...
Definition IDrawable.h:28
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:348
Defines how View handles properties of FieldType type.
Definition ADataBinding.h:37
static void(View::*)(const FieldType &v) getSetter()
Returns setter for ADataBinding (deprecated)
Definition ADataBinding.h:63
static void setup(const _< View > &view)
Called then view linked with field.
Definition ADataBinding.h:43
static auto property(const _< View > &view)
Returns property definition for FieldType.
Definition ADataBinding.h:49
Property implementation to use with custom getter/setter.
Definition AProperty.h:308
Render context passed to AView::render.
Definition ARenderContext.h:43
Declarative view trait.
Definition Declarative.h:170