1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

LibGUI: Register "bitmap" GML property for ImageWidget

This commit is contained in:
thankyouverycool 2022-08-04 10:15:37 -04:00 committed by Andreas Kling
parent 75b6097c55
commit 4d09b5c4ba

View file

@ -26,6 +26,7 @@ ImageWidget::ImageWidget(StringView)
REGISTER_BOOL_PROPERTY("auto_resize", auto_resize, set_auto_resize);
REGISTER_BOOL_PROPERTY("should_stretch", should_stretch, set_should_stretch);
REGISTER_STRING_PROPERTY("bitmap", bitmap, load_from_file);
}
void ImageWidget::set_bitmap(Gfx::Bitmap const* bitmap)