Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkRectangle |
Struct : | Rectangle |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
height : Number
|
Gdk.Rectangle | |
width : Number
|
Gdk.Rectangle | |
x : Number
|
Gdk.Rectangle | |
y : Number
|
Gdk.Rectangle |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.Rectangle
()
Create a new Gdk.Rectangle
Create a new Gdk.Rectangle
|
||
Calculates the intersection of two rectangles.
Calculates the intersection of two rectangles. It is allowed for do not intersect, dest's width and height is set to 0 and its x and y values are undefined. If you are only interested in whether the rectangles intersect, but not in the intersecting area itself, pass NULL for dest.
|
Gdk.Rectangle | |
Calculates the union of two rectangles.
Calculates the union of two rectangles. The union of rectangles src1 and src2 is the smallest rectangle which includes both src1 and src2 within it. It is allowed for dest to be the same as either src1 or src2.
|
Gdk.Rectangle |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gdk
Method |
Adds the given rectangle to the current path of cr.
|
Gdk
Method |
Creates a new region containing the area rectangle.
|
Gdk.GC
Method |
set_clip_rectangle
(Rectangle rectangle)
:
none
Sets the clip mask for a graphics context from a rectangle.
|
Gdk.Region
Method |
get_clipbox
(Rectangle rectangle)
:
none
Obtains the smallest rectangle which includes the entire GdkRegion.
|
Gdk.Region
Method |
Finds out if a regions is the same as a rectangle.
|
Gdk.Region
Method |
rect_in
(Rectangle rectangle)
:
Gdk.OverlapType
Tests whether a rectangle is within a region.
|
Gdk.Region
Method |
union_with_rect
(Rectangle rect)
:
none
Sets the area of region to the union of the areas of region and either region or rect.
|
Gdk.Screen
Method |
Retrieves the GdkRectangle representing the size and position of the individual monitor within the entire screen area.
|
Gdk.Window
Method |
begin_paint_rect
(Rectangle rectangle)
:
none
A convenience wrapper around gdk_window_begin_paint_region() which creates a rectangular region for you.
|
Gdk.Window
Method |
get_frame_extents
(Rectangle rect)
:
none
Obtains the bounding box of the window, including window manager titlebar/borders if any.
|
Gdk.Window
Method |
A convenience wrapper around gdk_window_invalidate_region() which invalidates a rectangular region.
|
Gtk
Method |
Gtk.draw_insertion_cursor
(Widget widget, Drawable drawable, Rectangle area, Rectangle location, Boolean is_primary, TextDirection direction, Boolean draw_arrow)
:
none
Draws a text caret on drawable at location.
|
Gtk
Method |
Gtk.paint_arrow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, ArrowType arrow_type, Boolean fill, Number x, Number y, Number width, Number height)
:
none
Draws an arrow in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_box_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a box in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_check
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a check button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_diamond
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a diamond in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_expander
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, ExpanderStyle expander_style)
:
none
Draws an expander as used in GtkTreeView.
|
Gtk
Method |
Gtk.paint_extension
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side)
:
none
Draws an extension, i.e.
|
Gtk
Method |
Gtk.paint_flat_box
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a flat box on window with the given parameters.
|
Gtk
Method |
Gtk.paint_focus
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a focus indicator around the given rectangle on window using the given style.
|
Gtk
Method |
Gtk.paint_handle
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a handle as used in GtkHandleBox and GtkPaned.
|
Gtk
Method |
Gtk.paint_hline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x1, Number x2, Number y)
:
none
Draws a horizontal line from (x1, y) to (x2, y) in window using the given style and state.
|
Gtk
Method |
Gtk.paint_layout
(Style style, Window window, StateType state_type, Boolean use_text, Rectangle area, Widget widget, String detail, Number x, Number y, Layout layout)
:
none
Draws a layout on window using the given parameters.
|
Gtk
Method |
Gtk.paint_option
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a radio button indicator in the given rectangle on window with the given parameters.
|
Gtk
Method |
Gtk.paint_polygon
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Point points, Number n_points, Boolean fill)
:
none
Draws a polygon on window with the given parameters.
|
Gtk
Method |
Gtk.paint_resize_grip
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, WindowEdge edge, Number x, Number y, Number width, Number height)
:
none
Draws a resize grip in the given rectangle on window using the given parameters.
|
Gtk
Method |
Gtk.paint_shadow
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type.
|
Gtk
Method |
Gtk.paint_shadow_gap
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, PositionType gap_side, Number gap_x, Number gap_width)
:
none
Draws a shadow around the given rectangle in window using the given style and state and shadow type, leaving a gap in one side.
|
Gtk
Method |
Gtk.paint_slider
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height, Orientation orientation)
:
none
Draws a slider in the given rectangle on window using the given style and orientation.
|
Gtk
Method |
Gtk.paint_spinner
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number step, Number x, Number y, Number width, Number height)
:
none
Draws a spinner on window using the given parameters.
|
Gtk
Method |
Gtk.paint_string
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number x, Number y, String string)
:
none
Draws a text string on window with the given parameters.
|
Gtk
Method |
Gtk.paint_tab
(Style style, Window window, StateType state_type, ShadowType shadow_type, Rectangle area, Widget widget, String detail, Number x, Number y, Number width, Number height)
:
none
Draws an option menu tab (i.e.
|
Gtk
Method |
Gtk.paint_vline
(Style style, Window window, StateType state_type, Rectangle area, Widget widget, String detail, Number y1_, Number y2_, Number x)
:
none
Draws a vertical line from (x, y1_) to (x, y2_) in window using the given style and state.
|
Gtk.CellRenderer
Method |
Obtains the width and height needed to render the cell.
|
Gtk.CellRenderer
Method |
render
(Window window, Widget widget, Rectangle background_area, Rectangle cell_area, Rectangle expose_area, CellRendererState flags)
:
none
Invokes the virtual render function of the GtkCellRenderer.
|
Gtk.CellRenderer
Method |
activate
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Boolean
Passes an activate event to the cell renderer for possible processing.
|
Gtk.CellRenderer
Method |
start_editing
(Event event, Widget widget, String path, Rectangle background_area, Rectangle cell_area, CellRendererState flags)
:
Gtk.CellEditable
Passes an activate event to the cell renderer for possible processing.
|
Gtk.IMContext
Method |
set_cursor_location
(Rectangle area)
:
none
Notify the input method that a change in cursor position has been made.
|
Gtk.IconInfo
Method |
Gets the coordinates of a rectangle within the icon that can be used for display of information such as a preview of the contents of a text file.
|
Gtk.Range
Method |
get_range_rect
(Rectangle range_rect)
:
none
This function returns the area that contains the range's trough and its steppers, in widget->window coordinates.
|
Gtk.Style
Method |
apply_default_background
(Window window, Boolean set_bg, StateType state_type, Rectangle area, Number x, Number y, Number width, Number height)
:
none
|
Gtk.TextLayout
Method |
|
Gtk.TextLayout
Method |
Given an iterator within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator.
|
Gtk.TextView
Method |
get_visible_rect
(Rectangle visible_rect)
:
none
Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates.
|
Gtk.TextView
Method |
Gets a rectangle which roughly contains the character at iter.
|
Gtk.Tooltip
Method |
set_tip_area
(Rectangle rect)
:
none
Sets the area of the widget, where the contents of this tooltip apply, to be rect (in widget coordinates).
|
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column.
|
Gtk.TreeView
Method |
Fills the bounding rectangle in bin_window coordinates for the cell at the row specified by path and the column specified by column.
|
Gtk.TreeView
Method |
get_visible_rect
(Rectangle visible_rect)
:
none
Fills visible_rect with the currently-visible region of the buffer, in tree coordinates.
|
Gtk.TreeViewColumn
Method |
Obtains the width and height needed to render the column.
|
Gtk.Widget
Signal |
|
Gtk.Widget
Method |
draw
(Rectangle area)
:
none
In GTK+ 1.2, this function would immediately render the region area of a widget, by invoking the virtual draw method of a widget.
|
Gtk.Widget
Method |
size_allocate
(Rectangle allocation)
:
none
This function is only used by GtkContainer subclasses, to assign a size and position to their child widgets.
|
Gtk.Widget
Method |
Computes the intersection of a widget's area and area, storing the intersection in intersection, and returns TRUE if there was an intersection.
|
Gtk.Widget
Method |
get_allocation
()
:
Gdk.Rectangle
Retrieves the widget's allocation.
|
Gtk.Widget
Method |
set_allocation
(Rectangle allocation)
:
none
Sets the widget's allocation.
|
Gtk.Widget
Method |
get_snapshot
(Rectangle clip_rect)
:
Gdk.Pixmap
Create a GdkPixmap of the contents of the widget and its children.
|
GtkClutter
Method |
Returns the GtkAllocation of a widget relative to a widget known to Clutter-GTK+.
|
GtkClutter
Method |
Returns the GtkAllocation of a widget relative to the top-level.
|