gtksourceviewmm  3.91.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Related Functions | List of all members
Gsv::CompletionItem Class Reference

CompletionItem. More...

#include <gtksourceviewmm/completionitem.h>

Inheritance diagram for Gsv::CompletionItem:
Inheritance graph
[legend]

Public Member Functions

 CompletionItem (CompletionItem&& src) noexcept
 
CompletionItemoperator= (CompletionItem&& src) noexcept
 
 ~CompletionItem () noexcept override
 
GtkSourceCompletionItem* gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkSourceCompletionItem* gobj () const
 Provides access to the underlying C GObject. More...
 
GtkSourceCompletionItem* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
Glib::PropertyProxy< Glib::RefPtr< Gdk::Pixbuf > > property_icon ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Pixbuf > > property_icon () const
 
Glib::PropertyProxy< Glib::ustringproperty_info ()
 Default value: "". More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustringproperty_info () const
 Default value: "". More...
 
Glib::PropertyProxy< Glib::ustringproperty_label ()
 Default value: "". More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustringproperty_label () const
 Default value: "". More...
 
Glib::PropertyProxy< Glib::ustringproperty_markup ()
 Default value: "". More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustringproperty_markup () const
 Default value: "". More...
 
Glib::PropertyProxy< Glib::ustringproperty_text ()
 Default value: "". More...
 
Glib::PropertyProxy_ReadOnly< Glib::ustringproperty_text () const
 Default value: "". More...
 
- Public Member Functions inherited from Glib::Object
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&src) noexcept
 
Objectoperator= (Object &&src) noexcept
 
void * get_data (const QueryQuark &key)
 
void set_data (const Quark &key, void *data)
 
void set_data (const Quark &key, void *data, DestroyNotify notify)
 
void remove_data (const QueryQuark &quark)
 
void * steal_data (const QueryQuark &quark)
 
Glib::RefPtr< Glib::Objectwrap (GObject *object, bool take_copy=false)
 
- Public Member Functions inherited from Glib::ObjectBase
 ObjectBase (const ObjectBase &)=delete
 
ObjectBaseoperator= (const ObjectBase &)=delete
 
void set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value)
 
void get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const
 
void set_property (const Glib::ustring &property_name, const PropertyType &value)
 
void get_property (const Glib::ustring &property_name, PropertyType &value) const
 
void connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot)
 
void connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot)
 
sigc::connection connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot)
 
sigc::connection connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot)
 
void freeze_notify ()
 
void thaw_notify ()
 
virtual void reference () const
 
virtual void unreference () const
 
GObject * gobj ()
 
const GObject * gobj () const
 
GObject * gobj_copy () const
 
- Public Member Functions inherited from sigc::trackable
 trackable () noexcept
 
 trackable (const trackable &src) noexcept
 
 trackable (trackable &&src)
 
 ~trackable ()
 
void add_destroy_notify_callback (void *data, func_destroy_notify func) const
 
void notify_callbacks ()
 
trackableoperator= (const trackable &src)
 
trackableoperator= (trackable &&src)
 
void remove_destroy_notify_callback (void *data) const
 
- Public Member Functions inherited from Gsv::CompletionProposal
 CompletionProposal (CompletionProposal&& src) noexcept
 
CompletionProposaloperator= (CompletionProposal&& src) noexcept
 
 ~CompletionProposal () noexcept override
 
GtkSourceCompletionProposal* gobj ()
 Provides access to the underlying C GObject. More...
 
const GtkSourceCompletionProposal* gobj () const
 Provides access to the underlying C GObject. More...
 
Glib::ustring get_label () const
 Gets the label of a proposal. More...
 
Glib::ustring get_markup () const
 Gets the label of a proposal with markup. More...
 
Glib::ustring get_text () const
 Gets the text of a proposal. More...
 
Glib::RefPtr< Gdk::Pixbufget_icon ()
 Gets the icon of a proposal. More...
 
Glib::RefPtr< const Gdk::Pixbufget_icon () const
 Gets the icon of a proposal. More...
 
Glib::ustring get_info () const
 Gets extra information associated to the proposal. More...
 
void changed ()
 Emits the "changed" signal on a proposal. More...
 
guint hash () const
 Get the hash value of a proposal. More...
 
bool equal (const Glib::RefPtr< const CompletionProposal >& other) const
 Get whether two proposal objects are the same. More...
 
Glib::SignalProxy< void > signal_changed ()
 Emitted when the proposal has changed. More...
 
- Public Member Functions inherited from Glib::Interface
 Interface ()
 
 Interface (Interface &&src) noexcept
 
Interfaceoperator= (Interface &&src) noexcept
 
 Interface (const Glib::Interface_Class &interface_class)
 
 Interface (GObject *castitem)
 
 ~Interface () noexcept override
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
GObject * gobj ()
 
const GObject * gobj () const
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 
static Glib::RefPtr< CompletionItemcreate (const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr< const Gdk::Pixbuf >& icon, const Glib::ustring& info)
 Create a new CompletionItem with label label, icon icon and extra information info. More...
 
static Glib::RefPtr< CompletionItemcreate (const Markup& markup, const Glib::ustring& text, const Glib::RefPtr< const Gdk::Pixbuf >& icon, const Glib::ustring& info)
 Create a new CompletionItem with markup label markup, icon icon and extra information info. More...
 
- Static Public Member Functions inherited from Gsv::CompletionProposal
static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system. More...
 

