MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / get_transform_from_string

Function get_transform_from_string

src/core/output-layout.cpp:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99};
100
101static wl_output_transform get_transform_from_string(std::string transform)
102{
103 auto it = output_transforms.find(transform);
104 if (it != output_transforms.end())
105 {
106 return it->second;
107 }
108
109 LOGE("Bad output transform in config: ", transform);
110 return WL_OUTPUT_TRANSFORM_NORMAL;
111}
112
113static std::string wl_transform_to_string(wl_output_transform transform)
114{

Callers 1

load_configured_stateMethod · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected