Class gtk.Scroller
Extends
gtk.Widget.
Defined in: jsgtk_merge_for_doc.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Scroller is a class to create a scroller with horizontal and vertical scrollbars
|
Field Attributes | Field Name and Description |
---|---|
'scrolled' signal
|
Method Attributes | Method Name and Description |
---|---|
appendChild(widget, resizable, padding)
Append child to scroller
|
|
Disable horizontal scrollbar
|
|
Disable vertical scrollbar
|
|
Enable horizontal scrollbar
|
|
Enable vertical scrollbar
|
|
Return child widget gtk.Widget
|
|
Hide loading bar
|
|
refresh()
Refresh gtk.Scroller and its child widget
|
|
Remove event from scroller
|
|
scrollTo(x, y)
Scroll to right x pixel, Scroll to bottom y pixel
|
|
Scroll to bottom
|
|
Scroll to left
|
|
Scroll to right
|
|
Scroll to top
|
|
setAttribute(attribute)
Set style to the scroller
|
|
Show loading bar
|
- Methods borrowed from class gtk.Widget:
- activate, disable, enable, getActivateSignal, getHeight, getMinHeightComposite, getMinWidthComposite, getNode, getParent, getSize, getSizeRequest, getTag, getWidth, hide, hideTooltip, isHidden, resetHeightComposite, resetMinHeight, resetMinSize, resetMinWidth, resetWidthComposite, resizeHeightComposite, resizeWidthComposite, setActivateSignal, setBoldTitle, setEnable, setHeight, setParent, setSize, setSizeRequest, setTag, setTooltip, setWidth, show, showTooltip, sizeRequest
- Methods borrowed from class gobject.GObject:
- connect, disconnect, emit
Class Detail
gtk.Scroller()
Scroller is a class to create a scroller with horizontal and vertical scrollbars
Field Detail
SCROLLER_SCROLLED
'scrolled' signal
Method Detail
appendChild(widget, resizable, padding)
Append child to scroller
- Parameters:
- {gtk.Widget} widget
- {boolean} resizable
- true child expand false vice versa
- {integer} padding
disableHScrolled()
Disable horizontal scrollbar
disableVScrolled()
Disable vertical scrollbar
enableHScrolled()
Enable horizontal scrollbar
enableVScrolled()
Enable vertical scrollbar
{gtk.Widget}
getChildren()
Return child widget gtk.Widget
- Returns:
- {gtk.Widget}
hideLoading()
Hide loading bar
refresh()
Refresh gtk.Scroller and its child widget
removeScrolledEvent()
Remove event from scroller
scrollTo(x, y)
Scroll to right x pixel, Scroll to bottom y pixel
- Parameters:
- {integer} x
- {integer} y
scrollToBottom()
Scroll to bottom
scrollToLeft()
Scroll to left
scrollToRight()
Scroll to right
scrollToTop()
Scroll to top
setAttribute(attribute)
Set style to the scroller
- Parameters:
- {object} attribute
- {'height': ..px, 'border': '...', 'fontColor': ..}
showLoading()
Show loading bar