The Battle for Wesnoth  1.17.0-dev
Public Member Functions | Public Attributes | List of all members
desktop::path_info Struct Reference

#include <paths.hpp>

Public Member Functions

std::string display_name () const
 Formats this path for UI display. More...
 

Public Attributes

t_string name
 Path name or drive letter/mount point path; may be a translatable string if it's a game resources path. More...
 
std::string label
 System-defined label, if the path is a drive or mount point. More...
 
std::string path
 Real path. More...
 

Detailed Description

Definition at line 38 of file paths.hpp.

Member Function Documentation

◆ display_name()

std::string desktop::path_info::display_name ( ) const

Formats this path for UI display.

Definition at line 181 of file paths.cpp.

References label, and name.

Member Data Documentation

◆ label

std::string desktop::path_info::label

System-defined label, if the path is a drive or mount point.

Definition at line 43 of file paths.hpp.

Referenced by desktop::add_user_bookmark(), display_name(), and desktop::operator<<().

◆ name

t_string desktop::path_info::name

Path name or drive letter/mount point path; may be a translatable string if it's a game resources path.

Definition at line 41 of file paths.hpp.

Referenced by display_name(), and desktop::operator<<().

◆ path

std::string desktop::path_info::path

Real path.

Definition at line 45 of file paths.hpp.

Referenced by desktop::add_user_bookmark(), and desktop::operator<<().


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