xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
tick_style.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/ustring.h>
6 
8 namespace xtd {
10  namespace forms {
18  enum class tick_style {
20  none = 0,
22  top_left = 1,
24  bottom_right = 2,
26  both = 3,
27  };
28 
30  inline std::ostream& operator<<(std::ostream& os, tick_style value) {return os << to_string(value, {{tick_style::none, "none"}, {tick_style::top_left, "top_left"}, {tick_style::bottom_right, "bottom_right"}, {tick_style::both, "both"}});}
31  inline std::wostream& operator<<(std::wostream& os, tick_style value) {return os << to_string(value, {{tick_style::none, L"none"}, {tick_style::top_left, L"top_left"}, {tick_style::bottom_right, L"bottom_right"}, {tick_style::both, L"both"}});}
33  }
34 }
std::string to_string(const value_t &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: to_string.h:37
tick_style
Specifies the location of tick marks in a track_bar control.
Definition: tick_style.h:18
@ none
No tick marks appear in the control.
@ top_left
Tick marks are located on the top of a horizontal control or on the left of a vertical control.
@ bottom_right
Tick marks are located on the bottom of a horizontal control or on the right side of a vertical contr...
@ both
Tick marks are located on both sides of the control.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::ustring class.