LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Benjamin Smith Date: Fri Jun 13 15:48:42 2008 Subject: Redefining base class functions?
Is there a way (PHP-GTK1) to redefine a base class method? Specifically, I
need to change set_usize() so that the values for X and Y can be
recalculated. The function I'm envisioning might look like:
define('SIZEMULTIPLIER', 1.5);
... snip ...
function set_usize($x, $y)
{
return
parent::set_usize(round($x * SIZEMULTIPLIER), round($y * SIZEMULTIPLIER));
}
So far, I'm drawing blanks. Is this possible? Any ideas?
Thanks,
Ben
--
Only those who reach toward a goal are likely to achieve it.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
| Navigate in group php.gtk.general at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |