RE: [gtkmm] Can this be done with gtkmm?
- From: Owen Taylor <otaylor redhat com>
- To: Murray Cumming Comneon com
- Cc: seguso forever tin it, gtkmm-list gnome org, gtk-devel-list gnome org
- Subject: RE: [gtkmm] Can this be done with gtkmm?
- Date: Fri, 19 Dec 2003 11:16:28 -0500
On Fri, 2003-12-19 at 08:54, Murray Cumming Comneon com wrote:
> > > You are using the PangoLayoutLine::length struct field:
> > >
> > http://developer.gnome.org/doc/API/2.2/pang> o/pango-Layout-Objects.html
> > > #Pango
> > > LayoutLine
> > >
> > > By default, struct fields are private (you should not use
> > them) unless
> > > the documentation says otherwise. If the GTK+ developers
> > say that this
> > > field should be accessed directly, then we will wrap it in
> > gtkmm 2.4.
> >
> > Actually, the policy is:
> >
> > - Object structures are default private
> > - Other structures are default public
> >
> > Subject to modification by /*< public >*/ or /*< private >*/ comments.
> >
> > This is what gtk-doc does, and you can see that length is
> > documented at:
> >
> >
> http://developer.gnome.org/doc/API/2.0/pango/pango-Layout-Objects.html#Pango
> LayoutLine
>
> OK, thanks.
>
> For PangoLayoutLine, should the struct fields only be read directly, or can
> they be set directly as well? It looks like setting them directly might only
> be safe at certain times.
All fields in PangoLayoutLine are read-only. (No general rule here for
non-object structures that I can give. All fields in object structures
are always read-only.)
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]