VNMediaClientNET

IGraphicsRenderer.h
1 #pragma once
2 using namespace System;
3 //using namespace System::Drawing;
4
5 namespace VideoNext
6 {
7 public interface class IGraphicsRenderer
8 {
9 public: enum class HorizAlign { Left, Center, Right };
10 public: enum class VertAlign { Top, Middle, BaseLine, Bottom };
11 public: void SetColor(System::Drawing::Color c);
12 public: void DrawLine(float x1, float y1, float x2, float y2);
13 public: void DrawRect(float x, float y, float width, float height);
14 public: void FillRect(float x, float y, float width, float height);
15 public: void DrawEllipse(float x, float y, float width, float height);
16 public: void FillEllipse(float x, float y, float width, float height);
17 public: void DrawPolyline(array<Drawing::PointF>^ points);
18 public: void FillPolygon(array<Drawing::PointF>^ points);
19
20 public: float GetStrokeWidth();
21 public: void SetStrokeWidth(float strokeWidth);
22
23 public: void SetFont(String^ fontName, float fontSize, System::Drawing::FontStyle fontStyle);
24 //virtual float FontAscent() const;
25 //virtual float FontDescent() const;
26 //virtual Point2 MeasureText( const std::string& text );
27 public: System::Drawing::Rectangle DrawString(String^ text, float x, float y, HorizAlign horzAlign, VertAlign vertAlign );
28
29 /*virtual void PushState() = 0;
30 virtual void PopState() = 0;
31 virtual void SetTransform2Identity() = 0;
32 virtual void SetTransform2( Transform2Matrix matrix ) = 0;
33 virtual Transform2Matrix GetTransform2() = 0;
34 virtual void MultiplyTransform2( Transform2Matrix matrix ) = 0;
35 virtual void ScaleTransform2( float sx, float sy ) = 0;
36 virtual void RotateTransform2( float angle ) = 0; // angle in degrees
37 virtual void TranslateTransform2( float dx, float dy ) = 0;*/
38 };
39 }
VideoNext
VideoNEXT media player API.
Definition: AnalyticsRenderer.cpp:7
VideoNext::IGraphicsRenderer
Definition: IGraphicsRenderer.h:8