1 // Copyright (c) 2011 Novell, Inc. 2 // 3 // This program is free software; you can redistribute it and/or 4 // modify it under the terms of version 2 of the Lesser GNU General 5 // Public License as published by the Free Software Foundation. 6 // 7 // This program is distributed in the hope that it will be useful, 8 // but WITHOUT ANY WARRANTY; without even the implied warranty of 9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10 // Lesser General Public License for more details. 11 // 12 // You should have received a copy of the GNU Lesser General Public 13 // License along with this program; if not, write to the 14 // Free Software Foundation, Inc., 59 Temple Place - Suite 330, 15 // Boston, MA 02111-1307, USA. 16 17 namespace Gtk { 18 19 using System; 20 using System.Runtime.InteropServices; 21 22 public partial class TextAttributes { 23 24 public TextAppearance Appearance { 25 get { return (TextAppearance) Marshal.PtrToStructure (new IntPtr (Handle.ToInt64 () + 4), typeof (TextAppearance)); } 26 set { Marshal.StructureToPtr (value, new IntPtr (Handle.ToInt64 () + 4), false); } 27 } 28 } 29 } 30