Re: FYI: GtkText design progress
- From: nirva ishiboo com (Danny Dulai)
- To: gtk-devel-list redhat com
- Subject: Re: FYI: GtkText design progress
- Date: 1 Feb 2000 15:29:03 -0000
On 12/27/99, Derek Simkowiak said:
>
> Instead, we use a "property list". The property list is a
>doubly-linked list of TextProperty structs. A TextProperty struct is
>defined as:
>
>struct _TextProperty
>{
> /* Font. */
> GtkSCTextFont* font;
>
> /* Background Color. */
> GdkColor back_color;
>
> /* Foreground Color. */
> GdkColor fore_color;
>
> /* Show which properties are set */
> TextPropertyFlags flags;
>
> /* Length of this property. */
> guint length;
>
> /* user data */
> gpointer user_data;
>};
>
> [...and just FYI:]
>
>typedef enum {
> PROPERTY_FONT = 1 << 0,
> PROPERTY_FOREGROUND = 1 << 1,
> PROPERTY_BACKGROUND = 1 << 2,
> PROPERTY_DATA = 1 << 3
>} TextPropertyFlags;
Please don't forget a way to underline text! Fonts can't be underlined!
--
___________________________________________________________________________
Danny Dulai Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/ nirva@ishiboo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]