52 #ifndef __PCL_FontComboBox_h
53 #define __PCL_FontComboBox_h
57 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
130 return pcl::Font( CurrentFontFace(), size );
160 SetCurrentFont( font.
Face() );
268 AddWritingSystem(
"Latin" );
279 RemoveWritingSystem(
"Latin" );
292 AddWritingSystem(
"Greek" );
303 RemoveWritingSystem(
"Greek" );
368 Control* onFontSelectedReceiver =
nullptr;
371 Control* onFontHighlightedReceiver =
nullptr;
373 EventHandlers() =
default;
374 EventHandlers(
const EventHandlers& ) =
default;
375 EventHandlers& operator =(
const EventHandlers& ) =
default;
380 void ItemSelected(
ComboBox&,
int );
381 void ItemHighlighted(
ComboBox&,
int );
Client-side interface to a PixInsight ComboBox control.
Client-side interface to a PixInsight Control object.
A ComboBox descendant class to select font faces.
void RemoveScalableFonts()
void RemoveFixedPitchFonts()
void RemoveWritingSystem(const String &writingSystem)
void SetCurrentFont(const String &face)
String CurrentFontFace() const
void SetCurrentFont(const pcl::Font &font)
void AddWritingSystem(const String &writingSystem)
FontComboBox(Control &parent=Control::Null())
void RemoveStandardFontFamilies()
void AddFixedPitchFonts()
void AddStandardFontFamilies()
pcl::Font CurrentFont(double size=12.0) const
Client-side interface to a PixInsight Font object.
void(Control::*)(FontComboBox &sender, const String &font) font_event_handler
void OnFontHighlighted(font_event_handler handler, Control &receiver)
void OnFontSelected(font_event_handler handler, Control &receiver)