Ardour  9.0-pre0-582-g084a23a80d
Gtk::TargetList Class Reference

#include <targetlist.h>

Public Member Functions

void reference () const
 
void unreference () const
 
GtkTargetListgobj ()
 Provides access to the underlying C instance. More...
 
const GtkTargetListgobj () const
 Provides access to the underlying C instance. More...
 
GtkTargetListgobj_copy () const
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
void add (const Glib::ustring &target, TargetFlags flags=TargetFlags(0), guint info=0)
 
void add (const ArrayHandle_TargetEntry &targets)
 
void remove (const Glib::ustring &target)
 
bool find (const Glib::ustring &target, guint *info) const
 

Static Public Member Functions

static Glib::RefPtr< Gtk::TargetListcreate (const ArrayHandle_TargetEntry &targets)
 

Protected Member Functions

 TargetList ()
 
void operator delete (void *, std::size_t)
 

Private Member Functions

 TargetList (const TargetList &)
 
TargetListoperator= (const TargetList &)
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gtk::TargetListwrap (GtkTargetList *object, bool take_copy=false)
 

Detailed Description

Definition at line 36 of file targetlist.h.

Constructor & Destructor Documentation

◆ TargetList() [1/2]

Gtk::TargetList::TargetList ( )
protected

◆ TargetList() [2/2]

Gtk::TargetList::TargetList ( const TargetList )
private

Member Function Documentation

◆ add() [1/2]

void Gtk::TargetList::add ( const ArrayHandle_TargetEntry targets)

◆ add() [2/2]

void Gtk::TargetList::add ( const Glib::ustring &  target,
TargetFlags  flags = TargetFlags(0),
guint  info = 0 
)

Appends another target to a Gtk::TargetList.

Parameters
targetThe interned atom representing the target.
flagsThe flags for this target.
infoAn ID that will be passed back to the application.

◆ create()

static Glib::RefPtr<Gtk::TargetList> Gtk::TargetList::create ( const ArrayHandle_TargetEntry targets)
static

◆ find()

bool Gtk::TargetList::find ( const Glib::ustring &  target,
guint *  info 
) const

Looks up a given target in a Gtk::TargetList.

Parameters
targetAn interned atom representing the target to search for.
infoA pointer to the location to store application info for target, or 0.
Returns
true if the target was found, otherwise false.

◆ gobj() [1/2]

GtkTargetList* Gtk::TargetList::gobj ( )

Provides access to the underlying C instance.

◆ gobj() [2/2]

const GtkTargetList* Gtk::TargetList::gobj ( ) const

Provides access to the underlying C instance.

◆ gobj_copy()

GtkTargetList* Gtk::TargetList::gobj_copy ( ) const

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ operator delete()

void Gtk::TargetList::operator delete ( void *  ,
std::size_t   
)
protected

◆ operator=()

TargetList& Gtk::TargetList::operator= ( const TargetList )
private

◆ reference()

void Gtk::TargetList::reference ( ) const

Increment the reference count for this object. You should never need to do this manually - use the object via a RefPtr instead.

◆ remove()

void Gtk::TargetList::remove ( const Glib::ustring &  target)

Removes a target from a target list.

Parameters
targetThe interned atom representing the target.

◆ unreference()

void Gtk::TargetList::unreference ( ) const

Decrement the reference count for this object. You should never need to do this manually - use the object via a RefPtr instead.

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gtk::TargetList > wrap ( GtkTargetList object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file: