KiCad PCB EDA Suite
Loading...
Searching...
No Matches
aui_settings.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2023 Rivos
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * @author Wayne Stambaugh <[email protected]>
8 *
9 * This program is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation, either version 3 of the License, or (at your
12 * option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License along
20 * with this program. If not, see <http://www.gnu.org/licenses/>.
21 */
22
23#ifndef _AUI_SETTINGS_H_
24#define _AUI_SETTINGS_H_
25
27
28class wxAuiPaneInfo;
29class wxPoint;
30class wxRect;
31class wxSize;
32
33extern void to_json( nlohmann::json& aJson, const wxPoint& aPoint );
34extern void from_json( const nlohmann::json& aJson, wxPoint& aPoint );
35extern bool operator<( const wxPoint& aLhs, const wxPoint& aRhs );
36
37extern void to_json( nlohmann::json& aJson, const wxSize& aPoint );
38extern void from_json( const nlohmann::json& aJson, wxSize& aPoint );
39extern bool operator<( const wxSize& aLhs, const wxSize& aRhs );
40
41extern void to_json( nlohmann::json& aJson, const wxRect& aRect );
42extern void from_json( const nlohmann::json& aJson, wxRect& aRect );
43extern bool operator<( const wxRect& aLhs, const wxRect& aRhs );
44
45extern void to_json( nlohmann::json& aJson, const wxAuiPaneInfo& aPaneInfo );
46extern void from_json( const nlohmann::json& aJson, wxAuiPaneInfo& aPaneInfo );
47extern bool operator<( const wxAuiPaneInfo& aLhs, const wxAuiPaneInfo& aRhs );
48extern bool operator==( const wxAuiPaneInfo& aLhs, const wxAuiPaneInfo& aRhs );
49
50#endif // _AUI_SETTINGS_H_
void from_json(const nlohmann::json &aJson, wxPoint &aPoint)
bool operator==(const wxAuiPaneInfo &aLhs, const wxAuiPaneInfo &aRhs)
void to_json(nlohmann::json &aJson, const wxPoint &aPoint)
bool operator<(const wxPoint &aLhs, const wxPoint &aRhs)