예제 #1
0
        public Gtk.Widget GetInfoWidget(GtkSource.ICompletionProposal proposal)
        {
            IntPtr raw_ret = gtk_source_completion_provider_get_info_widget(Handle, proposal == null ? IntPtr.Zero : ((proposal is GLib.Object) ? (proposal as GLib.Object).Handle : (proposal as GtkSource.CompletionProposalAdapter).Handle));

            Gtk.Widget ret = GLib.Object.GetObject(raw_ret) as Gtk.Widget;
            return(ret);
        }
예제 #2
0
        public bool Equal(GtkSource.ICompletionProposal other)
        {
            bool raw_ret = gtk_source_completion_proposal_equal(Handle, other == null ? IntPtr.Zero : ((other is GLib.Object) ? (other as GLib.Object).Handle : (other as GtkSource.CompletionProposalAdapter).Handle));
            bool ret     = raw_ret;

            return(ret);
        }
예제 #3
0
        public bool GetStartIter(GtkSource.CompletionContext context, GtkSource.ICompletionProposal proposal, Gtk.TextIter iter)
        {
            IntPtr native_iter = GLib.Marshaller.StructureToPtrAlloc(iter);
            bool   raw_ret     = gtk_source_completion_provider_get_start_iter(Handle, context == null ? IntPtr.Zero : context.Handle, proposal == null ? IntPtr.Zero : ((proposal is GLib.Object) ? (proposal as GLib.Object).Handle : (proposal as GtkSource.CompletionProposalAdapter).Handle), native_iter);
            bool   ret         = raw_ret;

            Marshal.FreeHGlobal(native_iter);
            return(ret);
        }
예제 #4
0
 public void UpdateInfo(GtkSource.ICompletionProposal proposal, GtkSource.CompletionInfo info)
 {
     gtk_source_completion_provider_update_info(Handle, proposal == null ? IntPtr.Zero : ((proposal is GLib.Object) ? (proposal as GLib.Object).Handle : (proposal as GtkSource.CompletionProposalAdapter).Handle), info == null ? IntPtr.Zero : info.Handle);
 }
예제 #5
0
        private bool InternalProposalActivated(GtkSource.ICompletionProvider provider, GtkSource.ICompletionProposal proposal)
        {
            ProposalActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ProposalActivatedNativeDelegate>(this.LookupGType(), "proposal_activated");

            if (unmanaged == null)
            {
                return(false);
            }

            bool __result = unmanaged(this.Handle, provider == null ? IntPtr.Zero : ((provider is GLib.Object) ? (provider as GLib.Object).Handle : (provider as GtkSource.CompletionProviderAdapter).Handle), proposal == null ? IntPtr.Zero : ((proposal is GLib.Object) ? (proposal as GLib.Object).Handle : (proposal as GtkSource.CompletionProposalAdapter).Handle));

            return(__result);
        }
예제 #6
0
 protected virtual bool OnProposalActivated(GtkSource.ICompletionProvider provider, GtkSource.ICompletionProposal proposal)
 {
     return(InternalProposalActivated(provider, proposal));
 }