2004-06-07 Todd Berman <tberman@sevenl.net>

* gtk/Widget.custom: expose some easy bool properties for checking
        certain WidgetFlags. Make Allocation a settable property.
        * gtk/glue/widget.c: bit of glue to make Allocation settable.
        * gdk/Window.custom: expose UserData as a usable IntPtr property.
        * gdk/Gdk.metadata: hide old GetUserData/SetUserData methods.
        * doc/*: ran the updater.

svn path=/trunk/gtk-sharp/; revision=28974
This commit is contained in:
Todd Berman 2004-06-07 17:14:35 +00:00
parent 1aaac84322
commit 9698c4d2f9
11 changed files with 237 additions and 159 deletions

View file

@ -1,3 +1,12 @@
2004-06-07 Todd Berman <tberman@sevenl.net>
* gtk/Widget.custom: expose some easy bool properties for checking
certain WidgetFlags. Make Allocation a settable property.
* gtk/glue/widget.c: bit of glue to make Allocation settable.
* gdk/Window.custom: expose UserData as a usable IntPtr property.
* gdk/Gdk.metadata: hide old GetUserData/SetUserData methods.
* doc/*: ran the updater.
2004-06-07 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/Widget.custom: Add FocusLineWidth property.

View file

@ -283,21 +283,6 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="SetUserData">
<MemberSignature Language="C#" Value="public void SetUserData (IntPtr user_data);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="user_data" Type="System.IntPtr" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="user_data">To be added: an object of type 'IntPtr'</param>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="BeginPaintRegion">
<MemberSignature Language="C#" Value="public void BeginPaintRegion (Gdk.Region region);" />
<MemberType>Method</MemberType>
@ -541,21 +526,6 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="GetUserData">
<MemberSignature Language="C#" Value="public void GetUserData (IntPtr data);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="data" Type="System.IntPtr" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="data">To be added: an object of type 'IntPtr'</param>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="SetIcon">
<MemberSignature Language="C#" Value="public void SetIcon (Gdk.Window icon_window, Gdk.Pixmap pixmap, Gdk.Bitmap mask);" />
<MemberType>Method</MemberType>
@ -1474,5 +1444,18 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="UserData">
<MemberSignature Language="C#" Value="public IntPtr UserData { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:System.IntPtr" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -713,8 +713,19 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnRealize">
<MemberSignature Language="C#" Value="protected virtual void OnRealize ();" />
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CanvasItem ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gnome.CanvasItem" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Realize">
<MemberSignature Language="C#" Value="protected virtual void Realize ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -725,8 +736,8 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnPoint">
<MemberSignature Language="C#" Value="protected virtual double OnPoint (double x, double y, int cx, int cy, out Gnome.CanvasItem actual_item);" />
<Member MemberName="Point">
<MemberSignature Language="C#" Value="protected virtual double Point (double x, double y, int cx, int cy, out Gnome.CanvasItem actual_item);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
@ -749,8 +760,8 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnDraw">
<MemberSignature Language="C#" Value="protected virtual void OnDraw (Gdk.Drawable drawable, int x, int y, int width, int height);" />
<Member MemberName="Draw">
<MemberSignature Language="C#" Value="protected virtual void Draw (Gdk.Drawable drawable, int x, int y, int width, int height);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -772,8 +783,8 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnRender">
<MemberSignature Language="C#" Value="protected virtual void OnRender (ref Gnome.CanvasBuf buf);" />
<Member MemberName="Render">
<MemberSignature Language="C#" Value="protected virtual void Render (ref Gnome.CanvasBuf buf);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -787,8 +798,8 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnUpdate">
<MemberSignature Language="C#" Value="protected virtual void OnUpdate (double [] affine, ref Art.SVP clip_path, int flags);" />
<Member MemberName="Update">
<MemberSignature Language="C#" Value="protected virtual void Update (double [] affine, ref Art.SVP clip_path, int flags);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -806,16 +817,5 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CanvasItem ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gnome.CanvasItem" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -75,35 +75,6 @@
</remarks>
</Docs>
</Member>
<Member MemberName="GetSize">
<MemberSignature Language="C#" Value="public void GetSize (Gtk.Widget widget, Gdk.Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="widget" Type="Gtk.Widget" />
<Parameter Name="cell_area" Type="Gdk.Rectangle" />
<Parameter Name="x_offset" Type="System.Int32" />
<Parameter Name="y_offset" Type="System.Int32" />
<Parameter Name="width" Type="System.Int32" />
<Parameter Name="height" Type="System.Int32" />
</Parameters>
<Docs>
<summary>Obtains the <paramref name="width" /> and <paramref name="height" /> needed to render the cell.</summary>
<param name="widget">an object of type <see cref="T:Gtk.Widget" /></param>
<param name="cell_area">an object of type <see cref="T:Gdk.Rectangle" /></param>
<param name="x_offset">an object of type <see cref="T:System.Int32" /></param>
<param name="y_offset">an object of type <see cref="T:System.Int32" /></param>
<param name="width">an object of type <see cref="T:System.Int32" /></param>
<param name="height">an object of type <see cref="T:System.Int32" /></param>
<remarks>
Used by view widgets to determine the appropriate size for the <paramref name="cell_area" /> passed to gtk_cell_renderer_render().
If <paramref name="cell_area" /> is not <see langword="null" />, fills in the x and y offsets (if set) of the cell relative to this location.
Please note that the values set in <paramref name="width" /> and <paramref name="height" />, as well as those in <paramref name="x_offset" /> and <paramref name="y_offset" /> are inclusive of the xpad and ypad properties.
</remarks>
</Docs>
</Member>
<Member MemberName="SetFixedSize">
<MemberSignature Language="C#" Value="public void SetFixedSize (int width, int height);" />
<MemberType>Method</MemberType>
@ -138,32 +109,6 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="StartEditing">
<MemberSignature Language="C#" Value="public Gtk.CellEditable StartEditing (Gdk.Event evnt, Gtk.Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Gtk.CellEditable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="evnt" Type="Gdk.Event" />
<Parameter Name="widget" Type="Gtk.Widget" />
<Parameter Name="path" Type="System.String" />
<Parameter Name="background_area" Type="Gdk.Rectangle" />
<Parameter Name="cell_area" Type="Gdk.Rectangle" />
<Parameter Name="flags" Type="Gtk.CellRendererState" />
</Parameters>
<Docs>
<summary>Passes an activate event to the <see cref="T:Gtk.CellRenderer" /> for possible processing.</summary>
<param name="evnt">an object of type <see cref="T:Gdk.Event" /></param>
<param name="widget">an object of type <see cref="T:Gtk.Widget" /></param>
<param name="path">an object of type <see cref="T:System.String" /></param>
<param name="background_area">an object of type <see cref="T:Gdk.Rectangle" /></param>
<param name="cell_area">an object of type <see cref="T:Gdk.Rectangle" /></param>
<param name="flags">an object of type <see cref="T:Gtk.CellRendererState" /></param>
<returns>an object of type <see cref="T:Gtk.CellEditable" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Activate">
<MemberSignature Language="C#" Value="public bool Activate (Gdk.Event evnt, Gtk.Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags);" />
<MemberType>Method</MemberType>
@ -455,33 +400,59 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnGetSize">
<MemberSignature Language="C#" Value="protected virtual void OnGetSize (Gtk.Widget widget, Gdk.Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height);" />
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CellRenderer ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.CellRenderer" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OverrideStartEditing">
<MemberSignature Language="C#" Value="protected static void OverrideStartEditing (GLib.GType gtype);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="gtype" Type="GLib.GType" />
</Parameters>
<Docs>
<summary>To be added</summary>
<param name="gtype">a <see cref="T:GLib.GType" /></param>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="GetSize">
<MemberSignature Language="C#" Value="public virtual void GetSize (Gtk.Widget widget, ref Gdk.Rectangle cell_area, out int x_offset, out int y_offset, out int width, out int height);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="widget" Type="Gtk.Widget" />
<Parameter Name="cell_area" Type="Gdk.Rectangle" />
<Parameter Name="cell_area" Type="Gdk.Rectangle&amp;" RefType="ref" />
<Parameter Name="x_offset" Type="System.Int32&amp;" RefType="out" />
<Parameter Name="y_offset" Type="System.Int32&amp;" RefType="out" />
<Parameter Name="width" Type="System.Int32&amp;" RefType="out" />
<Parameter Name="height" Type="System.Int32&amp;" RefType="out" />
</Parameters>
<Docs>
<summary>To be added</summary>
<summary>Obtains the <paramref name="width" /> and <paramref name="height" /> needed to render the cell.</summary>
<param name="widget">a <see cref="T:Gtk.Widget" /></param>
<param name="cell_area">a <see cref="T:Gdk.Rectangle" /></param>
<param name="x_offset">a <see cref="T:System.Int32" /></param>
<param name="y_offset">a <see cref="T:System.Int32" /></param>
<param name="width">a <see cref="T:System.Int32" /></param>
<param name="height">a <see cref="T:System.Int32" /></param>
<remarks>To be added</remarks>
<remarks>Used by view widgets to determine the appropriate size for the <paramref name="cell_area" /> passed to gtk_cell_renderer_render(). If <paramref name="cell_area" /> is not <see langword="null" />, fills in the x and y offsets (if set) of the cell relative to this location. Please note that the values set in <paramref name="width" /> and <paramref name="height" />, as well as those in <paramref name="x_offset" /> and <paramref name="y_offset" /> are inclusive of the xpad and ypad properties.</remarks>
</Docs>
</Member>
<Member MemberName="OnRender">
<MemberSignature Language="C#" Value="protected virtual void OnRender (Gdk.Drawable window, Gtk.Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, Gtk.CellRendererState flags);" />
<Member MemberName="Render">
<MemberSignature Language="C#" Value="protected virtual void Render (Gdk.Drawable window, Gtk.Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, Gtk.CellRendererState flags);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -505,25 +476,29 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName=".ctor" Deprecated="true">
<MemberSignature Language="C#" Value="public CellRenderer ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Member MemberName="StartEditing">
<MemberSignature Language="C#" Value="public virtual Gtk.CellEditable StartEditing (Gdk.Event evnt, Gtk.Widget widget, string path, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gtk.CellRendererState flags);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Gtk.CellEditable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="evnt" Type="Gdk.Event" />
<Parameter Name="widget" Type="Gtk.Widget" />
<Parameter Name="path" Type="System.String" />
<Parameter Name="background_area" Type="Gdk.Rectangle" />
<Parameter Name="cell_area" Type="Gdk.Rectangle" />
<Parameter Name="flags" Type="Gtk.CellRendererState" />
</Parameters>
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.CellRenderer" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected CellRenderer ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.CellRenderer" /></returns>
<summary>Passes an activate event to the <see cref="T:Gtk.CellRenderer" /> for possible processing.</summary>
<param name="evnt">a <see cref="T:Gdk.Event" /></param>
<param name="widget">a <see cref="T:Gtk.Widget" /></param>
<param name="path">a <see cref="T:System.String" /></param>
<param name="background_area">a <see cref="T:Gdk.Rectangle" /></param>
<param name="cell_area">a <see cref="T:Gdk.Rectangle" /></param>
<param name="flags">a <see cref="T:System.Int32" /></param>
<returns>a <see cref="T:Gtk.CellEditable" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>

View file

@ -643,8 +643,19 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="OnForall">
<MemberSignature Language="C#" Value="protected virtual void OnForall (bool include_internals, Gtk.Container+CallbackInvoker invoker);" />
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Container ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.Container" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="ForAll">
<MemberSignature Language="C#" Value="protected virtual void ForAll (bool include_internals, Gtk.Container+CallbackInvoker invoker);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
@ -660,16 +671,5 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected Container ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.Container" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>

View file

@ -1182,18 +1182,6 @@
</remarks>
</Docs>
</Member>
<Member MemberName="Allocation">
<MemberSignature Language="C#" Value="public Gdk.Rectangle Allocation { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Rectangle</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added</summary>
<returns>To be added: an object of type 'Gdk.Rectangle'</returns>
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="Accessible">
<MemberSignature Language="C#" Value="public Atk.Object Accessible { get; };" />
<MemberType>Property</MemberType>
@ -4721,5 +4709,70 @@ handle focus grabs.</returns>
</remarks>
</Docs>
</Member>
<Member MemberName="Allocation">
<MemberSignature Language="C#" Value="public Gdk.Rectangle Allocation { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gdk.Rectangle</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets or Sets the widget's allocation.</summary>
<returns>a <see cref="T:Gdk.Rectangle" /> representing the size of the widget's allocation.</returns>
<remarks>None.</remarks>
</Docs>
</Member>
<Member MemberName="IsMapped">
<MemberSignature Language="C#" Value="public bool IsMapped { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Check to see if the widget is Mapped</summary>
<returns>true if the widget is Mapped, false otherwise.</returns>
<remarks>None.</remarks>
</Docs>
</Member>
<Member MemberName="IsRealized">
<MemberSignature Language="C#" Value="public bool IsRealized { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Checks to see if the widget is Realized</summary>
<returns>returns true if the widget is Realized</returns>
<remarks>None.</remarks>
</Docs>
</Member>
<Member MemberName="NoWindow">
<MemberSignature Language="C#" Value="public bool NoWindow { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Checks for the NoWindow <see cref="T:Gtk.WidgetFlags" /></summary>
<returns>returns true if the NoWindow flag is set</returns>
<remarks>None.</remarks>
</Docs>
</Member>
<Member MemberName="Drawable">
<MemberSignature Language="C#" Value="public bool Drawable { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Checks to see if the widget is Drawable</summary>
<returns>returns true if the widget is Drawable</returns>
<remarks>None.</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -34,7 +34,10 @@ namespace GtkSharp.Docs {
while (iter.MoveNext ()) {
XmlElement elem = ((IHasXmlNode)iter.Current).GetNode () as XmlElement;
string member_type = elem["MemberType"].InnerText;
switch (member_type) {
switch (member_type) {
case "Method":
case "Property":
case "Constructor":
case "Field":
string summary = elem["Docs"]["summary"].InnerText;
string remarks = elem["Docs"]["remarks"].InnerText;

View file

@ -71,6 +71,8 @@
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='PeekChildren']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='SetCursor']/parameters/parameter[@name='cursor']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='SetIconList']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@name='GetUserData']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkWindow']/method[@cname='gdk_window_set_user_data']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkEventAny']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkEventButton']" name="hidden">1</attr>
<attr path="/api/namespace/struct[@cname='GdkEventClient']" name="hidden">1</attr>

View file

@ -63,6 +63,22 @@
gdk_window_clear_area (Handle, rect.X, rect.Y, rect.Width, rect.Height);
}
[DllImport ("libgdk-win32-2.0-0.dll")]
static extern void gdk_window_get_user_data (IntPtr raw, out IntPtr data);
[DllImport("libgdk-win32-2.0-0.dll")]
static extern void gdk_window_set_user_data(IntPtr raw, IntPtr user_data);
public IntPtr UserData {
get {
IntPtr data;
gdk_window_get_user_data (Handle, out data);
return data;
}
set {
gdk_window_set_user_data(Handle, value);
}
}
#if MANLY_ENOUGH_TO_INCLUDE
public Cairo.Graphics CairoGraphics (out int offset_x, out int offset_y)
{
@ -83,4 +99,4 @@
int x, y;
return CairoGraphics (out x, out y);
}
#endif
#endif

View file

@ -11,8 +11,12 @@
[DllImport("gtksharpglue")]
static extern IntPtr gtksharp_gtk_widget_get_allocation (IntPtr style);
[DllImport("gtksharpglue")]
static extern void gtksharp_gtk_widget_set_allocation (IntPtr raw, Gdk.Rectangle rect);
public Gdk.Rectangle Allocation {
get { return Gdk.Rectangle.New (gtksharp_gtk_widget_get_allocation (Handle)); }
set { gtksharp_gtk_widget_set_allocation (Handle, value); }
}
@ -72,6 +76,30 @@ public int Flags {
}
}
public bool IsMapped {
get {
return ((Flags & (int)Gtk.WidgetFlags.Mapped) != 0);
}
}
public bool IsRealized {
get {
return ((Flags & (int)Gtk.WidgetFlags.Realized) != 0);
}
}
public bool NoWindow {
get {
return ((Flags & (int)Gtk.WidgetFlags.NoWindow) != 0);
}
}
public bool Drawable {
get {
return (Visible && IsMapped);
}
}
[DllImport("gtksharpglue")]
static extern int gtksharp_gtk_widget_style_get_int (IntPtr raw, string name);

View file

@ -9,9 +9,12 @@
/* Forward declarations */
GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget);
void gtksharp_gtk_widget_set_allocation (GtkWidget *widget, GdkRectangle rect);
GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget);
void gtksharp_gtk_widget_set_window (GtkWidget *widget, GdkWindow *window);
int gtksharp_gtk_widget_get_state (GtkWidget *widget);
int gtksharp_gtk_widget_get_flags (GtkWidget *widget);
void gtksharp_gtk_widget_set_flags (GtkWidget *widget, int flags);
int gtksharp_gtk_widget_style_get_int (GtkWidget *widget, const char *name);
/* */
@ -21,6 +24,12 @@ gtksharp_gtk_widget_get_allocation (GtkWidget *widget)
return &widget->allocation;
}
void
gtksharp_gtk_widget_set_allocation (GtkWidget *widget, GdkRectangle rect)
{
widget->allocation = rect;
}
GdkWindow *
gtksharp_gtk_widget_get_window (GtkWidget *widget)
{