TTkAbstractScrollViewLayout🌶️

class TTkAbstractScrollViewLayout(*args, **kwargs)[source]🌶️

Bases: TTkLayout, TTkAbstractScrollViewInterface

TTkAbstractScrollViewLayout

Signals🌶️

viewChanged

This signal is emitted whenever there is a change in the view content topology (size,pos)

viewMovedTo

This signal is emitted when the view content move to a new position (x,y),

viewSizeChanged

This signal is emitted when the view content size changed

Slots🌶️

viewMoveTo(x, y)

Move the view to the specified offset position

Members🌶️

viewChanged: pyTTkSignal🌶️

This signal is emitted whenever there is a change in the view content topology (size,pos)

Note

This signal must be implemented in any implementation of TTkAbstractScrollView to notify that the view content boudaries changed

viewMovedTo: pyTTkSignal🌶️

This signal is emitted when the view content move to a new position (x,y),

Parameters:
  • x (int) – the new horizontal offset

  • y (int) – the new vertical offset

viewSizeChanged: pyTTkSignal🌶️

This signal is emitted when the view content size changed

Parameters:
  • width (int) – the new width

  • height (int) – the new height

Methods🌶️

getViewOffsets() Tuple[int, int][source]🌶️

Retrieve the vertical and horizontal offsets of the TTkAbstractScrollViewInterface

Note

Reimplement this function to handle this event

This method is already implemented in the following classes:
Returns:

the (x,y) offset

Return type:

tuple[int,int]

viewDisplayedSize() Tuple[int, int][source]🌶️

Return the displayed size of the layout

Returns:

the (width, height) of the displayed area

Return type:

tuple[int,int]

viewFullAreaSize() Tuple[int, int][source]🌶️

Return the full area size of the layout

Returns:

the (width, height) of the full area

Return type:

tuple[int,int]

viewMoveTo(x: int, y: int) None[source]🌶️

Move the view to the specified offset position

Parameters:
  • x (int) – the horizontal offset

  • y (int) – the vertical offset

Methods Inherited from: TTkLayout

addItem(item)

addItems(items)

addWidget(widget)

Add a widget to this Layout

addWidgets(widgets)

Add a list of widgets to this Layout

children()

clear()

count()

fullWidgetAreaGeometry()

insertItem(index, item)

insertItems(index, items)

insertWidget(index, widget)

insertWidgets(index, widgets)

itemAt(index)

iterWidgets([onlyVisible, recurse, reverse])

Iterate over all widgets in the layout.

lowerWidget(widget)

parentWidget()

raiseWidget(widget)

removeItem(item)

removeItems(items)

removeWidget(widget)

Remove a widget from this Layout

removeWidgets(widgets)

Remove a list of widget from this Layout

replaceItem(item, index)

setGeometry(x, y, w, h)

Set the geometry and emit viewChanged signal

setParent(parent)

update(*args, **kwargs)

TTkAbstractScrollViewLayout Attributes🌶️

LAYER0

LAYER1

LAYER2

LAYER3

LAYERMASK

zSortedItems