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

Go to the source code of this file.
Functions | |
long | moveWidget (long widget, long x, long y) |
PyObject * | py_create_widget_mask (PyObject *, PyObject *args) |
PyObject * | py_get_widget_position (PyObject *, PyObject *args) |
PyObject * | py_move_widget (PyObject *, PyObject *args) |
PyObject * | py_redraw_widget (PyObject *, PyObject *args) |
PyObject * | py_redraw_widget_background (PyObject *, PyObject *args) |
PyObject * | py_resize_widget (PyObject *, PyObject *args) |
PyObject * | py_set_widget_on_top (PyObject *, PyObject *args) |
PyObject * | py_toggle_widget_redraw (PyObject *, PyObject *args) |
long | redrawWidget (long widget) |
long | resizeWidget (long widget, long x, long y) |
long | widgetSetOnTop (long widget, bool b) |
Function Documentation
long moveWidget | ( | long | widget, |
long | x, | ||
long | y | ||
) |
Definition at line 114 of file widget.cpp.
Widget/createWidgetMask.
SYNOPSIS long createWidgetMask(widget, mask) DESCRIPTION This function doesn't work currently due to a bug in KDE. Please use MASK= in your .theme file for the time being. ARGUMENTS
- long widget – karamba
- string mask – The name of the widget mask file. RETURN VALUE 1 if successful
Definition at line 50 of file widget.cpp.
Widget/getWidgetPosition.
SYNOPSIS tuple getWidgetPosition(widget) DESCRIPTION Returns a Python Tuple containing the x and y position of you widget. widget is a reference to the current widget. ARGUMENTS
- long widget – karamba RETURN VALUE position of the widget
Definition at line 37 of file widget.cpp.
Widget/moveWidget.
SYNOPSIS long moveWidget(widget, x, y) DESCRIPTION Moves your karamba widget to a new screen location ARGUMENTS
- long widget – karamba
- long x – x coordinate
- long y – y coordinate RETURN VALUE 1 if successful
Definition at line 121 of file widget.cpp.
Widget/redrawWidget.
SYNOPSIS long redrawWidget(widget) DESCRIPTION This is THE most important function. After you do a bunch of other calls (moving images, adding images or text, etc), you call this to update the widget display area. You will not see your changes until you call this. Redraws widget background. ARGUMENTS
- long widget – karamba RETURN VALUE 1 if successful
Definition at line 82 of file widget.cpp.
Widget/redrawWidgetBackground.
SYNOPSIS long redrawWidgetBackground(widget) DESCRIPTION Redraws widget background. ARGUMENTS
- long widget – karamba RETURN VALUE 1 if successful
Definition at line 62 of file widget.cpp.
Widget/resizeWidget.
SYNOPSIS long resizeWidget(widget, w, h) DESCRIPTION Resizes your karamba widget to width=w, height=h ARGUMENTS
- long widget – karamba
- long w – width
- long h – height RETURN VALUE 1 if successful
Definition at line 103 of file widget.cpp.
Definition at line 144 of file widget.cpp.
Widget/toggleWidgetRedraw.
SYNOPSIS long toggleWidgetRedraw(widget, b) DESCRIPTION Toggles widget redraw. ARGUMENTS
- long widget – karamba
- long b – 1 = widget is drawn RETURN VALUE 1 if successful
Definition at line 154 of file widget.cpp.
long redrawWidget | ( | long | widget | ) |
Definition at line 73 of file widget.cpp.
long resizeWidget | ( | long | widget, |
long | x, | ||
long | y | ||
) |
Definition at line 94 of file widget.cpp.
long widgetSetOnTop | ( | long | widget, |
bool | b | ||
) |
Definition at line 132 of file widget.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.