Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
screenshot.hpp File Reference
#include <pulp/canvas/text_raster_policy.hpp>
#include <pulp/view/view.hpp>
#include <string>
#include <vector>
#include <cstdint>
#include <functional>

Go to the source code of this file.

Classes

struct  pulp::view::CaptureRequirements
struct  pulp::view::CaptureResult

Namespaces

namespace  pulp
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Typedefs

using pulp::view::ScreenshotProvider

Enumerations

enum class  pulp::view::ScreenshotBackend {
  pulp::view::default_backend , pulp::view::coregraphics , pulp::view::skia , pulp::view::gpu ,
  pulp::view::auto_select
}

Functions

std::vector< uint8_t > pulp::view::render_to_png (View &root, uint32_t width, uint32_t height, float scale=2.0f, ScreenshotBackend backend=ScreenshotBackend::default_backend, canvas::TextRasterPolicy text_raster=canvas::TextRasterPolicy::legacy)
bool pulp::view::render_to_file (View &root, uint32_t width, uint32_t height, const std::string &output_path, float scale=2.0f, ScreenshotBackend backend=ScreenshotBackend::default_backend, canvas::TextRasterPolicy text_raster=canvas::TextRasterPolicy::legacy)
CaptureRequirements pulp::view::inspect_capture_requirements (View &root)
 Inspect the tree once for requirements shared by capture routing and capability admission.
CaptureResult pulp::view::capture_view (View &root, uint32_t width, uint32_t height, float scale=2.0f, ScreenshotBackend backend=ScreenshotBackend::auto_select)
std::vector< uint8_t > pulp::view::render_to_png_gpu (View &root, uint32_t width, uint32_t height, float scale=2.0f, canvas::TextRasterPolicy text_raster=canvas::TextRasterPolicy::legacy)
bool pulp::view::has_gpu_capture ()
bool pulp::view::has_screenshot_backend ()
bool pulp::view::has_screenshot_decoder ()
 True when this build can decode PNG pixels for the mandatory capture content floor.
bool pulp::view::passes_capture_content_floor (const std::vector< uint8_t > &png)
 Apply the same deliberately lenient "did anything paint?" floor used by capture_view().
std::vector< uint8_t > pulp::view::render_to_rgba (View &root, uint32_t width, uint32_t height, float scale, uint32_t *out_width, uint32_t *out_height, canvas::TextRasterPolicy text_raster=canvas::TextRasterPolicy::legacy)
bool pulp::view::raw_rgba_render_available ()
void pulp::view::set_screenshot_provider (ScreenshotProvider provider)
void pulp::view::clear_screenshot_provider ()
bool pulp::view::has_screenshot_provider ()