class KWordWrap

#### PyKDE - Python Bindings for KDE

# class KWordWrap |
Table of contents
Modules
tdeui Classes
All Classes

Module | tdeui
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 | TQRect |

- boundingRect ()

  returns (TQRect)

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

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  p | TQPainter |
  x | int |
  y | int |
  maxW | int |
  t | TQString |

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

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  painter | TQPainter |
  x | int |
  y | int |
  flags | int | TQt .AlignAuto

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

  returns nothing
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  p | TQPainter |
  x | int |
  y | int |
  maxW | int |
  t | TQString |

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

  returns (KWordWrap)
  static
  Argument | Type | Default
  --- | --- | ---
  fm | TQFontMetrics |
  r | TQRect |
  flags | int |
  str | TQString |
  len | int | -1

- truncatedString (dots = 1)

  returns (TQString)
  Argument | Type | Default
  --- | --- | ---
  dots | bool | 1

- wrappedString ()

  returns (TQString)