NetSurf
Data Structures | Macros | Typedefs | Enumerations | Functions
sexy_icon_entry.h File Reference
#include <gtk/gtk.h>
Include dependency graph for sexy_icon_entry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _SexyIconEntry
 
struct  _SexyIconEntryClass
 

Macros

#define SEXY_TYPE_ICON_ENTRY   (sexy_icon_entry_get_type())
 
#define SEXY_ICON_ENTRY(obj)    (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))
 
#define SEXY_ICON_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
 
#define SEXY_IS_ICON_ENTRY(obj)    (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))
 
#define SEXY_IS_ICON_ENTRY_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))
 
#define SEXY_ICON_ENTRY_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
 

Typedefs

typedef struct _SexyIconEntry SexyIconEntry
 
typedef struct _SexyIconEntryClass SexyIconEntryClass
 
typedef struct _SexyIconEntryPriv SexyIconEntryPriv
 

Enumerations

enum  SexyIconEntryPosition { SEXY_ICON_ENTRY_PRIMARY , SEXY_ICON_ENTRY_SECONDARY }
 

Functions

G_BEGIN_DECLS GType sexy_icon_entry_get_type (void)
 
GtkWidget * sexy_icon_entry_new (void)
 
void sexy_icon_entry_set_icon (SexyIconEntry *entry, SexyIconEntryPosition position, GtkImage *icon)
 
void sexy_icon_entry_set_icon_highlight (SexyIconEntry *entry, SexyIconEntryPosition position, gboolean highlight)
 
GtkImage * sexy_icon_entry_get_icon (const SexyIconEntry *entry, SexyIconEntryPosition position)
 
gboolean sexy_icon_entry_get_icon_highlight (const SexyIconEntry *entry, SexyIconEntryPosition position)
 
void sexy_icon_entry_add_clear_button (SexyIconEntry *icon_entry)
 

Macro Definition Documentation

◆ SEXY_ICON_ENTRY

#define SEXY_ICON_ENTRY (   obj)     (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))

Definition at line 31 of file sexy_icon_entry.h.

◆ SEXY_ICON_ENTRY_CLASS

#define SEXY_ICON_ENTRY_CLASS (   klass)     (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))

Definition at line 33 of file sexy_icon_entry.h.

◆ SEXY_ICON_ENTRY_GET_CLASS

#define SEXY_ICON_ENTRY_GET_CLASS (   obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))

Definition at line 39 of file sexy_icon_entry.h.

◆ SEXY_IS_ICON_ENTRY

#define SEXY_IS_ICON_ENTRY (   obj)     (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))

Definition at line 35 of file sexy_icon_entry.h.

◆ SEXY_IS_ICON_ENTRY_CLASS

#define SEXY_IS_ICON_ENTRY_CLASS (   klass)     (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))

Definition at line 37 of file sexy_icon_entry.h.

◆ SEXY_TYPE_ICON_ENTRY

#define SEXY_TYPE_ICON_ENTRY   (sexy_icon_entry_get_type())

Definition at line 30 of file sexy_icon_entry.h.

Typedef Documentation

◆ SexyIconEntry

typedef struct _SexyIconEntry SexyIconEntry

Definition at line 24 of file sexy_icon_entry.h.

◆ SexyIconEntryClass

Definition at line 25 of file sexy_icon_entry.h.

◆ SexyIconEntryPriv

Definition at line 26 of file sexy_icon_entry.h.

Enumeration Type Documentation

◆ SexyIconEntryPosition

Enumerator
SEXY_ICON_ENTRY_PRIMARY 
SEXY_ICON_ENTRY_SECONDARY 

Definition at line 42 of file sexy_icon_entry.h.

Function Documentation

◆ sexy_icon_entry_add_clear_button()

void sexy_icon_entry_add_clear_button ( SexyIconEntry icon_entry)

Definition at line 957 of file sexy_icon_entry.c.

References clear_button_clicked_cb(), _SexyIconEntryPriv::icon_released_id, nsgtk_image_new_from_stock(), NSGTK_STOCK_CLEAR, _SexyIconEntry::priv, SEXY_ICON_ENTRY, SEXY_ICON_ENTRY_SECONDARY, sexy_icon_entry_set_icon(), sexy_icon_entry_set_icon_highlight(), and SEXY_IS_ICON_ENTRY.

Here is the call graph for this function:

◆ sexy_icon_entry_get_icon()

GtkImage * sexy_icon_entry_get_icon ( const SexyIconEntry entry,
SexyIconEntryPosition  position 
)

◆ sexy_icon_entry_get_icon_highlight()

gboolean sexy_icon_entry_get_icon_highlight ( const SexyIconEntry entry,
SexyIconEntryPosition  position 
)

Definition at line 928 of file sexy_icon_entry.c.

References SexyIconInfo::highlight, _SexyIconEntryPriv::icons, IS_VALID_ICON_ENTRY_POSITION, _SexyIconEntry::priv, and SEXY_IS_ICON_ENTRY.

Referenced by sexy_icon_entry_button_press(), sexy_icon_entry_button_release(), sexy_icon_entry_enter_notify(), and sexy_icon_entry_leave_notify().

Here is the caller graph for this function:

◆ sexy_icon_entry_get_type()

G_BEGIN_DECLS GType sexy_icon_entry_get_type ( void  )

◆ sexy_icon_entry_new()

GtkWidget * sexy_icon_entry_new ( void  )

Definition at line 805 of file sexy_icon_entry.c.

References SEXY_TYPE_ICON_ENTRY.

Referenced by nsgtk_entry_new().

Here is the caller graph for this function:

◆ sexy_icon_entry_set_icon()

void sexy_icon_entry_set_icon ( SexyIconEntry entry,
SexyIconEntryPosition  position,
GtkImage *  icon 
)

Definition at line 819 of file sexy_icon_entry.c.

References SexyIconInfo::icon, _SexyIconEntryPriv::icon_released_id, _SexyIconEntryPriv::icons, IS_VALID_ICON_ENTRY_POSITION, _SexyIconEntry::priv, SEXY_ICON_ENTRY_SECONDARY, SEXY_IS_ICON_ENTRY, update_icon(), and SexyIconInfo::window.

Referenced by nsgtk_entry_set_icon_from_icon_name(), nsgtk_entry_set_icon_from_pixbuf(), sexy_icon_entry_add_clear_button(), and sexy_icon_entry_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sexy_icon_entry_set_icon_highlight()

void sexy_icon_entry_set_icon_highlight ( SexyIconEntry entry,
SexyIconEntryPosition  position,
gboolean  highlight 
)

Definition at line 880 of file sexy_icon_entry.c.

References SexyIconInfo::highlight, _SexyIconEntryPriv::icons, IS_VALID_ICON_ENTRY_POSITION, _SexyIconEntry::priv, and SEXY_IS_ICON_ENTRY.

Referenced by sexy_icon_entry_add_clear_button().

Here is the caller graph for this function: