Gtk.Tearoff_Menu_Item

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

A Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item is a special Gtk.Menu_Item.Gtk_Menu_Item which is used to tear off and reattach its menu.

When its menu is shown normally, the Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item is drawn as a dotted line indicating that the menu can be torn off. Activating it causes its menu to be torn off and displayed in its own window as a tearoff menu.

When its menu is shown as a tearoff menu, the Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item is drawn as a dotted line which has a left pointing arrow graphic indicating that the tearoff menu can be reattached. Activating it will erase the tearoff menu window.

> Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item is deprecated and should not be used in newly > written code. Menus are not meant to be torn around.

"+"

function "+"
  (Widget : access Gtk_Tearoff_Menu_Item_Record'Class)
return Gtk.Actionable.Gtk_Actionable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Tearoff_Menu_Item_Record'Class)
return Gtk.Activatable.Gtk_Activatable
Parameters
Widget
Return Value

"+"

function "+"
  (Widget : access Gtk_Tearoff_Menu_Item_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Actionable.Gtk_Actionable)
return Gtk_Tearoff_Menu_Item
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Activatable.Gtk_Activatable)
return Gtk_Tearoff_Menu_Item
Parameters
Interf
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Tearoff_Menu_Item
Parameters
Interf
Return Value

Do_Set_Related_Action

procedure Do_Set_Related_Action
   (Self   : not null access Gtk_Tearoff_Menu_Item_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Get_Action_Name

function Get_Action_Name
   (Self : not null access Gtk_Tearoff_Menu_Item_Record)
    return UTF8_String
Parameters
Self
Return Value

Get_Action_Target_Value

function Get_Action_Target_Value
   (Self : not null access Gtk_Tearoff_Menu_Item_Record)
    return Glib.Variant.Gvariant
Parameters
Self
Return Value

Get_Related_Action

function Get_Related_Action
   (Self : not null access Gtk_Tearoff_Menu_Item_Record)
    return Gtk.Action.Gtk_Action
Parameters
Self
Return Value

Get_Type

function Get_Type return Glib.GType
Return Value

Get_Use_Action_Appearance

function Get_Use_Action_Appearance
   (Self : not null access Gtk_Tearoff_Menu_Item_Record) return Boolean
Parameters
Self
Return Value

Gtk_New

procedure Gtk_New (Menu_Item : out Gtk_Tearoff_Menu_Item)

Creates a new Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Menu_Item

Gtk_Tearoff_Menu_Item

type Gtk_Tearoff_Menu_Item is access all Gtk_Tearoff_Menu_Item_Record'Class;

Gtk_Tearoff_Menu_Item_New

function Gtk_Tearoff_Menu_Item_New return Gtk_Tearoff_Menu_Item

Creates a new Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item.

Return Value

Gtk_Tearoff_Menu_Item_Record

type Gtk_Tearoff_Menu_Item_Record is new Gtk_Menu_Item_Record with null record;

Implements_Gtk_Actionable

package Implements_Gtk_Actionable is new Glib.Types.Implements
  (Gtk.Actionable.Gtk_Actionable, Gtk_Tearoff_Menu_Item_Record, Gtk_Tearoff_Menu_Item);

Implements_Gtk_Activatable

package Implements_Gtk_Activatable is new Glib.Types.Implements
  (Gtk.Activatable.Gtk_Activatable, Gtk_Tearoff_Menu_Item_Record, Gtk_Tearoff_Menu_Item);

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Tearoff_Menu_Item_Record, Gtk_Tearoff_Menu_Item);

Initialize

procedure Initialize
   (Menu_Item : not null access Gtk_Tearoff_Menu_Item_Record'Class)

Creates a new Gtk.Tearoff_Menu_Item.Gtk_Tearoff_Menu_Item. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Menu_Item

Set_Action_Name

procedure Set_Action_Name
   (Self        : not null access Gtk_Tearoff_Menu_Item_Record;
    Action_Name : UTF8_String := "")
Parameters
Self
Action_Name

Set_Action_Target_Value

procedure Set_Action_Target_Value
   (Self         : not null access Gtk_Tearoff_Menu_Item_Record;
    Target_Value : Glib.Variant.Gvariant)
Parameters
Self
Target_Value

Set_Detailed_Action_Name

procedure Set_Detailed_Action_Name
   (Self                 : not null access Gtk_Tearoff_Menu_Item_Record;
    Detailed_Action_Name : UTF8_String)
Parameters
Self
Detailed_Action_Name

Set_Related_Action

procedure Set_Related_Action
   (Self   : not null access Gtk_Tearoff_Menu_Item_Record;
    Action : not null access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action

Set_Use_Action_Appearance

procedure Set_Use_Action_Appearance
   (Self           : not null access Gtk_Tearoff_Menu_Item_Record;
    Use_Appearance : Boolean)
Parameters
Self
Use_Appearance

Sync_Action_Properties

procedure Sync_Action_Properties
   (Self   : not null access Gtk_Tearoff_Menu_Item_Record;
    Action : access Gtk.Action.Gtk_Action_Record'Class)
Parameters
Self
Action