KWin
Loading...
Searching...
No Matches
Public Types | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
ExpoLayout Class Reference

#include <expolayout.h>

Inheritance diagram for ExpoLayout:

Public Types

enum  LayoutMode : uint { LayoutClosest = 0 , LayoutNatural = 1 , LayoutNone = 2 }
 

Signals

void modeChanged ()
 
void fillGapsChanged ()
 
void spacingChanged ()
 
void readyChanged ()
 

Public Member Functions

 ExpoLayout (QQuickItem *parent=nullptr)
 
LayoutMode mode () const
 
void setMode (LayoutMode mode)
 
bool fillGaps () const
 
void setFillGaps (bool fill)
 
int spacing () const
 
void setSpacing (int spacing)
 
void addCell (ExpoCell *cell)
 
void removeCell (ExpoCell *cell)
 
bool isReady () const
 
void setReady ()
 
Q_INVOKABLE void forceLayout ()
 

Protected Member Functions

void geometryChange (const QRectF &newGeometry, const QRectF &oldGeometry) override
 
void updatePolish () override
 

Properties

LayoutMode mode
 
bool fillGaps
 
int spacing
 
bool ready
 

Detailed Description

Definition at line 17 of file expolayout.h.

Member Enumeration Documentation

◆ LayoutMode

Enumerator
LayoutClosest 
LayoutNatural 
LayoutNone 

Definition at line 26 of file expolayout.h.

Constructor & Destructor Documentation

◆ ExpoLayout()

ExpoLayout::ExpoLayout ( QQuickItem * parent = nullptr)
explicit

Definition at line 220 of file expolayout.cpp.

Member Function Documentation

◆ addCell()

void ExpoLayout::addCell ( ExpoCell * cell)

Definition at line 304 of file expolayout.cpp.

◆ fillGaps()

bool ExpoLayout::fillGaps ( ) const

Definition at line 239 of file expolayout.cpp.

◆ fillGapsChanged

void ExpoLayout::fillGapsChanged ( )
signal

◆ forceLayout()

void ExpoLayout::forceLayout ( )

Definition at line 280 of file expolayout.cpp.

◆ geometryChange()

void ExpoLayout::geometryChange ( const QRectF & newGeometry,
const QRectF & oldGeometry )
overrideprotected

Definition at line 317 of file expolayout.cpp.

◆ isReady()

bool ExpoLayout::isReady ( ) const

Definition at line 267 of file expolayout.cpp.

◆ mode()

ExpoLayout::LayoutMode ExpoLayout::mode ( ) const

Definition at line 225 of file expolayout.cpp.

◆ modeChanged

void ExpoLayout::modeChanged ( )
signal

◆ readyChanged

void ExpoLayout::readyChanged ( )
signal

◆ removeCell()

void ExpoLayout::removeCell ( ExpoCell * cell)

Definition at line 311 of file expolayout.cpp.

◆ setFillGaps()

void ExpoLayout::setFillGaps ( bool fill)

Definition at line 244 of file expolayout.cpp.

◆ setMode()

void ExpoLayout::setMode ( LayoutMode mode)

Definition at line 230 of file expolayout.cpp.

◆ setReady()

void ExpoLayout::setReady ( )

Definition at line 272 of file expolayout.cpp.

◆ setSpacing()

void ExpoLayout::setSpacing ( int spacing)

Definition at line 258 of file expolayout.cpp.

◆ spacing()

int ExpoLayout::spacing ( ) const

Definition at line 253 of file expolayout.cpp.

◆ spacingChanged

void ExpoLayout::spacingChanged ( )
signal

◆ updatePolish()

void ExpoLayout::updatePolish ( )
overrideprotected

Definition at line 285 of file expolayout.cpp.

Property Documentation

◆ fillGaps

bool ExpoLayout::fillGaps
readwrite

Definition at line 21 of file expolayout.h.

◆ mode

LayoutMode ExpoLayout::mode
readwrite

Definition at line 20 of file expolayout.h.

◆ ready

bool ExpoLayout::ready
read

Definition at line 23 of file expolayout.h.

◆ spacing

int ExpoLayout::spacing
readwrite

Definition at line 22 of file expolayout.h.


The documentation for this class was generated from the following files: