Audacity 3.2.0
Public Member Functions | Public Attributes | Friends | List of all members
ToolBarConfiguration::Position Struct Reference

#include <ToolDock.h>

Collaboration diagram for ToolBarConfiguration::Position:
[legend]

Public Member Functions

 Position ()
 
 Position (ToolBar *r, ToolBar *b=nullptr, bool shouldAdopt=true)
 
 Position (bool)
 

Public Attributes

ToolBarrightOf {}
 
ToolBarbelow {}
 
bool adopt {true}
 
bool valid {true}
 

Friends

bool operator== (const Position &lhs, const Position &rhs)
 
bool operator!= (const Position &lhs, const Position &rhs)
 

Detailed Description

Definition at line 71 of file ToolDock.h.

Constructor & Destructor Documentation

◆ Position() [1/3]

ToolBarConfiguration::Position::Position ( )
inline

Definition at line 78 of file ToolDock.h.

78{}

◆ Position() [2/3]

ToolBarConfiguration::Position::Position ( ToolBar r,
ToolBar b = nullptr,
bool  shouldAdopt = true 
)
inlineexplicit

Definition at line 80 of file ToolDock.h.

85 : rightOf{ r }, below{ b }, adopt{ shouldAdopt }
86 {}

◆ Position() [3/3]

ToolBarConfiguration::Position::Position ( bool  )
inlineexplicit

Definition at line 89 of file ToolDock.h.

89: valid{ false } {}

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const Position lhs,
const Position rhs 
)
friend

Definition at line 101 of file ToolDock.h.

103 { return !(lhs == rhs); }

◆ operator==

bool operator== ( const Position lhs,
const Position rhs 
)
friend

Definition at line 91 of file ToolDock.h.

93 { return lhs.valid == rhs.valid &&
94 (!lhs.valid ||
95 (lhs.rightOf == rhs.rightOf
96 && lhs.below == rhs.below
97 && lhs.adopt == rhs.adopt
98 ));
99 }

Member Data Documentation

◆ adopt

bool ToolBarConfiguration::Position::adopt {true}

Definition at line 74 of file ToolDock.h.

Referenced by ToolBarConfiguration::Insert(), and ToolDock::PositionBar().

◆ below

ToolBar* ToolBarConfiguration::Position::below {}

◆ rightOf

ToolBar* ToolBarConfiguration::Position::rightOf {}

◆ valid

bool ToolBarConfiguration::Position::valid {true}

Definition at line 75 of file ToolDock.h.


The documentation for this struct was generated from the following file: