• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
  • python
Functions
python/bar.h File Reference
#include <Python.h>
Include dependency graph for python/bar.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PyObject * py_createBar (PyObject *self, PyObject *args)
 
PyObject * py_deleteBar (PyObject *self, PyObject *args)
 
PyObject * py_getBarImage (PyObject *self, PyObject *args)
 
PyObject * py_getBarMinMax (PyObject *self, PyObject *args)
 
PyObject * py_getBarPos (PyObject *self, PyObject *args)
 
PyObject * py_getBarSensor (PyObject *self, PyObject *args)
 
PyObject * py_getBarSize (PyObject *self, PyObject *args)
 
PyObject * py_getBarValue (PyObject *self, PyObject *args)
 
PyObject * py_getBarVertical (PyObject *self, PyObject *args)
 
PyObject * py_getThemeBar (PyObject *self, PyObject *args)
 
PyObject * py_hideBar (PyObject *self, PyObject *args)
 
PyObject * py_moveBar (PyObject *self, PyObject *args)
 
PyObject * py_resizeBar (PyObject *self, PyObject *args)
 
PyObject * py_setBarImage (PyObject *self, PyObject *args)
 
PyObject * py_setBarMinMax (PyObject *self, PyObject *args)
 
PyObject * py_setBarSensor (PyObject *self, PyObject *args)
 
PyObject * py_setBarValue (PyObject *self, PyObject *args)
 
PyObject * py_setBarVertical (PyObject *self, PyObject *args)
 
PyObject * py_showBar (PyObject *self, PyObject *args)
 

Function Documentation

PyObject* py_createBar ( PyObject *  self,
PyObject *  args 
)

Bar/createBar.

SYNOPSIS long createBar(widget, x, y, w, h, image) DESCRIPTION This creates a bar at x,y with width and height w,h. ARGUMENTS

  • long widget – karamba
  • long x – x coordinate
  • long y – y coordinate
  • long w – width
  • long h – height
  • string image – Path to image RETURN VALUE Pointer to new bar meter

Definition at line 36 of file python/bar.cpp.

PyObject* py_deleteBar ( PyObject *  self,
PyObject *  args 
)

Bar/deleteBar.

SYNOPSIS long deleteBar(widget, bar) DESCRIPTION This deletes bar. ARGUMENTS

  • long widget – karamba
  • long widget – bar RETURN VALUE 1 if successful

Definition at line 52 of file python/bar.cpp.

PyObject* py_getBarImage ( PyObject *  self,
PyObject *  args 
)

Bar/getBarImage.

SYNOPSIS string getBarImage(widget, bar) DESCRIPTION Get bar image ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE path to bar image

Definition at line 130 of file python/bar.cpp.

PyObject* py_getBarMinMax ( PyObject *  self,
PyObject *  args 
)

Bar/getBarMinMax.

SYNOPSIS tuple getBarMinMax(widget, bar) DESCRIPTION Returns current bar value. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE min & max

Definition at line 100 of file python/bar.cpp.

PyObject* py_getBarPos ( PyObject *  self,
PyObject *  args 
)

Bar/getBarPos.

SYNOPSIS tuple getBarPos(widget, bar) DESCRIPTION Given a reference to a bar object, this will return a tuple containing the x and y coordinate of a bar object. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE pos

Definition at line 80 of file python/bar.cpp.

PyObject* py_getBarSensor ( PyObject *  self,
PyObject *  args 
)

Bar/getBarSensor.

SYNOPSIS string getBarSensor(widget, bar) DESCRIPTION Get current sensor string ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE sensor string

Definition at line 120 of file python/bar.cpp.

PyObject* py_getBarSize ( PyObject *  self,
PyObject *  args 
)

Bar/getBarSize.

SYNOPSIS tuple getBarSize(widget, bar) DESCRIPTION Given a reference to a bar object, this will return a tuple containing the height and width of a bar object. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE size

Definition at line 70 of file python/bar.cpp.

PyObject* py_getBarValue ( PyObject *  self,
PyObject *  args 
)

Bar/getBarValue.

SYNOPSIS long getBarValue(widget, bar) DESCRIPTION Returns current bar value. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE value

