51 #if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT) 52 #error "Only <final/final.h> can be included directly." 55 #include "final/widget/ftogglebutton.h" 75 auto getClassName()
const ->
FString override;
78 void setText (
const FString&)
override;
87 auto isMonoFocus()
const -> bool;
91 void drawCheckButton();
93 void SetStyleForOn()
const;
94 void SetStyleForOff()
const;
95 auto createOnText()
const ->
FString;
96 auto createOffText()
const ->
FString;
99 std::size_t switch_offset_pos{0};
100 bool button_pressed{
false};
105 inline auto FSwitch::getClassName()
const ->
FString 106 {
return "FSwitch"; }
Definition: class_template.cpp:25