| 1 | package LibUI::FontButton 0.01 { | ||
| 2 | 1 | ▶ | use 5.008001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Affix; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use parent 'LibUI::Control'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | use LibUI::FontDescriptor; | ||
| 8 | # | ||
| 9 | affix( LibUI::lib(), 'uiNewFontButton', [Void] => InstanceOf ['LibUI::FontButton'], 'new' ); | ||
| 10 | |||
| 11 | sub font($) { | ||
| 12 | CORE::state $affix //= wrap( LibUI::lib(), 'uiFontButtonFont', | ||
| 13 | [ InstanceOf ['LibUI::FontButton'], Pointer [LibUI::FontDescriptor] ] => Void, ); | ||
| 14 | my $desc; | ||
| 15 | $affix->( shift, $desc ); | ||
| 16 | return $desc; | ||
| 17 | } | ||
| 18 | affix( | ||
| 19 | LibUI::lib(), | ||
| 20 | 'uiFontButtonOnChanged', | ||
| 21 | [ InstanceOf ['LibUI::FontButton'], | ||
| 22 | CodeRef [ [ InstanceOf ['LibUI::FontButton'], Any ] => Void ], Any | ||
| 23 | ] => Void, | ||
| 24 | 'onChanged' | ||
| 25 | ); | ||
| 26 | affix( | ||
| 27 | LibUI::lib(), 'uiFreeFontButtonFont', [ Pointer [LibUI::FontDescriptor] ] => Void, | ||
| 28 | 'freeFont' | ||
| 29 | ); | ||
| 30 | }; | ||
| 31 | 1; | ||
| 32 | # | ||
| 33 | __END__ | ||