GObject.Object
GObject.InitiallyUnowned
Gtk.CellArea
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkCellArea |
Class : | CellArea |
Implements: | Gtk.Buildable, Gtk.CellLayout |
Extends: | GObject.InitiallyUnowned |
Properties | Defined By | |
---|---|---|
edit_widget : Gtk.CellEditable
read only
The widget currently editing the edited cell
This property is read-only and only changes as a result of a call gtk_cell_area_activate_cell(). The widget currently editing the edited cell
This property is read-only and only changes as a result of a call gtk_cell_area_activate_cell(). |
Gtk.CellArea | |
edited_cell : Gtk.CellRenderer
read only
The cell in the area that is currently edited
This property is read-only and only changes as a result of a call gtk_cell_area_activate_cell(). The cell in the area that is currently edited
This property is read-only and only changes as a result of a call gtk_cell_area_activate_cell(). |
Gtk.CellArea | |
focus_cell : Gtk.CellRenderer
The cell in the area that currently has focus
The cell in the area that currently has focus
|
Gtk.CellArea | |
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
parent_instance : GObject.InitiallyUnowned
read only
|
Gtk.CellArea | |
priv : Gtk.CellAreaPrivate
read only
|
Gtk.CellArea | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.CellArea
(Object properties)
Create a new Gtk.CellArea
Create a new Gtk.CellArea
|
||
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.
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 | |
activate_cell
(Widget widget, CellRenderer renderer, Event event, RectangleInt cell_area, CellRendererState flags)
:
gboolean
This is used by GtkCellArea subclasses when handling events
to activate cells, the base GtkCellArea class activates cells for keyboard events for free in its own GtkCellArea->activate() implementation.
This is used by GtkCellArea subclasses when handling events
to activate cells, the base GtkCellArea class activates cells for keyboard events for free in its own GtkCellArea->activate() implementation.
|
Gtk.CellArea | |
add
(CellRenderer renderer)
:
none
Adds renderer to area with the default child cell properties.
Adds renderer to area with the default child cell properties.
|
Gtk.CellArea | |
Adds an attribute mapping to the list in cell_layout.
Adds an attribute mapping to the list in cell_layout.
The column is the column of the model to get a value from, and the example if column 2 of the model contains strings, you could have the "text" attribute of a GtkCellRendererText get its values from column 2.
|
Gtk.CellLayout | |
Adds a child to buildable.
Adds a child to buildable. type is an optional string
describing how the child should be added.
|
Gtk.Buildable | |
add_focus_sibling
(CellRenderer renderer, CellRenderer sibling)
:
none
Adds sibling to renderer's focusable area, focus will be drawn
around renderer and all of its siblings if renderer can focus for a given row.
Adds sibling to renderer's focusable area, focus will be drawn
around renderer and all of its siblings if renderer can focus for a given row. Events handled by focus siblings can also activate the given focusable renderer.
|
Gtk.CellArea | |
apply_attributes
(TreeModel tree_model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
Applies any connected attributes to the renderers in
Applies any connected attributes to the renderers in
|
Gtk.CellArea | |
Connects an attribute to apply values from column for the
GtkTreeModel in use.
Connects an attribute to apply values from column for the
GtkTreeModel in use.
|
Gtk.CellArea | |
attribute_disconnect
(CellRenderer renderer, String attribute)
:
none
Disconnects attribute for the renderer in area so that
attribute will no longer be updated with values from the model.
Disconnects attribute for the renderer in area so that
attribute will no longer be updated with values from the model.
|
Gtk.CellArea | |
Gets the value of a cell property for renderer in area.
Gets the value of a cell property for renderer in area.
|
Gtk.CellArea | |
Sets a cell property for renderer in area.
Sets a cell property for renderer in area.
|
Gtk.CellArea | |
clear
()
:
none
Unsets all the mappings on all renderers on cell_layout and
removes all renderers from cell_layout.
Unsets all the mappings on all renderers on cell_layout and
removes all renderers from cell_layout.
|
Gtk.CellLayout | |
clear_attributes
(CellRenderer cell)
:
none
Clears all existing attributes previously set with
gtk_cell_layout_set_attributes().
Clears all existing attributes previously set with
gtk_cell_layout_set_attributes().
|
Gtk.CellLayout | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name.
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
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.
This is sometimes needed for cases where rows need to share
alignments in one orientation but may be separately grouped in the opposing orientation. For instance, GtkIconView creates all icons (rows) to have the same width and the cells theirin to have the same horizontal alignments. However each row of icons may have a separate collective height. GtkIconView uses this to request the heights of each row based on a context which was already used to request all the row widths that are to be displayed.
|
Gtk.CellArea | |
create_context
()
:
Gtk.CellAreaContext
Creates a GtkCellAreaContext to be used with area for
all purposes.
Creates a GtkCellAreaContext to be used with area for
all purposes. GtkCellAreaContext stores geometry information for rows for which it was operated on, it is important to use the same context for the same row of data at all times (i.e. one should render and handle events with the same GtkCellAreaContext which was used to request the size of those rows of data).
|
Gtk.CellArea | |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by
the buildable.
This is called at the end of each custom element handled by
the buildable.
|
Gtk.Buildable | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
event
(CellAreaContext context, Widget widget, Event event, RectangleInt cell_area, CellRendererState flags)
:
gint32
Delegates event handling to a GtkCellArea.
Delegates event handling to a GtkCellArea.
|
Gtk.CellArea | |
focus
(DirectionType direction)
:
gboolean
This should be called by the area's owning layout widget
when focus is to be passed to area, or moved within area for a given direction and row data.
This should be called by the area's owning layout widget
when focus is to be passed to area, or moved within area for a given direction and row data. Implementing GtkCellArea classes should implement this method to receive and navigate focus in its own way particular to how it lays out cells.
|
Gtk.CellArea | |
Calls callback for every GtkCellRenderer in area.
Calls callback for every GtkCellRenderer in area.
|
Gtk.CellArea | |
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.
Calls callback for every GtkCellRenderer in area with the
allocated rectangle inside cell_area.
|
Gtk.CellArea | |
get_area
()
:
Gtk.CellArea
Returns the underlying GtkCellArea which might be cell_layout
if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout.
Returns the underlying GtkCellArea which might be cell_layout
if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout.
|
Gtk.CellLayout | |
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.
Derives the allocation of renderer inside area if area
were to be renderered in cell_area.
|
Gtk.CellArea | |
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.
Gets the GtkCellRenderer at x and y coordinates inside area and optionally
returns the full cell allocation for it inside cell_area.
|
Gtk.CellArea | |
get_cells
()
:
Array
Returns the cell renderers which have been added to cell_layout.
Returns the cell renderers which have been added to cell_layout.
a list of cell renderers. The list, but not the renderers has been newly allocated and should be freed with g_list_free() when no longer needed.
|
Gtk.CellLayout | |
get_current_path_string
()
:
String
Gets the current GtkTreePath string for the currently
applied GtkTreeIter, this is implicitly updated when gtk_cell_area_apply_attributes() is called and can be used to interact with renderers from GtkCellArea subclasses.
Gets the current GtkTreePath string for the currently
applied GtkTreeIter, this is implicitly updated when gtk_cell_area_apply_attributes() is called and can be used to interact with renderers from GtkCellArea subclasses. attributes applied to area. This string belongs to the area and should not be freed.
|
Gtk.CellArea | |
get_edit_widget
()
:
Gtk.CellEditable
Gets the GtkCellEditable widget currently used
to edit the currently edited cell.
Gets the GtkCellEditable widget currently used
to edit the currently edited cell.
|
Gtk.CellArea | |
get_edited_cell
()
:
Gtk.CellRenderer
Gets the GtkCellRenderer in area that is currently
being edited.
Gets the GtkCellRenderer in area that is currently
being edited.
|
Gtk.CellArea | |
get_focus_cell
()
:
Gtk.CellRenderer
Retrieves the currently focused cell for area
Retrieves the currently focused cell for area
|
Gtk.CellArea | |
get_focus_from_sibling
(CellRenderer renderer)
:
Gtk.CellRenderer
Gets the GtkCellRenderer which is expected to be focusable
for which renderer is, or may be a sibling.
Gets the GtkCellRenderer which is expected to be focusable
for which renderer is, or may be a sibling. This is handy for GtkCellArea subclasses when handling events, after determining the renderer at the event location it can then chose to activate the focus cell for which the event cell may have been a sibling. is a sibling, or NULL.
|
Gtk.CellArea | |
get_focus_siblings
(CellRenderer renderer)
:
Array
Gets the focus sibling cell renderers for renderer.
Gets the focus sibling cell renderers for renderer.
The returned list is internal and should not be freed.
|
Gtk.CellArea | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_name
()
:
String
Gets the name of the buildable object.
Gets the name of the buildable object.
GtkBuilder sets the name based on the the GtkBuilder UI definition used to construct the buildable.
|
Gtk.Buildable | |
Retrieves a cell area's initial minimum and natural height.
Retrieves a cell area's initial minimum and natural height.
when requesting sizes over an arbitrary number of rows, its not important to check the minimum_height and natural_height of this call but rather to consult gtk_cell_area_context_get_preferred_height() after a series of requests.
|
Gtk.CellArea | |
Retrieves a cell area's minimum and natural height if it would be given
the specified width.
Retrieves a cell area's minimum and natural height if it would be given
the specified width. while calling gtk_cell_area_get_preferred_width(). It's important to perform a series of gtk_cell_area_get_preferred_width() requests with on each cell area individually to get the height for width of each fully requested row. If at some point, the width of a single row changes, it should be requested with gtk_cell_area_get_preferred_width() again and then the full width of the requested rows checked again with gtk_cell_area_context_get_preferred_width().
|
Gtk.CellArea | |
Retrieves a cell area's initial minimum and natural width.
Retrieves a cell area's initial minimum and natural width.
when requesting sizes over an arbitrary number of rows, its not important to check the minimum_width and natural_width of this call but rather to consult gtk_cell_area_context_get_preferred_width() after a series of requests.
|
Gtk.CellArea | |
Retrieves a cell area's minimum and natural width if it would be given
the specified height.
Retrieves a cell area's minimum and natural width if it would be given
the specified height. while calling gtk_cell_area_get_preferred_height(). It's important to perform a series of gtk_cell_area_get_preferred_height() requests with on each cell area individually to get the height for width of each fully requested row. If at some point, the height of a single row changes, it should be requested with gtk_cell_area_get_preferred_height() again and then the full height of the requested rows checked again with gtk_cell_area_context_get_preferred_height().
|
Gtk.CellArea | |
get_request_mode
()
:
Gtk.SizeRequestMode
Gets whether the area prefers a height-for-width layout
or a width-for-height layout.
Gets whether the area prefers a height-for-width layout
or a width-for-height layout.
|
Gtk.CellArea | |
has_renderer
(CellRenderer renderer)
:
gboolean
Checks if area contains renderer.
Checks if area contains renderer.
|
Gtk.CellArea | |
This is a convenience function for GtkCellArea implementations
to get the inner area where a given GtkCellRenderer will be rendered.
This is a convenience function for GtkCellArea implementations
to get the inner area where a given GtkCellRenderer will be rendered. It removes any padding previously added by gtk_cell_area_request_renderer().
|
Gtk.CellArea | |
is_activatable
()
:
gboolean
Returns whether the area can do anything when activated,
after applying new attributes to area.
Returns whether the area can do anything when activated,
after applying new attributes to area.
|
Gtk.CellArea | |
Returns whether sibling is one of renderer's focus siblings
(see gtk_cell_area_add_focus_sibling()).
Returns whether sibling is one of renderer's focus siblings
(see gtk_cell_area_add_focus_sibling()).
|
Gtk.CellArea | |
pack_end
(CellRenderer cell, gboolean expand)
:
none
Adds the cell to the end of cell_layout.
Adds the cell to the end of cell_layout. If expand is FALSE, then the
divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported.
|
Gtk.CellLayout | |
pack_start
(CellRenderer cell, gboolean expand)
:
none
Packs the cell into the beginning of cell_layout.
Packs the cell into the beginning of cell_layout. If expand is FALSE,
then the cell is allocated no more space than it needs. Any unused space is divided evenly between cells for which expand is TRUE. Note that reusing the same cell renderer is not supported.
|
Gtk.CellLayout | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition.
Called when the builder finishes the parsing of a
GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
remove
(CellRenderer renderer)
:
none
Removes renderer from area.
Removes renderer from area.
|
Gtk.CellArea | |
remove_focus_sibling
(CellRenderer renderer, CellRenderer sibling)
:
none
Removes sibling from renderer's focus sibling list
(see gtk_cell_area_add_focus_sibling()).
Removes sibling from renderer's focus sibling list
(see gtk_cell_area_add_focus_sibling()).
|
Gtk.CellArea | |
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.
Renders area's cells according to area's layout onto widget at
the given coordinates.
|
Gtk.CellArea | |
reorder
(CellRenderer cell, gint32 position)
:
none
Re-inserts cell at position.
Re-inserts cell at position.
Note that cell has already to be packed into cell_layout for this to function properly.
|
Gtk.CellLayout | |
request_renderer
(CellRenderer renderer, Orientation orientation, Widget widget, gint32 for_size)
:
Object
This is a convenience function for GtkCellArea implementations
to request size for cell renderers.
This is a convenience function for GtkCellArea implementations
to request size for cell renderers. It's important to use this function to request size and then use gtk_cell_area_inner_cell_area() at render and event time since this function will add padding around the cell for focus painting.
|
Gtk.CellArea | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
Sets the GtkCellLayoutDataFunc to use for cell_layout.
Sets the GtkCellLayoutDataFunc to use for cell_layout.
This function is used instead of the standard attributes mapping for setting the column value, and should set the value of cell_layout's cell renderer(s) as appropriate.
|
Gtk.CellLayout | |
set_focus_cell
(CellRenderer renderer)
:
none
Explicitly sets the currently focused cell to renderer.
Explicitly sets the currently focused cell to renderer.
This is generally called by implementations of GtkCellAreaClass.focus() or GtkCellAreaClass.event(), however it can also be used to implement functions such as gtk_tree_view_set_cursor_on_cell().
|
Gtk.CellArea | |
set_name
(String name)
:
none
Sets the name of the buildable object.
Sets the name of the buildable object.
|
Gtk.Buildable | |
stop_editing
(gboolean canceled)
:
none
Explicitly stops the editing of the currently
edited cell (see gtk_cell_area_get_edited_cell()).
Explicitly stops the editing of the currently
edited cell (see gtk_cell_area_get_edited_cell()). If canceled is TRUE, the cell renderer will emit the ::editing-canceled signal.
|
Gtk.CellArea |
Event | Defined By | |
---|---|---|
apply_attributes (CellArea self, TreeModel model, TreeIter iter, gboolean is_expander, gboolean is_expanded)
:
none
This signal is emitted whenever applying attributes to area from model
This signal is emitted whenever applying attributes to area from model
|
Gtk.CellArea | |
Indicates that focus changed on this area.
Indicates that focus changed on this area. This signal
is emitted either as a result of focus handling or event handling. It's possible that the signal is emitted even if the currently focused renderer did not change, this is because focus may change to the same renderer in the same cell area for a different row of data.
|
Gtk.CellArea | |
Indicates that editing finished on renderer and that editable
should be removed from the owning cell-layouting widget.
Indicates that editing finished on renderer and that editable
should be removed from the owning cell-layouting widget.
|
Gtk.CellArea |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.CellAreaContext
Property |
area : Gtk.CellArea
The GtkCellArea this context was created by
|
Gtk.CellAreaContext
Method |
get_area
()
:
Gtk.CellArea
Fetches the GtkCellArea this context was created by.
|
Gtk.CellLayout
Method |
get_area
()
:
Gtk.CellArea
Returns the underlying GtkCellArea which might be cell_layout
if called on a GtkCellArea or might be NULL if no GtkCellArea is used by cell_layout. |
Gtk.CellView
Property |
cell_area : Gtk.CellArea
The GtkCellArea rendering cells
If no area is specified when creating the cell view with gtk_cell_view_new_with_context() a horizontally oriented GtkCellAreaBox will be used. |
Gtk.CellView
Method |
Create a new Gtk.CellView
|
Gtk.ComboBox
Property |
cell_area : Gtk.CellArea
The GtkCellArea used to layout cell renderers for this combo box.
|
Gtk.ComboBox
Method |
Create a new Gtk.ComboBox
|
Gtk.ComboBox
Method |
Create a new Gtk.ComboBox
|
Gtk.EntryCompletion
Property |
cell_area : Gtk.CellArea
The GtkCellArea used to layout cell renderers in the treeview column.
|
Gtk.EntryCompletion
Method |
Create a new Gtk.EntryCompletion
|
Gtk.IconView
Property |
cell_area : Gtk.CellArea
The GtkCellArea used to layout cell renderers for this view.
|
Gtk.IconView
Method |
Create a new Gtk.IconView
|
Gtk.TreeViewColumn
Property |
cell_area : Gtk.CellArea
The GtkCellArea used to layout cell renderers for this column.
|
Gtk.TreeViewColumn
Method |
Create a new Gtk.TreeViewColumn
|