Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

GObject.Object
parent-child marker Gtk.CellAreaContext

Class Gtk.CellAreaContext

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkCellAreaContext
Class : CellAreaContext
Extends: GObject.Object
The GtkCellAreaContext object is created by a given GtkCellArea
implementation via its GtkCellAreaClass.create_context() virtual
method and is used to store cell sizes and alignments for a series of
GtkTreeModel rows that are requested and rendered in the same context.
GtkCellLayout widgets can create any number of contexts in which to
request and render groups of data rows. However its important that the
same context which was used to request sizes for a given GtkTreeModel
row also be used for the same row when calling other GtkCellArea APIs
such as gtk_cell_area_render() and gtk_cell_area_event().
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.CellArea
Method
activate (CellAreaContext context, Widget widget, RectangleInt cell_area, CellRendererState flags, gboolean edit_only) : gboolean
Activates area, usually by activating the currently focused
cell, however some subclasses which embed widgets in the area
can also activate a widget if it currently has the focus.
Gtk.CellArea
Method
copy_context (CellAreaContext context) : Gtk.CellAreaContext
This is sometimes needed for cases where rows need to share
alignments in one orientation but may be separately grouped
in the opposing orientation.
Gtk.CellArea
Method
create_context () : Gtk.CellAreaContext
Creates a GtkCellAreaContext to be used with area for
all purposes.
Gtk.CellArea
Method
event (CellAreaContext context, Widget widget, Event event, RectangleInt cell_area, CellRendererState flags) : gint32
Delegates event handling to a GtkCellArea.
Gtk.CellArea
Method
foreach_alloc (CellAreaContext context, Widget widget, RectangleInt cell_area, RectangleInt background_area, Function callback, void* callback_data) : none
Calls callback for every GtkCellRenderer in area with the
allocated rectangle inside cell_area.
Gtk.CellArea
Method
get_cell_allocation (CellAreaContext context, Widget widget, CellRenderer renderer, RectangleInt cell_area) : cairo.RectangleInt
Derives the allocation of renderer inside area if area
were to be renderered in cell_area.
Gtk.CellArea
Method
get_cell_at_position (CellAreaContext context, Widget widget, RectangleInt cell_area, gint32 x, gint32 y, Object out_values) : Gtk.CellRenderer
Gets the GtkCellRenderer at x and y coordinates inside area and optionally
returns the full cell allocation for it inside cell_area.
Gtk.CellArea
Method
get_preferred_height (CellAreaContext context, Widget widget) : Object
Retrieves a cell area's initial minimum and natural height.
Gtk.CellArea
Method
get_preferred_height_for_width (CellAreaContext context, Widget widget, gint32 width) : Object
Retrieves a cell area's minimum and natural height if it would be given
the specified width.
Gtk.CellArea
Method
get_preferred_width (CellAreaContext context, Widget widget) : Object
Retrieves a cell area's initial minimum and natural width.
Gtk.CellArea
Method
get_preferred_width_for_height (CellAreaContext context, Widget widget, gint32 height) : Object
Retrieves a cell area's minimum and natural width if it would be given
the specified height.
Gtk.CellArea
Method
render (CellAreaContext context, Widget widget, Context cr, RectangleInt background_area, RectangleInt cell_area, CellRendererState flags, gboolean paint_focus) : none
Renders area's cells according to area's layout onto widget at
the given coordinates.
Gtk.CellView
Property
cell_area_context : Gtk.CellAreaContext
The GtkCellAreaContext used to compute the geometry of the cell view.
Gtk.CellView
Method
new Gtk.CellView.with_context (CellArea area, CellAreaContext context) : Gtk.Widget
Create a new Gtk.CellView
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:12:13 GMT+0800 (HKT)