37#ifndef WXM_SCREENSHOT_H
38#define WXM_SCREENSHOT_H
41#include <wx/confbase.h>
60 Kind kind = Kind::Window;
76 wxSize
size = wxDefaultSize;
wxImage ScreenRect(const wxRect &rect)
What the screen shows inside rect (screen coordinates)
Definition: Screenshot.cpp:65
wxImage TrimToContent(const wxImage &image, int padding)
The image cropped to everything that isn't its background, plus padding.
Definition: Screenshot.cpp:79
std::optional< ScreenshotTarget > ParseScreenshotTarget(const wxString &text)
Reads the value of Screenshot/show.
Definition: Screenshot.cpp:34
std::optional< ScreenshotScene > ReadScreenshotScene(const wxConfigBase &config)
Reads a scene's [Screenshot] group.
Definition: Screenshot.cpp:110
Everything a scene's [Screenshot] group asks for.
Definition: Screenshot.h:68
int sidebarWidth
The minimum width of each sidebar shown; 0: leave it as it is.
Definition: Screenshot.h:78
wxSize size
The size of the main window, or of the dialog shown; default: unchanged.
Definition: Screenshot.h:76
bool setSidebars
True if the scene names its sidebars (all others are hidden)
Definition: Screenshot.h:72
ScreenshotTarget target
What is shown and saved.
Definition: Screenshot.h:70
wxArrayString sidebars
The AUI pane names of the sidebars to show.
Definition: Screenshot.h:74
What –screenshot-of asks to be shown and captured.
Definition: Screenshot.h:50
Kind
Definition: Screenshot.h:51
@ Worksheet
The worksheet window only ("worksheet")
@ Cells
The worksheet's cells: the worksheet window cropped to what is drawn in it, without the cursor ("cell...
@ Pane
A sidebar, by its AUI pane name ("pane:<name>")
@ Window
The whole main window ("window", the default)
@ Config
A page of the configuration dialog ("config:<page>")
int page
The page's index for Kind::Config.
Definition: Screenshot.h:64
wxString pane
The pane's name for Kind::Pane.
Definition: Screenshot.h:62