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

superkaramba

bar.cpp File Reference

#include <Python.h>
#include <qobject.h>
#include "../karamba.h"
#include "meters/meter.h"
#include "python/meter.h"
#include "meters/bar.h"
#include "python/bar.h"

Include dependency graph for python/bar.cpp:

Go to the source code of this file.


Functions

PyObject * py_createBar (PyObject *, PyObject *args)
PyObject * py_deleteBar (PyObject *, PyObject *args)
PyObject * py_getThemeBar (PyObject *self, PyObject *args)
PyObject * py_getBarSize (PyObject *self, PyObject *args)
PyObject * py_resizeBar (PyObject *self, PyObject *args)
PyObject * py_getBarPos (PyObject *self, PyObject *args)
PyObject * py_moveBar (PyObject *self, PyObject *args)
PyObject * py_hideBar (PyObject *self, PyObject *args)
PyObject * py_showBar (PyObject *self, PyObject *args)
PyObject * py_getBarMinMax (PyObject *self, PyObject *args)
PyObject * py_setBarMinMax (PyObject *self, PyObject *args)
PyObject * py_getBarValue (PyObject *self, PyObject *args)
PyObject * py_setBarValue (PyObject *self, PyObject *args)
PyObject * py_getBarSensor (PyObject *self, PyObject *args)
PyObject * py_setBarSensor (PyObject *self, PyObject *args)
PyObject * py_getBarImage (PyObject *, PyObject *args)
PyObject * py_setBarImage (PyObject *, PyObject *args)
PyObject * py_getBarVertical (PyObject *, PyObject *args)
PyObject * py_setBarVertical (PyObject *, 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 35 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 51 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 129 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 99 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 79 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 119 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 69 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 109 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 150 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 64 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 89 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 84 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 74 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 139 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 104 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 124 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 114 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 160 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 94 of file python/bar.cpp.

superkaramba

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal