diff foosdk/sdk/foobar2000/SDK/imageViewer.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/foosdk/sdk/foobar2000/SDK/imageViewer.h	Mon Jan 05 02:15:46 2026 -0500
@@ -0,0 +1,15 @@
+#pragma once
+
+namespace fb2k {
+	//! \since 1.6.2
+	class imageViewer : public service_base {
+		FB2K_MAKE_SERVICE_COREAPI(imageViewer);
+	public:
+		//! Spawns an image viewer window, showing the specified picture already loaded into application memory.
+		virtual void show(fb2k::hwnd_t parent, fb2k::memBlockRef data) = 0;
+		//! Spawns an image viewer window, showing album art from the specified list of items.
+		//! @param aaType Type of picture to load, front cover, back cover or other.
+		//! @param pageno Reserved for future use, set to 0.
+		virtual void load_and_show(fb2k::hwnd_t parent, metadb_handle_list_cref items, const GUID & aaType, unsigned pageno = 0) = 0;
+	};
+}