| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
Layout managers needs a way to store properties that control the layout
policy of a widget; typically, we used to store these in GtkContainer's
child properties, but since GtkLayoutManager is decoupled from the
actual container widget, we need a separate storage. Additionally, child
properties have their own downsides, like requiring a separate, global
GParamSpecPool storage, and additional lookup API.
GtkLayoutChild is a simple GObject class, which means you can introspect
and document it as you would any other type.
|
|
|
|
|
|
| |
We delegate the size request mode, the measuring, and the allocation of
a widget through a GtkLayoutManager instance, if one has been attached
to the widget; otherwise, we fall back to the widget's own implementation.
|
|
|
|
|
|
|
|
| |
A base abstract class for layout manager delegate objects.
Layout managers are associated to a single widget, like event
controllers, and are responsible for measuring and allocating the
children of the widget they are bound to.
|
|
|
|
|
| |
This was only ever implemented on X11, and is
not something we want to encourage apps to do, ever.
|
|
|
|
|
|
| |
It was unused through all of GTK 3, so it is not worth supporting.
The best Windows themes do not make use of it at all.
|
|
|
|
| |
... and add a property for it.
|
|
|
|
|
| |
Renderers don't need a display until they get realized. And once they
get realized, they can look up the display from the surface.
|
|
|
|
|
| |
This information can be needed in signal handlers,
so make it available.
|
|
|
|
| |
A bunch of API was missing here.
|
|
|
|
|
|
|
|
|
| |
Add a ::show-peek-icon property and show a clickable
icon when it is set. Clicking it toggles the visibility
of the content. The same functionality is also accessible
via a context menu item.
This is a common feature of password entries.
|
|
|
|
|
| |
This commit adds gsk_transform_perspective(), gtk_snapshot_perspective()
and support for perspective() in the CSS syntax.
|
|
|
|
|
|
| |
And use it.
And test it.
|
|
|
|
|
| |
This used to be a good idea back when GskTransform was intended to be
used for transitions, but without it, it's not anymore.
|
|
|
|
| |
Also rename it from GskMatrixCategory to GskTransformCategory.
|
|
|
|
|
| |
It is not interesting to users of GskTransform how it is made up
internally. Users should just use the gsk_transform_to_*() APIs.
|
|
|
|
|
|
|
|
|
|
| |
In particular, add a per-category querying API for the matrix:
- gsk_transform_to_translate()
- gsk_transform_to_affine()
- gsk_transform_to_2d()
- gsk_transform_to_matrix()
This way, code can use the relevant one for the given category.
|
|
|
|
| |
The renaming of the prefix makes this a large patch.
|
|
|
|
| |
Avoid duplicating GtkEditable APIs. Port existing users.
|
|
|
|
|
| |
Additions and correction all over the place,
in GDK and GTK docs.
|
| |
|
|
|
|
| |
Some leftover comments from the drawing model rewrite.
|
|
|
|
|
|
|
|
|
|
| |
Change gdk_surface_get/set_user_data to private
API and rename them to get/set_widget.
Also remove an unused associated function.
The last two places where the surface API is used
are in gtkroot.c and gtkwidget.c. Make them
use the private api.
|
|
|
|
|
| |
Remove references to long-gone API, add some pointers
to more modern alternatives, etc.
|
|\
| |
| |
| |
| | |
doc: Rewrite the drawing model overview
See merge request GNOME/gtk!603
|
| |
| |
| |
| |
| |
| |
| | |
This is a first cut at updating the drawing model chapter
for the way we do things now. It introduces the scene graph and
render nodes, explains node caching and tree diffing, and removes
sections about subwindows.
|
|/
|
|
| |
This is no longer used by GTK.
|
| |
|
|
|
|
|
| |
gtk_overlay_set_overlay_pass_through has been made
redundant by gtk_widget_set_can_pick. Remove it.
|
|
|
|
|
| |
This is a generally useful property to make widgets
'transparent' for input purposes.
|
|
|
|
| |
And don't allow reordering children.
|
|
|
|
| |
:(
|
|
|
|
| |
Otherwise gtk-doc gets confused.
|
|
|
|
| |
This functionality has been removed.
|
| |
|
|
|
|
| |
It's all using transforms now.
|
|
|
|
|
|
|
|
|
| |
Instead of gtk_snapshot_offset(), provide a full set of functions
kept in sync with GtkTransform APIs.
On top of that, add gtk_snapshot_save() and gtk_snapshot_restore()
mirroring cairo_save()/restore() that allow saving a snapshot's
transform state.
|
|
|
|
| |
We use append() functions for everything now, thank you very much.
|
| |
|
|
|
|
| |
This is adding functions for the remaining render nodes.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a new object (well, boxed type, but I'm calling it object) for
dealing with transform in a more constructive way than graphene_matrix_t
by keeping track of how the transform was created.
This way, reasoning about the transform becomes easier, and we can create
better ways to print it or transition from one transform to another one.
An example of this is that while a 0 degree and a 360degree rotation are
both the identity matrix, doing a transition between the two would cause
a rotation.
|
| |
|
|
|
|
| |
Mention child metas of GtkAssistant and GtkNotebook.
|
|
|
|
|
| |
This is purely GtkEntry functionality and should
remain there.
|
|
|
|
| |
It's the replacement for gtk_widget_translate_coordinates()
|
| |
|
|
|
|
|
| |
Not a very exhaustive treatment, but at least it gives
some hints.
|
|
|
|
|
| |
And add a section that explains how to use these
functions when setting up a GtkEditable delegate.
|
|
|
|
|
| |
This is a simple editable which hides the entered
text and shows a caps-lock warning.
|
|
|
|
|
|
|
|
|
|
|
| |
Use a GtkText child, and delegate the editable functionality
to it. Also forward all the properties that are provided by
GtkText.
Some of the more internal APIs, such as layout and im context
access and caps-lock warning, are removed here, but we preserve
most of the plain GtkEntry API by forwarding it to the GtkText
child.
|
|
|
|
|
| |
This is a GtkEntry without any of the extras, such as
icons, completion, progress, caps-lock warning, emoji icon.
|