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

kstars

  • extragear
  • edu
  • kstars
  • kstars
  • kstarslite
  • skyitems
  • skynodes
  • nodes
rectnode.h
Go to the documentation of this file.
1 
17 #pragma once
18 
19 #include <QColor>
20 #include <QSGGeometryNode>
21 
22 class QSGGeometry;
23 class QSGFlatColorMaterial;
24 
32 class RectNode : public QSGGeometryNode
33 {
34  public:
35  explicit RectNode(bool filled = false);
36 
44  void setRect(int x, int y, int w, int h);
45 
47  void setColor(const QColor &color);
48 
53  void setFilled(bool filled);
54 
55  private:
56  QSGGeometry *m_geometry { nullptr };
57  QSGFlatColorMaterial *m_material { nullptr };
58  bool m_filled { false };
59 };
RectNode::setRect
void setRect(int x, int y, int w, int h)
setRect sets rectangle to display
Definition: rectnode.cpp:36
RectNode::setColor
void setColor(const QColor &color)
setColor sets the color of rectangle
Definition: rectnode.cpp:46
QColor
RectNode
QSGGeometryNode derived class that draws filled and non-filled rectangles.
Definition: rectnode.h:32
QSGGeometryNode
RectNode::RectNode
RectNode(bool filled=false)
rectnode.cpp - K Desktop Planetarium begin : 20/08/2016 copyright : (C) 2016 by Artem Fedoskin email...
Definition: rectnode.cpp:22
RectNode::setFilled
void setFilled(bool filled)
setFilled sets whether the rectangle should be filled or no
Definition: rectnode.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Fri Dec 13 2019 02:57:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

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

edu API Reference

Skip menu "edu API Reference"
  •     core
  • kstars

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