Sha256: 3539de3c22fb0f23242d9ec14985488ea6a9f3675367a89e0eb86fc9d5d14de5

Contents?: true

Size: 1.07 KB

Versions: 17

Compression:

Stored size: 1.07 KB

Contents

#pragma once


enum eViewrWndMode
{
	eConfigurable,
	eFullScreen
};

struct IViewFinderCallBack
{
	virtual void cancel()=0;
	virtual void captureImage()=0;
	virtual void close() =0;
	virtual void ResetViewerWndPos(RECT& pos)=0;
};
class CViewFinder
{
private:
	
	IViewFinderCallBack* m_pCallBack;	
	static HWND m_hwndPreview;
	static HWND m_PreviewWndParent;
	static HWND m_CancelButton;
	static HWND m_CaptureButton;
	HINSTANCE m_appInstance;
	HWND m_appMainWnd;

public: 
	CViewFinder();
	void RegisterCallBack(IViewFinderCallBack* pCallBack);	
	HWND CreateViewerWindow(RECT& pos, eViewrWndMode eMode);
	void DestroyViewerWindow();
	void RepositionWindow(const RECT& pos);
	static LRESULT CALLBACK FullScreenWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
	HWND getViewerWndHandle();
	void DisableFullScreenButtons();
protected:
	HWND createFullScreenWindow(HWND hwndParent, RECT& pos);
	HWND createPreviewWindow(HWND hwndParent, const RECT& pos);
	static void ReposFullScreen(RECT& pos);
	static bool GetPowerButtonPressedValue();
};

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-7.5.1 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-7.4.1 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-7.1.17 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-6.2.0 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-6.0.11 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.18 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.17 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.15 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.0.22 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.2 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.0.7 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.0.3 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
rhodes-5.5.0 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
tauplatform-1.0.3 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
tauplatform-1.0.2 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h
tauplatform-1.0.1 lib/commonAPI/mediacapture/ext/platform/wm/src/Camera/ViewFinder.h