コード例 #1
0
        public static void FreeRanges(Atk.TextRange ranges)
        {
            IntPtr native_ranges = GLib.Marshaller.StructureToPtrAlloc(ranges);

            atk_text_free_ranges(native_ranges);
            Marshal.FreeHGlobal(native_ranges);
        }
コード例 #2
0
        public Atk.TextRange GetBoundedRanges(Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type)
        {
            IntPtr native_rect = GLib.Marshaller.StructureToPtrAlloc(rect);
            IntPtr raw_ret     = atk_text_get_bounded_ranges(Handle, native_rect, (int)coord_type, (int)x_clip_type, (int)y_clip_type);

            Atk.TextRange ret = Atk.TextRange.New(raw_ret);
            Marshal.FreeHGlobal(native_rect);
            return(ret);
        }