looper/backends/ui/haiku/image_view.h
Zachary Hall e054061c74
Some checks failed
Build / build-appimage (push) Blocked by required conditions
Build / build-android (push) Blocked by required conditions
Build / build-windows (push) Blocked by required conditions
Build / build-gentoo (push) Failing after 1m5s
Build / download-system-deps (push) Successful in 4m1s
Build / get-source-code (push) Successful in 10m32s
Build / build-deb (push) Has been cancelled
Use custom image view widget in Haiku frontend
2024-12-22 15:47:33 -08:00

18 lines
450 B
C++

#pragma once
#include <View.h>
#include <Bitmap.h>
#include <Alignment.h>
#include <Rect.h>
class LImageView : public BView {
BBitmap *bitmap;
BAlignment align;
public:
void GetPreferredSize(float *w, float *h) override;
void SetBitmap(BBitmap *bitmap);
BBitmap *Bitmap();
void SetAlignment(BAlignment align);
BAlignment Alignment();
void Draw(BRect updateRect) override;
LImageView(const char *name, BBitmap *bitmap, BAlignment align);
};