aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Native/Tango.Emulations.Native/PMR/Connection/ConnectResponse.pb-c.h
blob: 85a15995cd0fee1bdc621b9b951a2d7f5e06aa67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: ConnectResponse.proto */

#ifndef PROTOBUF_C_ConnectResponse_2eproto__INCLUDED
#define PROTOBUF_C_ConnectResponse_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif

#include "DeviceInformation.pb-c.h"

typedef struct _ConnectResponse ConnectResponse;


/* --- enums --- */


/* --- messages --- */

struct  _ConnectResponse
{
  ProtobufCMessage base;
  DeviceInformation *deviceinformation;
};
#define CONNECT_RESPONSE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&connect_response__descriptor) \
    , NULL }


/* ConnectResponse methods */
void   connect_response__init
                     (ConnectResponse         *message);
size_t connect_response__get_packed_size
                     (const ConnectResponse   *message);
size_t connect_response__pack
                     (const ConnectResponse   *message,
                      uint8_t             *out);
size_t connect_response__pack_to_buffer
                     (const ConnectResponse   *message,
                      ProtobufCBuffer     *buffer);
ConnectResponse *
       connect_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   connect_response__free_unpacked
                     (ConnectResponse *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*ConnectResponse_Closure)
                 (const ConnectResponse *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor connect_response__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_ConnectResponse_2eproto__INCLUDED */
class="n">antialized, System.Windows.Media.Brush markerBrush, double markerPosition, bool showMarker, double markerStrokeWidth) { _stroke = stroke; _fill = fill; _fillGraph = fillGraph; _strokeWidth = strokeWidth; _antialiazed = antialized; _markerBrush = markerBrush; _markerStrokeWidth = (float)markerStrokeWidth; _markerPosition = (float)markerPosition; _showMarker = showMarker; lock (lastPoints) { lastPoints = polygonPoints; lastPointsFill = polygonPointsFill; updated = true; } } /// <summary> /// Does the actual rendering. /// BeginDraw and EndDraw are already called by the caller. /// </summary> public override void Render(RenderTarget target) { if (lastPoints.Length > 0 && updated) { target.Clear(Color.Transparent); var stroke = _stroke.ToDxBrush(target); var fill = _fill.ToDxBrush(target); target.AntialiasMode = _antialiazed ? AntialiasMode.PerPrimitive : AntialiasMode.Aliased; lock (lastPoints) { target.DrawPolygon(m_d2dFactory, stroke, _strokeWidth, lastPoints); if (_fillGraph && _fill != null) { target.FillPolygon(m_d2dFactory, fill, lastPointsFill); } if (_showMarker && _markerBrush != null) { var markerBrush = _markerBrush.ToDxBrush(target); target.DrawLine(new Vector2(_markerPosition, 0), new Vector2(_markerPosition, (float)this.ActualHeight), markerBrush, _markerStrokeWidth); markerBrush.Dispose(); } updated = false; GC.Collect(GC.MaxGeneration, GCCollectionMode.Optimized, blocking: false); } } DisableRendering(); } } }