Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • core_lib
  • src
  • interface
toolboxlayout.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6Copyright (C) 2024-2099 Oliver S. Larsen
7
8This program is free software; you can redistribute it and/or
9modify it under the terms of the GNU General Public License
10as published by the Free Software Foundation; version 2 of the License.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17*/
18#ifndef TOOLBOXLAYOUT_H
19#define TOOLBOXLAYOUT_H
20
21#include "flowlayout.h"
22
23class ToolBoxLayout : public FlowLayout
24{
25public:
26 ToolBoxLayout(QWidget* parent, int margin, int hSpacing, int vSpacing);
27
28protected:
29 void lastLineAlignment(int startIndex, int count, RowLayoutInfo rowInfo, const QRect& effectiveRect) const override;
30
31private:
32 void alignRowFromRowInfo(int startIndex, int count, RowLayoutInfo rowInfo) const;
33};
34
35#endif // TOOLBOXLAYOUT_H
FlowLayout
Definition: flowlayout.h:81
ToolBoxLayout
Definition: toolboxlayout.h:24
QLayout::margin
margin
QObject::parent
QObject * parent() const const
QRect
QWidget
RowLayoutInfo
Definition: flowlayout.h:74
Generated on Thu Jun 5 2025 14:06:43 for Pencil2D by doxygen 1.9.6 based on revision 4c63407997b2c03e5048716586dec6fbbb755173