Sha256: 1989b4bcf52f5111b4edb3d6e39218a21eb3e68e7b6cf3351a67fbf2e70db009

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

#include "stdafx.h"

ref class ElementStub : Element
{
public:
  ElementStub(String^ name, ...array<int>^ runtimeIds) : Element()
  {
    _name = name;
    _runtimeIds = runtimeIds;
    _patterns = gcnew array<int>(0);
  }

  virtual property String^ Name
  {
    String^ get() override { return _name; }
    void set(String^ name) { _name = name; }
  }

  virtual property String^ ClassName
  {
    String^ get() override { return _className; }
    void set(String^ className) { _className = className; }
  }

  virtual property String^ Id
  {
    String^ get() override { return _id; }
    void set(String^ value) { _id = value; }
  }

  virtual property bool IsEnabled
  {
    bool get() override { return _isEnabled; }
    void set(bool value) { _isEnabled = value; }
  }

  virtual property bool IsVisible
  {
    bool get() override { return _isVisible; }
    void set(bool value) { _isVisible = value; }
  }

  virtual property array<int>^ RuntimeId
  {
    array<int>^ get() override { return _runtimeIds; }
  }

  virtual property int NativeWindowHandle
  {
    int get() override { return _nativeWindowHandle; }
    void set(int value) { _nativeWindowHandle = value; }
  }

  virtual property int ControlTypeId
  {
    int get() override { return _controlTypeId; }
    void set(int value) { _controlTypeId = value; }
  }

  virtual property array<int>^ SupportedPatternIds
  {
    array<int>^ get() override { return _patterns; }
  }

  void SetPatterns(... array<int>^ patterns)
  {
    _patterns = patterns;
  }

private:
  String^ _name;
  String^ _className;
  String^ _id;
  array<int>^ _runtimeIds;
  array<int>^ _patterns;
  int _nativeWindowHandle;
  int _controlTypeId;
  bool _isEnabled;
  bool _isVisible;
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
uia-0.0.8 ext/UiaDll/UiaDll.Test/ElementStub.h
uia-0.0.7.3 ext/UiaDll/UiaDll.Test/ElementStub.h