mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-11 05:05:40 +00:00
Add the gtk_render_* methods to StyleContext
* gtk/Gtk.metadata: hide the Render class * gtk/Makefile.am: build the new file * gtk/StyleContext.cs: instance methods for the gtk_render_* api using the internal generated Render class.
This commit is contained in:
parent
9e5e8e5491
commit
0d315af7a6
|
@ -75,6 +75,7 @@
|
|||
<attr path="/api/namespace/class[@cname='GtkRc_']/method[@name='Parse']" name="win32_utf8_variant">true</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkRc_']/method[@name='SetDefaultFiles']" name="win32_utf8_variant">true</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkRc_']/method[@name='SetDefaultFiles']/*/*[@name='filenames']" name="null_term_array">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkRender_']" name="internal">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkStock_']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkTarget_']/method[@name='TableNewFromList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/class[@cname='GtkTree_']/method[@name='GetRowDragData']/*/*[@name='tree_model']" name="pass_as">out</attr>
|
||||
|
|
|
@ -26,6 +26,7 @@ sources = \
|
|||
RadioActionEntry.cs \
|
||||
RowsReorderedHandler.cs \
|
||||
StockManager.cs \
|
||||
StyleContext.cs \
|
||||
ThreadNotify.cs \
|
||||
ToggleActionEntry.cs \
|
||||
TreeEnumerator.cs \
|
||||
|
|
99
gtk/StyleContext.cs
Normal file
99
gtk/StyleContext.cs
Normal file
|
@ -0,0 +1,99 @@
|
|||
// Copyright (c) 2011 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
|
||||
using System;
|
||||
|
||||
namespace Gtk {
|
||||
|
||||
public partial class StyleContext {
|
||||
|
||||
public void RenderActivity (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Activity (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderArrow (Cairo.Context cr, double angle, double x, double y, double size)
|
||||
{
|
||||
Render.Arrow (this, cr, angle, x, y, size);
|
||||
}
|
||||
|
||||
public void RenderBackground (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Background (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderCheck (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Check (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderExtension (Cairo.Context cr, double x, double y, double width, double height, Gtk.PositionType gap_side)
|
||||
{
|
||||
Render.Extension (this, cr, x, y, width, height, gap_side);
|
||||
}
|
||||
|
||||
public void RenderExpander (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Expander (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderFocus (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Focus (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderFrame (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Frame (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderFrameGap (Cairo.Context cr, double x, double y, double width, double height, Gtk.PositionType gap_side, double xy0_gap, double xy1_gap)
|
||||
{
|
||||
Render.FrameGap (this, cr, x, y, width, height, gap_side, xy0_gap, xy1_gap);
|
||||
}
|
||||
|
||||
public void RenderHandle (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Handle (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public Gdk.Pixbuf RenderIconPixbuf (Gtk.IconSource source, Gtk.IconSize size)
|
||||
{
|
||||
return Render.IconPixbuf (this, source, size);
|
||||
}
|
||||
|
||||
public void RenderLayout (Cairo.Context cr, double x, double y, Pango.Layout layout)
|
||||
{
|
||||
Render.Layout (this, cr, x, y, layout);
|
||||
}
|
||||
|
||||
public void RenderLine (Cairo.Context cr, double x0, double y0, double x1, double y1)
|
||||
{
|
||||
Render.Line (this, cr, x0, y0, x1, y1);
|
||||
}
|
||||
|
||||
public void RenderOption (Cairo.Context cr, double x, double y, double width, double height)
|
||||
{
|
||||
Render.Option (this, cr, x, y, width, height);
|
||||
}
|
||||
|
||||
public void RenderSlider (Cairo.Context cr, double x, double y, double width, double height, Gtk.Orientation orientation)
|
||||
{
|
||||
Render.Slider (this, cr, x, y, width, height, orientation);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue