2 * Copyright 2010-2014, Haiku Inc. All rights reserved.
3 * Copyright 2010 Wim van der Meer <WPJvanderMeer@gmail.com>
4 * Distributed under the terms of the MIT License.
13 #include <TranslatorRoster.h>
16 // Command constant for sending utility data to the GUI app
17 const int32 SS_UTILITY_DATA
= 'SSUD';
25 void CopyToClipboard(const BBitmap
& screenshot
) const;
26 status_t
Save(BBitmap
* screenshot
, const char* fileName
,
27 uint32 imageType
) const;
28 BBitmap
* MakeScreenshot(bool includeCursor
, bool activeWindow
,
29 bool includeBorder
) const;
30 BString
FileNameExtension(uint32 imageType
) const;
31 status_t
FindTranslator(uint32 imageType
, translator_id
& id
,
32 BString
* _mimeType
= NULL
) const;
35 BBitmap
* cursorBitmap
;
36 BBitmap
* cursorAreaBitmap
;
37 BPoint cursorPosition
;
38 BRect activeWindowFrame
;
42 static const char* sDefaultFileNameBase
;
45 void _MakeTabSpaceTransparent(BBitmap
* screenshot
,
47 BString
_MimeType(uint32 imageType
) const;