Definition at line 110 of file python/bar.cpp.

PyObject* py_getBarVertical ( PyObject *  self,
PyObject *  args 
)

Bar/getBarVertical.

SYNOPSIS string getBarVertical(widget, bar) DESCRIPTION Check if bar is vertical bar ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE 1 if vertical

Definition at line 151 of file python/bar.cpp.

PyObject* py_getThemeBar ( PyObject *  self,
PyObject *  args 
)

Bar/getThemeBar.

SYNOPSIS long getThemeBar(widget, name) DESCRIPTION You can reference bar in your python code that was created in the theme file. Basically, you just add a NAME= value to the BAR line in the .theme file. Then if you want to use that object, instead of calling createBar, you can call this function.

The name you pass to the function is the same one that you gave it for the NAME= parameter in the .theme file. ARGUMENTS

  • long widget – karamba
  • string name – name of the bar to get RETURN VALUE Pointer to bar

Definition at line 65 of file python/bar.cpp.

PyObject* py_hideBar ( PyObject *  self,
PyObject *  args 
)

Bar/hideBar.

SYNOPSIS long hideBar(widget, bar) DESCRIPTION This hides an bar. In other words, during subsequent calls to widgetUpdate(), this bar will not be drawn. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE 1 if successful

Definition at line 90 of file python/bar.cpp.

PyObject* py_moveBar ( PyObject *  self,
PyObject *  args 
)

Bar/moveBar.

SYNOPSIS long moveBar(widget, bar, x, y) DESCRIPTION This will move bar to new x and y coordinates. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • long x – x coordinate
  • long y – y coordinate RETURN VALUE 1 if successful

Definition at line 85 of file python/bar.cpp.

PyObject* py_resizeBar ( PyObject *  self,
PyObject *  args 
)

Bar/resizeBar.

SYNOPSIS long resizeBar(widget, bar, w, h) DESCRIPTION This will resize bar to new height and width. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • long w – new width
  • long h – new height RETURN VALUE 1 if successful

Definition at line 75 of file python/bar.cpp.

PyObject* py_setBarImage ( PyObject *  self,
PyObject *  args 
)

Bar/setBarImage.

SYNOPSIS long setBarImage(widget, bar, image) DESCRIPTION Get bar image ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • string image – new image RETURN VALUE 1 if successful

Definition at line 140 of file python/bar.cpp.

PyObject* py_setBarMinMax ( PyObject *  self,
PyObject *  args 
)

Bar/setBarMinMax.

SYNOPSIS long setBarMinMax(widget, bar, min, max) DESCRIPTION Returns current bar value. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • long min – min value
  • long max – max value RETURN VALUE 1 if successful

Definition at line 105 of file python/bar.cpp.

PyObject* py_setBarSensor ( PyObject *  self,
PyObject *  args 
)

Bar/setBarSensor.

SYNOPSIS long setBarSensor(widget, bar, sensor) DESCRIPTION Get current sensor string ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • string sensor – new sensor as in theme files RETURN VALUE 1 if successful

Definition at line 125 of file python/bar.cpp.

PyObject* py_setBarValue ( PyObject *  self,
PyObject *  args 
)

Bar/setBarValue.

SYNOPSIS long setBarValue(widget, bar, value) DESCRIPTION Sets current bar value. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • long value – new value RETURN VALUE 1 if successful

Definition at line 115 of file python/bar.cpp.

PyObject* py_setBarVertical ( PyObject *  self,
PyObject *  args 
)

Bar/setBarVertical.

SYNOPSIS long setBarVertical(widget, bar) DESCRIPTION Set bar vertical ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar
  • long vertical – 1 if vertical RETURN VALUE 1 if successful

Definition at line 161 of file python/bar.cpp.

PyObject* py_showBar ( PyObject *  self,
PyObject *  args 
)

Bar/showBar.

SYNOPSIS long showBar(widget, bar) DESCRIPTION This shows an bar. In other words, during subsequent calls to widgetUpdate(), this bar will be drawn. ARGUMENTS

  • long widget – karamba
  • long bar – pointer to bar RETURN VALUE 1 if successful

Definition at line 95 of file python/bar.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal