summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.h
Commit message (Collapse)AuthorAgeFilesLines
* Implement text transforms for GtkTextViewMatthias Clasen2021-08-221-0/+1
| | | | | Add a property to GtkTextTag and do all the legwork to translate it to the Pango attribute.
* textview: Set line height from cssMatthias Clasen2021-08-221-0/+1
| | | | | | Set the line height in the default attributes from the CSS style. This makes line height work in GtkTextView.
* textview: Add line height plumbingMatthias Clasen2021-08-221-0/+2
| | | | | | This adds a line-height property to GtkTexttag and a line_height field to GtkTextAttributes, and translates it to a pango attribute.
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-28/+8
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* textattributes: Small docs fixMatthias Clasen2021-04-041-0/+1
|
* CosmeticsMatthias Clasen2021-03-181-15/+11
| | | | Pack the GtkTextAttributes struct better.
* Hide GtkTextAttributes functionsEmmanuele Bassi2020-12-151-13/+0
| | | | | The type is private, so making functions operating on it public is pointless.
* Clean up lots of GTK+ -> GTKMatthias Clasen2020-09-121-1/+1
| | | | | | Replace most remaining uses of GTK+ in the docs and user-visible strings by GTK. Also remove some leftover "Was added in 3.x" sentences from the docs.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-1/+1
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-1/+1
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-9/+9
|
* texttag: Support overline and hyphenation controlMatthias Clasen2020-03-201-0/+6
| | | | | | | | Add support for recently added Pango attributes for overlines and hyphenation control. The new properties of GtkTextTag are overline, overline-rgba, allow-breaks, show-spaces and insert-hyphens.
* Complete the privatization of GtkTextAttributesMatthias Clasen2016-11-041-4/+0
| | | | | | | This was not quite complete, as gtktextattributes.h was still being included in public headers. https://bugzilla.gnome.org/show_bug.cgi?id=773903
* Use GdkRGBA for text attributesMatthias Clasen2016-11-011-45/+4
| | | | | | Now that GtkTextAttributes is private, we can clean this struct up a bit. The first step is to switch from GdkColor to GdkRGBA, and adapt all users.
* Remove some more GdkColor propertieswip/baedert/boxTimm Bäder2016-10-201-3/+0
|
* GtkTextView: Support font featuresMatthias Clasen2015-07-291-1/+16
| | | | | Add a ::font-features attribute to GtkTextTag, and support font features when inserting Pango markup into a text buffer.
* textview: add support for underline and strikethrough colorsChristian Hergert2015-03-171-2/+2
| | | | | | | | | | | | | | | | | | | | This commit adds the GtkTextTag:underline-rgba and :strikethrough-rgba properties and the necessary plumbing to apply these colors in GtkTextLayout. With this change, you can alter the color of underlines including those of type PANGO_UNDERLINE_ERROR. You might want to alter the underline color to differentiate between spelling and grammer mistakes. In code editors, it is convenient to differentiate between errors and warnings. Note that the GtkTextAppearance struct is public ABI and has no spare room for new fields, so we are resorting to some tricky packing to store the colors in the unused pixel field of the fg_color and bg_color structs. This packing is accomplished by the macros in gtktextattributesprivate.h. Signed-off-by: Christian Hergert <christian@hergert.me> https://bugzilla.gnome.org/show_bug.cgi?id=402168
* Update docsMatthias Clasen2014-12-051-16/+6
| | | | Document new fields in GtkTextAttributes, remove redundant comments.
* GtkTextView: Add fallback and letter-spacing supportMatthias Clasen2014-12-041-1/+5
| | | | | | | Add support for the Pango attributes controlling font fallback and letter spacing to GtkTextTag. https://bugzilla.gnome.org/show_bug.cgi?id=740954
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: add docs for GtkTextAppearanceWilliam Jon McCann2014-01-211-1/+21
|
* docs: add field descriptions for GtkTextAttributesWilliam Jon McCann2014-01-211-0/+19
|
* gtktextattributes: Only use transparent union for g-ir-scannerColin Walters2013-11-131-0/+14
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=711158
* gtktextattributes: Use an anonymous union instead of arch-testing #ifdefColin Walters2013-11-031-6/+4
| | | | | | | | | | This avoids having Gtk-3.0.gir differ on 32 vs 64 bit, which causes issues for "multilib" in Fedora/OpenSUSE type systems. See https://bugzilla.gnome.org/show_bug.cgi?id=711153 for more information. https://bugzilla.gnome.org/show_bug.cgi?id=711158
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+6
| | | | Add annotations to all exported functions in GTK+ headers.
* gtktextattributes: move comment above relevant structSébastien Wilmet2013-04-011-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=697048
* gtktextattributes: explain what is "pg_bg"Sébastien Wilmet2013-04-011-0/+2
| | | | | | I didn't know what "pg" stands for. https://bugzilla.gnome.org/show_bug.cgi?id=697048
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-4/+4
| | | | | | 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
* __SIZEOF_INT__ and __SIZEOF_POINTER__ may not be defined.Antoine Jacoutot2011-10-031-1/+1
| | | | | | | Protect __SIZEOF_INT__ and __SIZEOF_POINTER__ with an ifdef to prevent warnings about them not being defined when including gtktextattributes.h. https://bugzilla.gnome.org/show_bug.cgi?id=660619
* Added GdkRGBA properties to GtkTextTag.Tristan Van Berkom2011-05-061-3/+9
| | | | | | | | | | | | This now allows text view to render text with alpha values in the text foreground and backgrounds, the work is almost complete, currently the error-underline-color is still a GdkColor style property and since we use only GdkRGBA for rendering it needs to be converted and applied, probably a new rgba version of the style property should also be introduced. This commit adds tests/testtextview that must be run from the tests/ directory to show translucent text in action.
* Move GtkTextTag docs inlineMatthias Clasen2011-01-141-0/+8
|
* textview: Move GtkTextAttributes to its own headerBenjamin Otte2011-01-111-0/+166