scorninpc / php-gtk3

GTK3 extension for PHP
https://andor.com.br/
GNU Lesser General Public License v3.0
113 stars 10 forks source link

Pango LayoutLine struct #131

Closed d47081 closed 1 month ago

d47081 commented 1 month ago

I'm working on the new features and stuck with following struct: https://docs.gtk.org/Pango/struct.LayoutLine.html

Where I must to define it - beside other classes at this folder? https://github.com/scorninpc/php-gtk3/tree/master/src/Pango

scorninpc commented 1 month ago

For sure, this is the class PangoLayoutLine, so inside Pango folder

image

Gtk is increasingly decoupling these primitive classes and functions. I didn't plan on converting this type of classes. But it's ok

d47081 commented 1 month ago

Okay, thanks!

scorninpc commented 1 month ago

Wait, you need to see if this struct are usable

Sometimes, this is converted as a simple array on PHP

like

$a = [
'layout' =>$layout,
'length' =>13,
'runs' => [],
'isparagraph_start' => 1
];

like gtktreepath https://github.com/scorninpc/php-gtk3/blob/5992f0119902998a50b7d3ab96c42758092cd48b/src/Gtk/GtkTreeView.cpp#L309

d47081 commented 1 month ago

thanks for example, maybe tomorrow will share current state in PR as lot of dependencies still requires implementation, PangoLayoutLine is just one of them..

d47081 commented 1 month ago

I see this method contain methods, so will create new class anyway