18#include <AUI/Image/IDrawable.h>
19#include <AUI/Util/Declarative.h>
59 &ADrawableView::getDrawable,
60 &ADrawableView::setDrawable,
85 _<IDrawable> mDrawable;
89template <aui::derived_from<ADrawableView> T>
96 static auto getSetter() {
return &ADrawableView::setDrawable; }
105namespace declarative {
Definition ADrawableView.h:99
ADrawableView(const AUrl &url)
Create an instance with the URL of a image resource.
auto drawable() const
Drawable property.
Definition ADrawableView.h:56
void render(ARenderContext context) override
Draws this AView. Noone should call this function except rendering routine.
ADrawableView(const AUrl &url)
Create an instance with the URL of a image resource.
ADrawableView(_< IDrawable > drawable)
Create an instance from the given drawable.
Uniform Resource Locator implementation.
Definition AUrl.h:31
void redraw()
Request window manager to redraw this AView.
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:179
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:572
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:234
Render context passed to AView::render.
Definition ARenderContext.h:43
Declarative view trait.
Definition Declarative.h:180
Declarative form of ADrawableView.
Definition ADrawableView.h:110