Gazebo Gui

API Reference

7.2.2

Holds configurations related to a MainWindow. More...

#include <MainWindow.hh>

Public Member Functions

bool IsIgnoring (const std::string &_prop) const
 Get whether a property should be ignored. More...
 
bool MergeFromXML (const std::string &_xml)
 Update this config from an XML string. Only fields present on the XML will be overriden / appended / created. More...
 
std::string XMLString () const
 Return this configuration in XML format as a string. More...
 

Public Attributes

int height {-1}
 Window height in px. More...
 
std::set< std::stringignoredProps
 List of window properties which should be ignored on load. More...
 
std::string materialAccent {""}
 Material accent color. More...
 
std::string materialPrimary {""}
 Material primary color. More...
 
std::string materialTheme {""}
 Material theme (light / dark) More...
 
std::string plugins {""}
 Concatenation of all plugin configurations. More...
 
bool pluginsFromPaths {true}
 True if plugins found in plugin paths should be listed under the Plugins menu. True by default. More...
 
std::string pluginToolBarColorDark {""}
 Plugin toolbar color dark. More...
 
std::string pluginToolBarColorLight {""}
 Plugin toolbar color light. More...
 
std::string pluginToolBarTextColorDark {""}
 Plugin toolbar text color dark. More...
 
std::string pluginToolBarTextColorLight {""}
 Plugin toolbar text color light. More...
 
int posX {-1}
 Window X position in px. More...
 
int posY {-1}
 Window Y position in px. More...
 
bool showDefaultDrawerOpts {true}
 Show the default options of the drawer. More...
 
bool showDrawer {true}
 Show the side drawer. More...
 
bool showPluginMenu {true}
 Show the plugins menu. More...
 
std::vector< std::stringshowPlugins
 List of plugins which should be shown on the list. More...
 
QByteArray state
 Window state (dock configuration) More...
 
std::string toolBarColorDark {""}
 Top toolbar color dark. More...
 
std::string toolBarColorLight {""}
 Top toolbar color light. More...
 
std::string toolBarTextColorDark {""}
 Top toolbar text color dark. More...
 
std::string toolBarTextColorLight {""}
 Top toolbar text color light. More...
 
int width {-1}
 Window width in px. More...
 

Detailed Description

Holds configurations related to a MainWindow.

Member Function Documentation

◆ IsIgnoring()

bool IsIgnoring ( const std::string _prop) const

Get whether a property should be ignored.

Returns
True if it's being ignored

◆ MergeFromXML()

bool MergeFromXML ( const std::string _xml)

Update this config from an XML string. Only fields present on the XML will be overriden / appended / created.

Parameters
[in]_xmlA config XML file in string format
Returns
True if successful. It may fail for example if the string can't be parsed into XML.

◆ XMLString()

std::string XMLString ( ) const

Return this configuration in XML format as a string.

Returns
String containing a complete config file.

Member Data Documentation

◆ height

int height {-1}

Window height in px.

◆ ignoredProps

std::set<std::string> ignoredProps

List of window properties which should be ignored on load.

◆ materialAccent

std::string materialAccent {""}

Material accent color.

◆ materialPrimary

std::string materialPrimary {""}

Material primary color.

◆ materialTheme

std::string materialTheme {""}

Material theme (light / dark)

◆ plugins

std::string plugins {""}

Concatenation of all plugin configurations.

◆ pluginsFromPaths

bool pluginsFromPaths {true}

True if plugins found in plugin paths should be listed under the Plugins menu. True by default.

◆ pluginToolBarColorDark

std::string pluginToolBarColorDark {""}

Plugin toolbar color dark.

◆ pluginToolBarColorLight

std::string pluginToolBarColorLight {""}

Plugin toolbar color light.

◆ pluginToolBarTextColorDark

std::string pluginToolBarTextColorDark {""}

Plugin toolbar text color dark.

◆ pluginToolBarTextColorLight

std::string pluginToolBarTextColorLight {""}

Plugin toolbar text color light.

◆ posX

int posX {-1}

Window X position in px.

◆ posY

int posY {-1}

Window Y position in px.

◆ showDefaultDrawerOpts

bool showDefaultDrawerOpts {true}

Show the default options of the drawer.

◆ showDrawer

bool showDrawer {true}

Show the side drawer.

◆ showPluginMenu

bool showPluginMenu {true}

Show the plugins menu.

◆ showPlugins

std::vector<std::string> showPlugins

List of plugins which should be shown on the list.

◆ state

QByteArray state

Window state (dock configuration)

◆ toolBarColorDark

std::string toolBarColorDark {""}

Top toolbar color dark.

◆ toolBarColorLight

std::string toolBarColorLight {""}

Top toolbar color light.

◆ toolBarTextColorDark

std::string toolBarTextColorDark {""}

Top toolbar text color dark.

◆ toolBarTextColorLight

std::string toolBarTextColorLight {""}

Top toolbar text color light.

◆ width

int width {-1}

Window width in px.


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