VideoSize.h 2.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
VideoSize.h
Copyright (C) 2015  Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
15 16
*/

17 18 19 20
#pragma once

#include "Utils.h"

21
namespace BelledonneCommunications
22
{
23
	namespace Linphone
24
	{
25
		namespace Native
26
		{
27
			ref class LinphoneCore;
28 29

			/// <summary>
30
			/// Class describing a video size.
31
			/// </summary>
32
			public ref class VideoSize sealed
33
			{
34 35 36 37 38 39 40 41
			public:
				/// <summary>
				/// Creates a VideoSize object.
				/// </summary>
				/// <param name="width">The video width</param>
				/// <param name="height">The video height</param>
				/// <returns>The created VideoSize</returns>
				VideoSize(int width, int height);
42

43 44 45 46 47 48 49 50
				/// <summary>
				/// Creates a named VideoSize object.
				/// </summary>
				/// <param name="width">The video width</param>
				/// <param name="height">The video height</param>
				/// <param name="name">The video size name</param>
				/// <returns>The created VideoSize</returns>
				VideoSize(int width, int height, Platform::String^ name);
51

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
				/// <summary>
				/// The video size width (eg. 640).
				/// </summary>
				property int Width
				{
					int get();
					void set(int value);
				}

				/// <summary>
				/// The video size height (eg. 480).
				/// </summary>
				property int Height
				{
					int get();
					void set(int value);
				}

				/// <summary>
				/// The video size name (eg. vga).
				/// </summary>
				property Platform::String^ Name
				{
					Platform::String^ get();
					void set(Platform::String^ value);
				}
78

79 80 81
			private:
				friend class Utils;
				friend ref class LinphoneCore;
82

83 84 85 86 87
				int width;
				int height;
				Platform::String^ name;
			};
		}
88 89
	}
}