GucharmapChartable

GucharmapChartable

Synopsis

                    GucharmapChartablePrivate;
struct              GucharmapChartable;
GtkWidget *         gucharmap_chartable_new             (void);
void                gucharmap_chartable_set_font_desc   (GucharmapChartable *chartable,
                                                         PangoFontDescription *font_desc);
void                gucharmap_chartable_set_font_fallback
                                                        (GucharmapChartable *chartable,
                                                         gboolean enable_font_fallback);
gboolean            gucharmap_chartable_get_font_fallback
                                                        (GucharmapChartable *chartable);
gunichar            gucharmap_chartable_get_active_character
                                                        (GucharmapChartable *chartable);
void                gucharmap_chartable_set_active_character
                                                        (GucharmapChartable *chartable,
                                                         gunichar wc);
void                gucharmap_chartable_set_zoom_enabled
                                                        (GucharmapChartable *chartable,
                                                         gboolean enabled);
gboolean            gucharmap_chartable_get_zoom_enabled
                                                        (GucharmapChartable *chartable);
void                gucharmap_chartable_set_snap_pow2   (GucharmapChartable *chartable,
                                                         gboolean snap);
void                gucharmap_chartable_set_codepoint_list
                                                        (GucharmapChartable *chartable,
                                                         GucharmapCodepointList *codepoint_list);
GucharmapCodepointList * gucharmap_chartable_get_codepoint_list
                                                        (GucharmapChartable *chartable);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkDrawingArea
                     +----GucharmapChartable

Implemented Interfaces

GucharmapChartable implements AtkImplementorIface, GtkBuildable and GtkScrollable.

Properties

  "active-character"         guint                 : Read / Write
  "codepoint-list"           GucharmapCodepointList*  : Read / Write
  "font-desc"                PangoFontDescription*  : Read / Write
  "font-fallback"            gboolean              : Read / Write
  "snap-power-2"             gboolean              : Read / Write
  "zoom-enabled"             gboolean              : Read / Write
  "zoom-showing"             gboolean              : Read

Signals

  "activate"                                       : Action
  "copy-clipboard"                                 : Action
  "move-cursor"                                    : Action
  "paste-clipboard"                                : Action
  "status-message"                                 : Run First

Description

Details

GucharmapChartablePrivate

typedef struct _GucharmapChartablePrivate GucharmapChartablePrivate;


struct GucharmapChartable

struct GucharmapChartable;


gucharmap_chartable_new ()

GtkWidget *         gucharmap_chartable_new             (void);

Returns :

a new GucharmapChartable

gucharmap_chartable_set_font_desc ()

void                gucharmap_chartable_set_font_desc   (GucharmapChartable *chartable,
                                                         PangoFontDescription *font_desc);

Sets font_desc as the font to use to display the character table.

chartable :

a GucharmapChartable

font_desc :

a PangoFontDescription

gucharmap_chartable_set_font_fallback ()

void                gucharmap_chartable_set_font_fallback
                                                        (GucharmapChartable *chartable,
                                                         gboolean enable_font_fallback);

chartable :

a GucharmapChartable

enable_font_fallback :

whether to enable font fallback

Since 2.34


gucharmap_chartable_get_font_fallback ()

gboolean            gucharmap_chartable_get_font_fallback
                                                        (GucharmapChartable *chartable);

chartable :

a GucharmapChartable

Returns :

whether font fallback is enabled

Since 2.34


gucharmap_chartable_get_active_character ()

gunichar            gucharmap_chartable_get_active_character
                                                        (GucharmapChartable *chartable);

chartable :

a GucharmapChartable

Returns :

the currently selected character

gucharmap_chartable_set_active_character ()

void                gucharmap_chartable_set_active_character
                                                        (GucharmapChartable *chartable,
                                                         gunichar wc);

Sets wc as the selected character.

chartable :

a GucharmapChartable

wc :

a unicode character (UTF-32)

gucharmap_chartable_set_zoom_enabled ()

void                gucharmap_chartable_set_zoom_enabled
                                                        (GucharmapChartable *chartable,
                                                         gboolean enabled);

Enables or disables the zoom popup.

chartable :

a GucharmapChartable

enabled :

whether to enable zoom mode

gucharmap_chartable_get_zoom_enabled ()

gboolean            gucharmap_chartable_get_zoom_enabled
                                                        (GucharmapChartable *chartable);

chartable :

a GucharmapChartable

Returns :

whether zooming is enabled

gucharmap_chartable_set_snap_pow2 ()

void                gucharmap_chartable_set_snap_pow2   (GucharmapChartable *chartable,
                                                         gboolean snap);

Sets whether the number columns the character table shows should always be a power of 2.

chartable :

a GucharmapChartable

snap :

whether to enable or disable snapping

gucharmap_chartable_set_codepoint_list ()

void                gucharmap_chartable_set_codepoint_list
                                                        (GucharmapChartable *chartable,
                                                         GucharmapCodepointList *codepoint_list);

Sets the codepoint list to show in the character table.

chartable :

a GucharmapChartable

codepoint_list :

a GucharmapCodepointList

gucharmap_chartable_get_codepoint_list ()

GucharmapCodepointList * gucharmap_chartable_get_codepoint_list
                                                        (GucharmapChartable *chartable);

chartable :

a GucharmapChartable

Returns :

the current codepoint list. [transfer none]

Property Details

The "active-character" property

  "active-character"         guint                 : Read / Write

Allowed values: <= 1114111

Default value: 0


The "codepoint-list" property

  "codepoint-list"           GucharmapCodepointList*  : Read / Write


The "font-desc" property

  "font-desc"                PangoFontDescription*  : Read / Write


The "font-fallback" property

  "font-fallback"            gboolean              : Read / Write

Whether font fallback is enabled.

Default value: TRUE

Since 2.34


The "snap-power-2" property

  "snap-power-2"             gboolean              : Read / Write

Default value: FALSE


The "zoom-enabled" property

  "zoom-enabled"             gboolean              : Read / Write

Default value: FALSE


The "zoom-showing" property

  "zoom-showing"             gboolean              : Read

Default value: FALSE

Signal Details

The "activate" signal

void                user_function                      (GucharmapChartable *gucharmapchartable,
                                                        gpointer            user_data)               : Action

gucharmapchartable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "copy-clipboard" signal

void                user_function                      (GucharmapChartable *gucharmapchartable,
                                                        gpointer            user_data)               : Action

gucharmapchartable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "move-cursor" signal

gboolean            user_function                      (GucharmapChartable *gucharmapchartable,
                                                        GtkMovementStep     arg1,
                                                        gint                arg2,
                                                        gpointer            user_data)               : Action

gucharmapchartable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "paste-clipboard" signal

void                user_function                      (GucharmapChartable *gucharmapchartable,
                                                        gpointer            user_data)               : Action

gucharmapchartable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.

The "status-message" signal

void                user_function                      (GucharmapChartable *gucharmapchartable,
                                                        gchar              *arg1,
                                                        gpointer            user_data)               : Run First

gucharmapchartable :

the object which received the signal.

user_data :

user data set when the signal handler was connected.