#### PyKDE - Python Bindings for KDE

# class KRuler |
Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KRuler
Inherits | QFrame

### enums

- MetricStyle = {Custom, Pixel, Inch, Millimetres, Centimetres, Metres }

### methods

- KRuler (parent = 0, name = 0)

  returns a KRuler instance
  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  name | char | 0

- KRuler (orient, parent = 0, name = 0, f = 0)

  returns a KRuler instance
  Argument | Type | Default
  --- | --- | ---
  orient | Orientation |
  parent | QWidget | 0
  name | char | 0
  f | WFlags | 0

- KRuler (orient, widgetWidth, parent = 0, name = 0, f = 0)

  returns a KRuler instance
  Argument | Type | Default
  --- | --- | ---
  orient | Orientation |
  widgetWidth | int |
  parent | QWidget | 0
  name | char | 0
  f | WFlags | 0

- bigMarkDistance ()

  returns (int)

- drawContents (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QPainter |

- endLabel ()

  returns (QString)

- endOffset ()

  returns (int)

- length ()

  returns (int)

- lengthFixed ()

  returns (bool)

- littleMarkDistance ()

  returns (int)

- maxValue ()

  returns (int)

- mediumMarkDistance ()

  returns (int)

- minValue ()

  returns (int)

- offset ()

  returns (int)

- pixelPerMark ()

  returns (double)

- setBigMarkDistance (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setEndLabel (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- setLength (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setLengthFixed (fix)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  fix | bool |

- setLittleMarkDistance (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setMaxValue (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setMediumMarkDistance (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setMinValue (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setOffset (offset)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  offset | int |

- setPixelPerMark (rate)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  rate | double |

- setRange (min, max)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  min | int |
  max | int |

- setRulerMetricStyle (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KRuler.MetricStyle |

- setShowBigMarks (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowEndLabel (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowEndMarks (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowLittleMarks (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowMediumMarks (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowPointer (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setShowTinyMarks (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool |

- setTinyMarkDistance (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setValue (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setValuePerBigMark (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setValuePerLittleMark (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- setValuePerMediumMark (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- showBigMarks ()

  returns (bool)

- showEndLabel ()

  returns (bool)

- showEndMarks ()

  returns (bool)

- showLittleMarks ()

  returns (bool)

- showMediumMarks ()

  returns (bool)

- showPointer ()

  returns (bool)

- showTinyMarks ()

  returns (bool)

- slideDown (count = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  count | int | 1

- slideUp (count = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  count | int | 1

- slotEndOffset (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- slotNewOffset (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- slotNewValue (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- tinyMarkDistance ()

  returns (int)

- value ()

  returns (int)