… | |
… | |
1618 | #active_bg => none |
1618 | #active_bg => none |
1619 | #font => default_font |
1619 | #font => default_font |
1620 | #text => initial text |
1620 | #text => initial text |
1621 | #markup => initial narkup |
1621 | #markup => initial narkup |
1622 | #max_w => maximum pixel width |
1622 | #max_w => maximum pixel width |
|
|
1623 | #style => 0, # render flags |
1623 | ellipsise => 3, # end |
1624 | ellipsise => 3, # end |
1624 | layout => (new CFPlus::Layout), |
1625 | layout => (new CFPlus::Layout), |
1625 | fontsize => 1, |
1626 | fontsize => 1, |
1626 | align => -1, |
1627 | align => -1, |
1627 | valign => -1, |
1628 | valign => -1, |
… | |
… | |
1778 | }; |
1779 | }; |
1779 | |
1780 | |
1780 | my $w = List::Util::min $self->{w} + 4, $size->[0]; |
1781 | my $w = List::Util::min $self->{w} + 4, $size->[0]; |
1781 | my $h = List::Util::min $self->{h} + 2, $size->[1]; |
1782 | my $h = List::Util::min $self->{h} + 2, $size->[1]; |
1782 | |
1783 | |
1783 | $self->{layout}->render ($self->{ox}, $self->{oy}); |
1784 | $self->{layout}->render ($self->{ox}, $self->{oy}, $self->{style}); |
1784 | } |
1785 | } |
1785 | |
1786 | |
1786 | ############################################################################# |
1787 | ############################################################################# |
1787 | |
1788 | |
1788 | package CFPlus::UI::EntryBase; |
1789 | package CFPlus::UI::EntryBase; |
… | |
… | |
2997 | |
2998 | |
2998 | $self->add (new CFPlus::UI::Label |
2999 | $self->add (new CFPlus::UI::Label |
2999 | markup => $tooltip, |
3000 | markup => $tooltip, |
3000 | max_w => ($widget->{tooltip_width} || 0.25) * $::WIDTH, |
3001 | max_w => ($widget->{tooltip_width} || 0.25) * $::WIDTH, |
3001 | fontsize => 0.8, |
3002 | fontsize => 0.8, |
3002 | fg => [0, 0, 0, 1], |
3003 | style => 1, # FLAG_INVERSE |
3003 | ellipsise => 0, |
3004 | ellipsise => 0, |
3004 | font => ($widget->{tooltip_font} || $::FONT_PROP), |
3005 | font => ($widget->{tooltip_font} || $::FONT_PROP), |
3005 | ); |
3006 | ); |
3006 | } |
3007 | } |
3007 | |
3008 | |