44 #ifndef FBUTTONGROUP_H    45 #define FBUTTONGROUP_H    47 #if !defined (USE_FINAL_H) && !defined (COMPILE_FINAL_CUT)    48   #error "Only <final/final.h> can be included directly."    51 #include "final/fwidgetcolors.h"    52 #include "final/widget/fscrollview.h"    75     auto getClassName() 
const -> 
FString override;
    79     auto getCount() 
const -> std::size_t;
    82     void setEnable (
bool = 
true) 
override;
    83     void unsetEnable() 
override;
    84     void setDisable() 
override;
    87     auto isChecked (
int) 
const -> bool;
    88     auto hasFocusedButton() 
const -> bool;
    89     auto hasCheckedButton() 
const -> bool;
    96     void checkScrollSize (
const FRect&);
   106     void draw() 
override;
   110     static constexpr 
auto NOT_SET = 
static_cast<std::size_t
>(-1);
   117     auto directFocusCheckedRadioButton (
FToggleButton*) 
const -> bool;
   118     auto directFocusRadioButton() 
const -> bool;
   121     template <
typename UnaryPredicate>
   130     FObjectList  buttonlist{};
   135 inline auto FButtonGroup::getClassName() 
const -> 
FString   136 { 
return "FButtonGroup"; }
   139 inline void FButtonGroup::unsetEnable()
   140 { setEnable(
false); }
   143 inline void FButtonGroup::setDisable()
   144 { setEnable(
false); }
   147 inline auto FButtonGroup::getCount() 
const -> std::size_t
   148 { 
return buttonlist.size(); }
   153 #endif  // FBUTTONGROUP_H 
Definition: class_template.cpp:25