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

liblancelot

  • sources
  • kde-4.14
  • workspace
  • kdeplasma-addons
  • libs
  • lancelot
  • widgets
Namespaces | Macros
BasicWidget.cpp File Reference
#include "BasicWidget.h"
#include "Global.h"
#include <QApplication>
#include <QtGui/QPainter>
#include <KGlobalSettings>
#include <Plasma/PaintUtils>
#include <cmath>
#include <lancelot/lancelot.h>
#include "BasicWidget.moc"
Include dependency graph for BasicWidget.cpp:

Go to the source code of this file.

Namespaces

 Lancelot
 

Macros

#define max(A, B)   ((A) >= (B)) ? (A) : (B)
 
#define setLeft(itemRect, parentRect, alignment)
 
#define WIDGET_PADDING   8
 

Macro Definition Documentation

#define max (   A,
  B 
)    ((A) >= (B)) ? (A) : (B)

Definition at line 36 of file BasicWidget.cpp.

#define setLeft (   itemRect,
  parentRect,
  alignment 
)
Value:
if ((parentRect).width() > (itemRect).width()) { \
if ((alignment) & Qt::AlignHCenter) \
(itemRect).moveLeft(WIDGET_PADDING + ((parentRect).width() - (itemRect).width()) / 2); \
else if ((alignment) & Qt::AlignRight) \
(itemRect).moveLeft(WIDGET_PADDING + (parentRect).width() - (itemRect).width()); \
} else { \
(itemRect).setWidth((parentRect).width()); \
(itemRect).moveLeft(WIDGET_PADDING); \
};
WIDGET_PADDING
#define WIDGET_PADDING
Definition: BasicWidget.cpp:34

Definition at line 166 of file BasicWidget.cpp.

#define WIDGET_PADDING   8

Definition at line 34 of file BasicWidget.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

liblancelot

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

workspace API Reference

Skip menu "workspace API Reference"
  • kdeplasma-addons
  •       GroupingDesktop
  •     liblancelot

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