ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.13 by elmex, Fri Apr 7 20:57:29 2006 UTC vs.
Revision 1.14 by root, Fri Apr 7 21:07:29 2006 UTC

28 sort { $a->{z} <=> $b->{z} } 28 sort { $a->{z} <=> $b->{z} }
29 grep { $_ != $_[0] } 29 grep { $_ != $_[0] }
30 @ACTIVE_WIDGETS; 30 @ACTIVE_WIDGETS;
31} 31}
32 32
33sub size_request {
34 die "size_request is abtract";
35}
36
33sub focus_in { 37sub focus_in {
34 my ($widget) = @_; 38 my ($widget) = @_;
35 $FOCUS = $widget; 39 $FOCUS = $widget;
36} 40}
37 41
88 my $self = $class->SUPER::new (x => $x, y => $y, z => $z); 92 my $self = $class->SUPER::new (x => $x, y => $y, z => $z);
89 93
90 $self->{texture} = new_from_ttf Crossfire::Client::Texture $ttf, $text; 94 $self->{texture} = new_from_ttf Crossfire::Client::Texture $ttf, $text;
91 95
92 $self 96 $self
97}
98
99sub size_request {
100 my ($self) = @_;
101
102 (
103 $self->{texture}{width},
104 $self->{texture}{height},
105 )
93} 106}
94 107
95sub _draw { 108sub _draw {
96 my ($self) = @_; 109 my ($self) = @_;
97 110

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines