struct Adw::TabView::SetupMenuSignal

Overview

Emitted when a context menu is opened or closed for @page.

If the menu has been closed, @page will be set to NULL.

It can be used to set up menu actions before showing the menu, for example disable actions not applicable to @page.

Defined in:

auto/adw-1/tab_view.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source, detail = nil) #

Instance Method Detail

def [](detail : String) : self #

def connect(&block : Proc(Adw::TabPage?, Nil)) #

def connect(handler : Proc(Adw::TabPage?, Nil)) #

def connect(handler : Proc(Adw::TabView, Adw::TabPage?, Nil)) #

def connect_after(&block : Proc(Adw::TabPage?, Nil)) #

def connect_after(handler : Proc(Adw::TabPage?, Nil)) #

def connect_after(handler : Proc(Adw::TabView, Adw::TabPage?, Nil)) #

def emit(page : Adw::TabPage?) : Nil #

def name #