Protected Member Functions

 CompletionItem (const Glib::ustring& label, const Glib::ustring& text, const Glib::RefPtr< const Gdk::Pixbuf >& icon, const Glib::ustring& info)
 
 CompletionItem (const Markup& markup, const Glib::ustring& text, const Glib::RefPtr< const Gdk::Pixbuf >& icon, const Glib::ustring& info)
 
- Protected Member Functions inherited from Glib::Object
 Object ()
 
 Object (const Glib::ConstructParams &construct_params)
 
 Object (GObject *castitem)
 
 ~Object () noexcept override
 
- Protected Member Functions inherited from Glib::ObjectBase
 ObjectBase ()
 
 ObjectBase (const char *custom_type_name)
 
 ObjectBase (const std::type_info &custom_type_info)
 
 ObjectBase (ObjectBase &&src) noexcept
 
ObjectBaseoperator= (ObjectBase &&src) noexcept
 
virtual ~ObjectBase () noexcept=0
 
void initialize (GObject *castitem)
 
void initialize_move (GObject *castitem, Glib::ObjectBase *previous_wrapper)
 
- Protected Member Functions inherited from Gsv::CompletionProposal
 CompletionProposal ()
 You should derive from this class to use it. More...
 
virtual void on_changed ()
 This is a default handler for the signal signal_changed(). More...
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Gsv::CompletionItemwrap (GtkSourceCompletionItem* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Additional Inherited Members

- Public Types inherited from Glib::Object
typedef void(*)(gpointer data DestroyNotify)
 
- Public Types inherited from sigc::trackable
typedef internal::func_destroy_notify func_destroy_notify
 

Detailed Description

CompletionItem.

Since gtksourceviewmm 2.10:

Constructor & Destructor Documentation

◆ CompletionItem() [1/3]

Gsv::CompletionItem::CompletionItem ( CompletionItem&&  src)
noexcept

◆ ~CompletionItem()

Gsv::CompletionItem::~CompletionItem ( )
overridenoexcept

◆ CompletionItem() [2/3]

Gsv::CompletionItem::CompletionItem ( const Glib::ustring label,
const Glib::ustring text,
const Glib::RefPtr< const Gdk::Pixbuf > &  icon,
const Glib::ustring info 
)
explicitprotected

◆ CompletionItem() [3/3]

Gsv::CompletionItem::CompletionItem ( const Markup markup,
const Glib::ustring text,
const Glib::RefPtr< const Gdk::Pixbuf > &  icon,
const Glib::ustring info 
)
explicitprotected

Member Function Documentation

◆ create() [1/2]

static Glib::RefPtr<CompletionItem> Gsv::CompletionItem::create ( const Glib::ustring label,
const Glib::ustring text,
const Glib::RefPtr< const Gdk::Pixbuf > &  icon,
const Glib::ustring info 
)
static

Create a new CompletionItem with label label, icon icon and extra information info.

; If icon is empty, then there will be no icon shown. If info is empty, then no extra information will be available.

Parameters
labelThe item label.
textThe item text.
iconThe item icon.
infoThe item extra information.
Returns
New CompletionInfo.
Since gtksourceviewmm 2.10:

◆ create() [2/2]

static Glib::RefPtr<CompletionItem> Gsv::CompletionItem::create ( const Markup markup,
const Glib::ustring text,
const Glib::RefPtr< const Gdk::Pixbuf > &  icon,
const Glib::ustring info 
)
static

Create a new CompletionItem with markup label markup, icon icon and extra information info.

If icon is empty, then there will be no icon shown. If info is empty, then no extra information will be available.

Parameters
markupThe item markup label.
textThe item text.
iconThe item icon.
infoThe item extra information.
Returns
New CompletionInfo.
Since gtksourceviewmm 2.10:

◆ get_type()

static GType Gsv::CompletionItem::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GtkSourceCompletionItem* Gsv::CompletionItem::gobj ( )
inline

Provides access to the underlying C GObject.

◆ gobj() [2/2]

const GtkSourceCompletionItem* Gsv::CompletionItem::gobj ( ) const
inline

Provides access to the underlying C GObject.

◆ gobj_copy()

GtkSourceCompletionItem* Gsv::CompletionItem::gobj_copy ( )

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

◆ operator=()

CompletionItem& Gsv::CompletionItem::operator= ( CompletionItem&&  src)
noexcept

◆ property_icon() [1/2]

Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > Gsv::CompletionItem::property_icon ( )
Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_icon() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Pixbuf> > Gsv::CompletionItem::property_icon ( ) const
Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ property_info() [1/2]

Glib::PropertyProxy< Glib::ustring > Gsv::CompletionItem::property_info ( )

Default value: "".

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_info() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::ustring > Gsv::CompletionItem::property_info ( ) const

Default value: "".

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ property_label() [1/2]

Glib::PropertyProxy< Glib::ustring > Gsv::CompletionItem::property_label ( )

Default value: "".

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_label() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::ustring > Gsv::CompletionItem::property_label ( ) const

Default value: "".

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ property_markup() [1/2]

Glib::PropertyProxy< Glib::ustring > Gsv::CompletionItem::property_markup ( )

Default value: "".

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_markup() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::ustring > Gsv::CompletionItem::property_markup ( ) const

Default value: "".

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

◆ property_text() [1/2]

Glib::PropertyProxy< Glib::ustring > Gsv::CompletionItem::property_text ( )

Default value: "".

Returns
A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.

◆ property_text() [2/2]

Glib::PropertyProxy_ReadOnly< Glib::ustring > Gsv::CompletionItem::property_text ( ) const

Default value: "".

Returns
A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.

Friends And Related Function Documentation

◆ wrap()

Glib::RefPtr< Gsv::CompletionItem > wrap ( GtkSourceCompletionItem *  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.