/*M///////////////////////////////////////////////////////////////////////////////////////1//2// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.3//4// By downloading, copying, installing or using the software you agree to this license.5// If you do not agree to this license, do not download, install,6// copy or use the software.7//8//9// Intel License Agreement10// For Open Source Computer Vision Library11//12// Copyright (C) 2000, Intel Corporation, all rights reserved.13// Third party copyrights are property of their respective owners.14//15// Redistribution and use in source and binary forms, with or without modification,16// are permitted provided that the following conditions are met:17//18// * Redistribution's of source code must retain the above copyright notice,19// this list of conditions and the following disclaimer.20//21// * Redistribution's in binary form must reproduce the above copyright notice,22// this list of conditions and the following disclaimer in the documentation23// and/or other materials provided with the distribution.24//25// * The name of Intel Corporation may not be used to endorse or promote products26// derived from this software without specific prior written permission.27//28// This software is provided by the copyright holders and contributors "as is" and29// any express or implied warranties, including, but not limited to, the implied30// warranties of merchantability and fitness for a particular purpose are disclaimed.31// In no event shall the Intel Corporation or contributors be liable for any direct,32// indirect, incidental, special, exemplary, or consequential damages33// (including, but not limited to, procurement of substitute goods or services;34// loss of use, data, or profits; or business interruption) however caused35// and on any theory of liability, whether in contract, strict liability,36// or tort (including negligence or otherwise) arising in any way out of37// the use of this software, even if advised of the possibility of such damage.38//39//M*/4041#ifndef __HIGHGUI_H_42#define __HIGHGUI_H_4344#include "opencv2/highgui.hpp"4546#include "opencv2/core/utility.hpp"47#include "opencv2/core/private.hpp"4849#include "opencv2/imgproc/imgproc_c.h"50#include "opencv2/highgui/highgui_c.h"5152#include "opencv2/imgcodecs.hpp"53#include "opencv2/imgcodecs/imgcodecs_c.h"5455#include <stdlib.h>56#include <stdio.h>57#include <string.h>58#include <limits.h>59#include <ctype.h>60#include <assert.h>6162#if defined _WIN32 || defined WINCE63#include <windows.h>64#undef small65#undef min66#undef max67#undef abs68#endif6970/* Errors */71#define HG_OK 0 /* Don't bet on it! */72#define HG_BADNAME -1 /* Bad window or file name */73#define HG_INITFAILED -2 /* Can't initialize HigHGUI */74#define HG_WCFAILED -3 /* Can't create a window */75#define HG_NULLPTR -4 /* The null pointer where it should not appear */76#define HG_BADPARAM -57778#define __BEGIN__ __CV_BEGIN__79#define __END__ __CV_END__80#define EXIT __CV_EXIT__8182#define CV_WINDOW_MAGIC_VAL 0x0042004283#define CV_TRACKBAR_MAGIC_VAL 0x004200438485//Yannick Verdie 2010, Max Kostin 201586void cvSetModeWindow_W32(const char* name, double prop_value);87void cvSetModeWindow_GTK(const char* name, double prop_value);88void cvSetModeWindow_CARBON(const char* name, double prop_value);89void cvSetModeWindow_COCOA(const char* name, double prop_value);90void cvSetModeWindow_WinRT(const char* name, double prop_value);9192CvRect cvGetWindowRect_W32(const char* name);93CvRect cvGetWindowRect_GTK(const char* name);94CvRect cvGetWindowRect_CARBON(const char* name);95CvRect cvGetWindowRect_COCOA(const char* name);9697double cvGetModeWindow_W32(const char* name);98double cvGetModeWindow_GTK(const char* name);99double cvGetModeWindow_CARBON(const char* name);100double cvGetModeWindow_COCOA(const char* name);101double cvGetModeWindow_WinRT(const char* name);102103double cvGetPropWindowAutoSize_W32(const char* name);104double cvGetPropWindowAutoSize_GTK(const char* name);105106double cvGetRatioWindow_W32(const char* name);107double cvGetRatioWindow_GTK(const char* name);108109double cvGetOpenGlProp_W32(const char* name);110double cvGetOpenGlProp_GTK(const char* name);111112//for QT113#if defined (HAVE_QT)114CvRect cvGetWindowRect_QT(const char* name);115double cvGetModeWindow_QT(const char* name);116void cvSetModeWindow_QT(const char* name, double prop_value);117118double cvGetPropWindow_QT(const char* name);119void cvSetPropWindow_QT(const char* name,double prop_value);120121double cvGetRatioWindow_QT(const char* name);122void cvSetRatioWindow_QT(const char* name,double prop_value);123124double cvGetOpenGlProp_QT(const char* name);125double cvGetPropVisible_QT(const char* name);126#endif127128#endif /* __HIGHGUI_H_ */129130131