superkaramba
#include <Python.h>


Go to the source code of this file.
Function Documentation
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.