summaryrefslogtreecommitdiff
path: root/gtk/gtkcellarea.h
Commit message (Collapse)AuthorAgeFilesLines
* The big versioning cleanupMatthias Clasen2018-02-061-2/+2
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* cellrenderer: Move snapshotting down into cell renderersBenjamin Otte2016-12-231-12/+3
| | | | | | Now that every call to GtkCellArea is a snapshot call and no more cairo calls are left, move the actual differentiation between Cairo and Snapshot down to the cell renderer.
* cellview: Implement snapshot()Benjamin Otte2016-12-201-0/+9
| | | | This also adds gtk_cell_area_snapshot().
* GtkCellArea: allow finding attributes at runtimeMatthias Clasen2014-05-081-0/+5
| | | | | | This will allow e.g. GtkInspector to display attribute mappings. http://bugzilla.gnome.org/show_bug.cgi?id=729817
* docs: Another round of markup removalMatthias Clasen2014-03-291-2/+2
|
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-2/+2
| | | | Instead of Return value:
* docs: use proper apostropheWilliam Jon McCann2014-02-071-1/+1
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* docs: don't try to link to vfuncsWilliam Jon McCann2014-01-211-2/+2
|
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+47
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-2/+2
|
* Make GtkCellArea use GtkStyleContextCarlos Garnacho2011-01-271-4/+0
| | | | | | gtk_cell_area_[gs]et_style_detail() is no longer needed, as the passed widget's context would already have all necessary info.
* [GI] Mark callbacks' context parameter with (closure) annotation.Pavel Holejsovsky2011-01-181-2/+2
|
* Fixed gtk_cell_layout_set_cell_data_func() to pass the correct layout objectTristan Van Berkom2010-12-221-0/+13
| | | | | | Added _gtk_cell_area_set_cell_data_func_with_proxy() to be called by gtk_cell_layout_set_cell_data_func() when the layouting object itself is not the underlying cell area.
* Trivial changesMatthias Clasen2010-12-171-231/+243
| | | | Whitespace fixes, comment formatting, etc
* Fixed parameter names in gtkcellarea.h for gtk-doc parsing.Tristan Van Berkom2010-12-171-4/+4
|
* Updated some docs and gtk.symbols file for new apisTristan Van Berkom2010-12-131-0/+2
| | | | | | Added gtk_cell_area_context_get_preferred_height_for_width and width_for_height & gtk_cell_area_copy_context() to gtk.symbols and gtk3-sections.txt (also finished up documenting those apis).
* Added apis to GtkCellArea for GtkIconView purposes.Tristan Van Berkom2010-12-131-0/+4
| | | | | | | | | | | | | | | | Added a few apis, - GtkCellAreaContext get_preferred_height_for_width & width for height apis and vfuncs, this lets the icon view request the collective (and aligned) height for width for a said row. - gtk_cell_area_copy_context() this creates a duplicate of an already created and requested context, this way the icon view uses a global context to request the widths of all rows and then makes a copy with all the stored alignments and uses a separate copy to calculate the height and alignments of each row separately.
* Added "edit_only" argument to gtk_cell_area_activate()Tristan Van Berkom2010-12-121-2/+4
| | | | | | | | | | | This argument allows the caller to specify that only an editable cell should start editing but an activatable cell should not toggle it's state, this is important for public apis like gtk_tree_view_set_cursor_on_cell() which are only intended to programatically bring attention to the editing of a specific row or cell but not actually change any data. GtkTreeView & CellAreaScaffold updated for the last minute api change.
* Added 'background_area' calculation to GtkCellAreaClass->foreach_alloc vfuncTristan Van Berkom2010-12-081-1/+5
| | | | | | | This allows us to reduce code allocation code paths in subclasses, as a result GtkCellArea implements the ->render() vfunc and the subclass only decides the cell area and background area distributions in a single code path.
* Fixed gtk-doc statement in GtkCellArea headerTristan Van Berkom2010-12-061-1/+1
|
* Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclassesTristan Van Berkom2010-12-061-8/+40
| | | | | | | | | | | | gtk_cell_area_foreach_alloc() itterates over an allocated list of cells and calls a callback with the cell's allocation until the callback returns TRUE. - Removed vfunc get_cell_allocation() and implemented gtk_cell_area_get_cell_allocation() using foreach_alloc() - Added gtk_cell_area_get_cell_at_position() using foreach_alloc() - Removed GtkCellAreaBox ->event() implementation and implemented mouse "click" cell activation in GtkCellArea class directly using gtk_cell_area_get_cell_at_position().
* Changed gtk_cell_area_forall to gtk_cell_area_foreach since thats more ↵Tristan Van Berkom2010-12-061-7/+9
| | | | | | widely used semantics. Also gave a boolean return value to the callback to allow breaking out of the loop.
* Changed GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID for ↵Tristan Van Berkom2010-12-041-4/+13
| | | | GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID
* Marking GtkCellArea structure portions as /*< private >*/Tristan Van Berkom2010-12-031-0/+1
|
* Adding more documentation to GtkCellArea, documented GtkCellAreaClass structure.Tristan Van Berkom2010-12-031-2/+62
|
* Changed cell area/renderer "can_focus" semantics to "is_activatable" across ↵Tristan Van Berkom2010-11-291-4/+4
| | | | | | | | the board. This is because focus in treeviews can be given to cells that cannot do anything with activation (for better keynav), so we dissociate the concept of cell activation and focusing.
* Added gtk_cell_renderer_get_aligned_area() and class vfunc.Tristan Van Berkom2010-11-251-8/+0
| | | | | | | | | | | | | Since a cell renderer might use more space than the natural size when recieving expand space it's impossible to know how much space is actually used to render content. Adding this virtual method to allow text renderers to implement it, the base default method uses height-for-width apis and aligns the cell assuming the renderer uses a fixed size. This commit removes the similar code from gtkcellarea and subclasses.
* Added GtkCellAreaClass->apply_attributes()Tristan Van Berkom2010-11-231-0/+5
| | | | | | | | Made gtk_cell_area_apply_attributes use a vfunc & signal so that subclasses might do specialized things picking up attributes from the model possibly for embedding widgets, and as specially for GtkTreeMenu to connect to the signal and synchronize the menu sensitivity states in a more convenient way than going through the GtkCellLayoutDataFunc.
* Removed cell margin apis and now deal with "focus-line-width".Tristan Van Berkom2010-11-231-14/+1
|
* More documentation in gtkcellarea.cTristan Van Berkom2010-11-151-4/+4
|
* Cleaned up cell editing api in GtkCellAreaTristan Van Berkom2010-11-141-4/+0
| | | | | | Now layouting widgets need only concern themselves with the "add-editable" and "remove-editable" signals, also added lots of gtk-doc comments.
* Mass rename GtkCellAreaIter --> GtkCellAreaContextTristan Van Berkom2010-11-131-19/+19
|
* Ironed out the kinks in editing apis for GtkCellAreaTristan Van Berkom2010-11-121-1/+9
| | | | | | | | | | | | | | - Added gtk_cell_area_aligned_cell_area() to get the aligned internal area use by a cell (for focus painting and for event areas). - Provide the event area in "editing-started" signal - Fire "remove-editable" when editing is canceled by the user, an implementing layouting widget need only catch "editing-started" and "remove-editable" now. - CellAreaScaffold/testcellarea now edit textrenderers.
* Distribute portions of GtkCellArea:render() background_area argument to cellsTristan Van Berkom2010-11-121-162/+165
| | | | | Also added gtk_cell_area_get/set_style_detail() to set the string to be used by the area in gtk_paint_* functions.
* Added event handling to GtkCellAreaBoxTristan Van Berkom2010-11-111-1/+2
| | | | | | | | | Now GtkCellAreaBox handles the click event to activate renderers and checks if the area is in a sibling of a focus renderer, possibly activating the proper focus sibling renderer. Also GtkCellArea gains a "focus-changed" signal to allow it to change the currently focused row according to the button events.
* GtkCellArea now paints focus on cellsTristan Van Berkom2010-11-111-2/+23
| | | | | | | Added concept of "Focus Siblings" to GtkCellArea so that some static text/icon may be included in the focus/click area of an activatable or editable cell, implemented focus drawing as well, updated testcellarea to reflect the changes.
* Committing new (and simplified) focus handling approach for GtkCellArea.Tristan Van Berkom2010-11-101-14/+19
| | | | Also adding missing file cellareascaffold.h
* Implemented focus handling in GtkCellAreaBoxTristan Van Berkom2010-11-081-2/+1
| | | | | | | Now when the GtkCellAreaBox receives key events it cycles the currently focused cell to the next focusable cell in the box while observing the navigation direction, it then emits "focus-leave" when hitting the boundries of the area.
* Added gtk_cell_area_stop_editing to allow explicit stopping of cell editing.Tristan Van Berkom2010-11-081-0/+2
|
* Added gtk_cell_area_activate_cell() and some cell editing managementTristan Van Berkom2010-11-081-9/+14
| | | | | | | | | | | Now: - The current edit cell and editable widget in use can be fetched with properties and accessors - gtk_cell_area_activate_cell() handles bookkeeping of the currently edited cell, starting the editing of a cell, activating a cell etc - Exported signals are available on GtkCellArea: "editing-started", "editing-canceled", "editing-done", "remove-editable". - Upon receiving GDK_KEY_Escape current editing gets canceled.
* Made progress on focus handling.Tristan Van Berkom2010-11-051-0/+22
| | | | | | | | | - Added vfunc to get the allocation of a cell inside an area - Superclass GtkCellArea handles activation of focused cells by handling key events (as well as editing of editable cells) - Added signal "editing-started" to GtkCellArea to signal that editing has started (generally signaled from inside event handling) - Added properties "focus-cell" and "edited-cell"
* Committing half-way done focus work.Tristan Van Berkom2010-11-051-0/+4
|
* Extended gtk_cell_area_apply_attributes() to account for expander/expanded cellsTristan Van Berkom2010-11-021-1/+3
| | | | | | The state of expanded cells must come from the view, since these states can vary across views accessing the same model (also "finished up" the applying of attributes code).
* Added cell focus apis to GtkCellArea.Tristan Van Berkom2010-11-011-0/+18
|
* Added GtkCellRendererState flags to GtkCellArea->event/render() methodsTristan Van Berkom2010-11-011-19/+23
|
* Changed GtkCellArea margin-left/right... for cell-margin-left/right...Tristan Van Berkom2010-10-311-12/+23
| | | | | | | | | | | The rationale here is that every cell in an area needs to have space reserved around it, requests have to be fully margin inclusive... cells need to have the full size fed as the "background area" and the "cell area" has margins removed... This will be used by GtkTreeViewColumn to set the focus line width so that cells can paint a background on the full background, then render themselves into the cell area... and parents can go ahead and draw focus and other indicators on the background area but outside of the cell area.
* Added margins to the cell areaTristan Van Berkom2010-10-311-0/+18
| | | | | Added margin properties to the cell area, margins will be removed from the area given to ->render() when creating the inner cell area.