XviewerThumbNav

XviewerThumbNav

Functions

Properties

gint mode Read / Write
gboolean show-buttons Read / Write
XviewerThumbView * thumbview Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBox
                    ╰── XviewerThumbNav

Implemented Interfaces

XviewerThumbNav implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

Functions

xviewer_thumb_nav_new ()

GtkWidget *
xviewer_thumb_nav_new (GtkWidget *thumbview,
                       XviewerThumbNavMode mode,
                       gboolean show_buttons);

Creates a new thumbnail navigation widget.

Parameters

thumbview

an XviewerThumbView to embed in the navigation widget.

 

mode

The navigation mode.

 

show_buttons

Whether to show the navigation buttons.

 

Returns

a new XviewerThumbNav object.


xviewer_thumb_nav_get_show_buttons ()

gboolean
xviewer_thumb_nav_get_show_buttons (XviewerThumbNav *nav);

Gets whether the navigation buttons are visible.

Parameters

nav

an XviewerThumbNav.

 

Returns

TRUE if the navigation buttons are visible, FALSE otherwise.


xviewer_thumb_nav_set_show_buttons ()

void
xviewer_thumb_nav_set_show_buttons (XviewerThumbNav *nav,
                                    gboolean show_buttons);

Sets whether the navigation buttons to the left and right of the widget should be visible.

Parameters

nav

an XviewerThumbNav.

 

show_buttons

TRUE to show the buttons, FALSE to hide them.

 

xviewer_thumb_nav_get_mode ()

XviewerThumbNavMode
xviewer_thumb_nav_get_mode (XviewerThumbNav *nav);

Gets the navigation mode in nav .

Parameters

nav

an XviewerThumbNav.

 

Returns

A value in XviewerThumbNavMode.


xviewer_thumb_nav_set_mode ()

void
xviewer_thumb_nav_set_mode (XviewerThumbNav *nav,
                            XviewerThumbNavMode mode);

Sets the navigation mode in nav . See XviewerThumbNavMode for details.

Parameters

nav

An XviewerThumbNav.

 

mode

One of XviewerThumbNavMode.

 

Types and Values

enum XviewerThumbNavMode

Members

XVIEWER_THUMB_NAV_MODE_ONE_ROW

   

XVIEWER_THUMB_NAV_MODE_ONE_COLUMN

   

XVIEWER_THUMB_NAV_MODE_MULTIPLE_ROWS

   

XVIEWER_THUMB_NAV_MODE_MULTIPLE_COLUMNS

   

struct XviewerThumbNav

struct XviewerThumbNav;

Property Details

The “mode” property

  “mode”                     gint

Thumb navigator mode.

Flags: Read / Write

Allowed values: [0,2]

Default value: 0


The “show-buttons” property

  “show-buttons”             gboolean

Whether to show navigation buttons or not.

Flags: Read / Write

Default value: TRUE


The “thumbview” property

  “thumbview”                XviewerThumbView *

The internal thumbnail viewer widget.

Flags: Read / Write / Construct Only