---
name: "Gtk2::HScrollbar"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::HScrollbar"
---

# Gtk2::HScrollbar(3pm)

wrapper for GtkHScrollbar

## NAME

Gtk2::HScrollbar - wrapper for GtkHScrollbar

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Range
                      +----Gtk2::Scrollbar
                           +----Gtk2::HScrollbar
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Orientable
```

## METHODS

### widget = Gtk2::HScrollbar-\>new ($adjustment=undef)

- •

  `$adjustment` (Gtk2::Adjustment or undef)

### widget = Gtk2::HScrollBar-\>new ($adjustment=undef)

- •

  `$adjustment` (Gtk2::Adjustment or undef)

A typo in days long past resulted in the package names for Gtk2::HScrollbar and Gtk2::VScrollbar being misspelled with a capital `"B"`, despite the fact that only the proper name (with the small `"b"`) was actually registered with the Glib type system.  For backward compatibility with Gtk2-1.00, Gtk2::HScrollBar-\>new calls Gtk2::HScrollbar-\>new without complaint.

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Range, Gtk2::Scrollbar

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
