looper/backends/ui/haiku/image_view.h
Zachary Hall 83ecc38fce
Some checks failed
Build / get-source-code (push) Blocked by required conditions
Build / build-deb (push) Blocked by required conditions
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 1m16s
Build / download-system-deps (push) Has been cancelled
Use custom image view widget in Haiku frontend
2024-12-22 15:34:27 -08:00

17 lines
397 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 SetBitmap(BBitmap *bitmap);
BBitmap *Bitmap();
void SetAlignment(BAlignment align);
BAlignment Alignment();
void Draw(BRect updateRect) override;
LImageView(const char *name, BBitmap *bitmap, BAlignment align);
};