The Battle for Wesnoth  1.19.5+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 39 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 190 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 44 of file paths.hpp.

Referenced by 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 42 of file paths.hpp.

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

◆ path

std::string desktop::path_info::path

Real path.

Definition at line 46 of file paths.hpp.

Referenced by desktop::operator<<().


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