#### PyKDE - Python Bindings for KDE

# class KWordWrap

Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KWordWrap
Inherits |

### enums

- (anonymous) = {FadeOut, Truncate }
- (anonymous) = {FadeOut }

### methods

- KWordWrap (r)

  returns a KWordWrap instance
  In versions KDE 3.2.0 and above only

  Argument | Type | Default
  --- | --- | ---
  r | QRect |

- boundingRect ()

  returns (QRect)

- drawFadeoutText (p, x, y, maxW, t)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  p | QPainter |
  x | int |
  y | int |
  maxW | int |
  t | QString |

- drawText (painter, x, y, flags = Qt .AlignAuto)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  painter | QPainter |
  x | int |
  y | int |
  flags | int | Qt .AlignAuto

- drawTruncateText (p, x, y, maxW, t)

  returns nothing
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  p | QPainter |
  x | int |
  y | int |
  maxW | int |
  t | QString |

- formatText (fm, r, flags, str, len = -1)

  returns (KWordWrap)
  static

  Argument | Type | Default
  --- | --- | ---
  fm | QFontMetrics |
  r | QRect |
  flags | int |
  str | QString |
  len | int | -1

- truncatedString (dots = 1)

  returns (QString)

  Argument | Type | Default
  --- | --- | ---
  dots | bool | 1

- wrappedString ()

  returns (QString)