コード例 #1
0
        private void OnGetAccessibilityNameEvent(IntPtr data)
        {
            if (data == IntPtr.Zero)
            {
                return;
            }

            var arg = new GetNameEventArgs();

            arg.Name = StringToVoidSignal.GetResult(data);

            getNameHandler?.Invoke(this, arg);

            StringToVoidSignal.SetResult(data, arg.Name);
        }
コード例 #2
0
        private void OnGetAccessibilityDescriptionEvent(IntPtr data)
        {
            if (data == IntPtr.Zero)
            {
                return;
            }

            var arg = new GetDescriptionEventArgs();

            arg.Description = StringToVoidSignal.GetResult(data);

            getDescriptionHandler?.Invoke(this, arg);

            StringToVoidSignal.SetResult(data, arg.Description);
        }
コード例 #3
0
        public void StringToVoidSignalSetResult()
        {
            tlog.Debug(tag, $"StringToVoidSignalSetResult START");

            using (TextLabel label = new TextLabel())
            {
                label.Text = "";
                try
                {
                    StringToVoidSignal.SetResult(label.SwigCPtr.Handle, "TextLabel");
                    tlog.Debug(tag, "GetResult : " + StringToVoidSignal.GetResult(label.SwigCPtr.Handle));
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Cuaght Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"StringToVoidSignalSetResult END (OK)");
        }