Lines Matching refs:rect
755 moz_gtk_button_paint(GdkDrawable* drawable, GdkRectangle* rect,
763 gint x = rect->x, y=rect->y, width=rect->width, height=rect->height;
932 moz_gtk_toggle_paint(GdkDrawable* drawable, GdkRectangle* rect,
957 // ASSERT(rect->width == indicator_size);
963 x = rect->x;
964 y = rect->y + (rect->height - indicator_size) / 2;
1015 calculate_button_inner_rect(GtkWidget* button, GdkRectangle* rect,
1035 inner_rect->x = rect->x + XTHICKNESS(style) + focus_width + focus_pad;
1038 inner_rect->y = rect->y + inner_border.top + YTHICKNESS(style) +
1040 inner_rect->width = MAX(1, rect->width - inner_border.left -
1042 inner_rect->height = MAX(1, rect->height - inner_border.top -
1050 calculate_arrow_rect(GtkWidget* arrow, GdkRectangle* rect,
1062 extent = MIN((rect->width - misc->xpad * 2),
1063 (rect->height - misc->ypad * 2)) * arrow_scaling;
1066 xpad = misc->xpad + (rect->width - extent) * xalign;
1069 floor(rect->x + xpad) : ceil(rect->x + xpad);
1070 arrow_rect->y = floor(rect->y + misc->ypad +
1071 ((rect->height - extent) * misc->yalign));
1079 moz_gtk_scrollbar_button_paint(GdkDrawable* drawable, GdkRectangle* rect,
1108 scrollbar->allocation.x = rect->x;
1109 scrollbar->allocation.y = rect->y;
1110 scrollbar->allocation.width = rect->width;
1111 scrollbar->allocation.height = rect->height;
1118 scrollbar->allocation.y -= 4 * rect->height;
1120 scrollbar->allocation.y -= rect->height;
1125 scrollbar->allocation.y -= 3 * rect->height;
1132 scrollbar->allocation.x -= 4 * rect->width;
1134 scrollbar->allocation.x -= rect->width;
1138 scrollbar->allocation.x -= 3 * rect->width;
1144 TSOffsetStyleGCs(style, rect->x, rect->y);
1147 scrollbar, detail, rect->x, rect->y,
1148 rect->width, rect->height);
1150 arrow_rect.width = rect->width / 2;
1151 arrow_rect.height = rect->height / 2;
1152 arrow_rect.x = rect->x + (rect->width - arrow_rect.width) / 2;
1153 arrow_rect.y = rect->y + (rect->height - arrow_rect.height) / 2;
1174 GdkDrawable* drawable, GdkRectangle* rect,
1192 TSOffsetStyleGCs(style, rect->x, rect->y);
1194 cliprect, rect->x, rect->y,
1195 rect->width, rect->height);
1198 GTK_WIDGET(scrollbar), "trough", rect->x, rect->y,
1199 rect->width, rect->height);
1204 rect->x, rect->y, rect->width, rect->height);
1212 GdkDrawable* drawable, GdkRectangle* rect,
1238 clip rect below. */
1249 adj->page_size = rect->width;
1254 adj->page_size = rect->height;
1272 TSOffsetStyleGCs(style, rect->x, rect->y);
1275 GTK_WIDGET(scrollbar), "slider", rect->x, rect->y,
1276 rect->width, rect->height,
1284 moz_gtk_spin_paint(GdkDrawable* drawable, GdkRectangle* rect,
1293 TSOffsetStyleGCs(style, rect->x, rect->y);
1296 rect->x, rect->y, rect->width, rect->height);
1301 moz_gtk_spin_updown_paint(GdkDrawable* drawable, GdkRectangle* rect,
1315 TSOffsetStyleGCs(style, rect->x, rect->y);
1318 rect->x, rect->y, rect->width, rect->height);
1323 arrow_rect.x = rect->x + (rect->width - arrow_rect.width) / 2;
1324 arrow_rect.y = rect->y + (rect->height - arrow_rect.height) / 2;
1337 moz_gtk_scale_paint(GdkDrawable* drawable, GdkRectangle* rect,
1361 TSOffsetStyleGCs(style, rect->x, rect->y);
1363 cliprect, rect->x, rect->y,
1364 rect->width, rect->height);
1367 widget, "trough", rect->x + x, rect->y + y,
1368 rect->width - 2*x, rect->height - 2*y);
1372 rect->x, rect->y, rect->width, rect->height);
1378 moz_gtk_scale_thumb_paint(GdkDrawable* drawable, GdkRectangle* rect,
1396 x = rect->x;
1397 y = rect->y + (rect->height - thumb_height) / 2;
1401 x = rect->x + (rect->width - thumb_width) / 2;
1402 y = rect->y;
1405 TSOffsetStyleGCs(style, rect->x, rect->y);
1414 moz_gtk_gripper_paint(GdkDrawable* drawable, GdkRectangle* rect,
1428 TSOffsetStyleGCs(style, rect->x, rect->y);
1430 gParts->handleBoxWidget, "handlebox_bin", rect->x, rect->y,
1431 rect->width, rect->height);
1437 moz_gtk_hpaned_paint(GdkDrawable* drawable, GdkRectangle* rect,
1445 rect->x, rect->y, rect->width, rect->height,
1452 moz_gtk_vpaned_paint(GdkDrawable* drawable, GdkRectangle* rect,
1460 rect->x, rect->y, rect->width, rect->height,
1467 moz_gtk_caret_paint(GdkDrawable* drawable, GdkRectangle* rect,
1470 GdkRectangle location = *rect;
1473 location.x = rect->x + rect->width;
1484 moz_gtk_entry_paint(GdkDrawable* drawable, GdkRectangle* rect,
1490 gint x, y, width = rect->width, height = rect->height;
1511 TSOffsetStyleGCs(style, rect->x, rect->y);
1542 cliprect, widget, "entry_bg", rect->x + x,
1543 rect->y + y, rect->width - 2*x, rect->height - 2*y);
1548 x = rect->x;
1549 y = rect->y;
1573 rect->x, rect->y, rect->width, rect->height);
1585 moz_gtk_treeview_paint(GdkDrawable* drawable, GdkRectangle* rect,
1614 TSOffsetStyleGCs(gParts->treeViewWidget->style, rect->x, rect->y);
1615 TSOffsetStyleGCs(style, rect->x, rect->y);
1619 rect->x + xthickness, rect->y + ythickness,
1620 rect->width - 2 * xthickness,
1621 rect->height - 2 * ythickness);
1625 rect->x, rect->y, rect->width, rect->height);
1631 moz_gtk_tree_header_cell_paint(GdkDrawable* drawable, GdkRectangle* rect,
1638 moz_gtk_button_paint(drawable, rect, cliprect, state, GTK_RELIEF_NORMAL,
1644 moz_gtk_tree_header_sort_arrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
1661 arrow_rect.x = rect->x + (rect->width - arrow_rect.width) / 2;
1662 arrow_rect.y = rect->y + (rect->height - arrow_rect.height) / 2;
1676 moz_gtk_treeview_expander_paint(GdkDrawable* drawable, GdkRectangle* rect,
1693 TSOffsetStyleGCs(style, rect->x, rect->y);
1695 rect->x + rect->width / 2, rect->y + rect->height / 2, expander_state);
1701 moz_gtk_expander_paint(GdkDrawable* drawable, GdkRectangle* rect,
1714 TSOffsetStyleGCs(style, rect->x, rect->y);
1716 rect->x + rect->width / 2, rect->y + rect->height / 2, expander_state);
1722 moz_gtk_combo_box_paint(GdkDrawable* drawable, GdkRectangle* rect,
1738 moz_gtk_button_paint(drawable, rect, cliprect, state, GTK_RELIEF_NORMAL,
1742 rect, &arrow_rect, direction, ishtml);
1743 /* Now arrow_rect contains the inner rect ; we want to correct the width
1754 TSOffsetStyleGCs(style, rect->x, rect->y);
1756 gtk_widget_size_allocate(gParts->comboBoxWidget, rect);
1769 TSOffsetStyleGCs(style, rect->x, rect->y);
1803 moz_gtk_downarrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
1814 calculate_arrow_rect(gParts->buttonArrowWidget, rect, &arrow_rect,
1826 moz_gtk_combo_box_entry_button_paint(GdkDrawable* drawable, GdkRectangle* rect,
1846 moz_gtk_button_paint(drawable, rect, cliprect, state, GTK_RELIEF_NORMAL,
1853 rect, &arrow_rect, direction, FALSE);
1878 moz_gtk_container_paint(GdkDrawable* drawable, GdkRectangle* rect,
1901 TSOffsetStyleGCs(style, rect->x, rect->y);
1911 rect->x, rect->y, rect->width, rect->height);
1920 rect->x, rect->y, rect->width, rect->height);
1927 moz_gtk_toggle_label_paint(GdkDrawable* drawable, GdkRectangle* rect,
1955 TSOffsetStyleGCs(style, rect->x, rect->y);
1960 rect->x, rect->y, rect->width, rect->height);
1966 moz_gtk_toolbar_paint(GdkDrawable* drawable, GdkRectangle* rect,
1977 TSOffsetStyleGCs(style, rect->x, rect->y);
1981 cliprect, rect->x, rect->y,
1982 rect->width, rect->height);
1988 rect->x, rect->y, rect->width, rect->height);
1994 moz_gtk_toolbar_separator_paint(GdkDrawable* drawable, GdkRectangle* rect,
2017 TSOffsetStyleGCs(style, rect->x, rect->y);
2020 if (separator_width > rect->width)
2021 separator_width = rect->width;
2026 rect->x + (rect->width - separator_width) / 2,
2027 rect->y + rect->height * start_fraction,
2029 rect->height * (end_fraction - start_fraction));
2034 if (paint_width > rect->width)
2035 paint_width = rect->width;
2040 rect->y + rect->height * start_fraction,
2041 rect->y + rect->height * end_fraction,
2042 rect->x + (rect->width - paint_width) / 2);
2049 moz_gtk_tooltip_paint(GdkDrawable* drawable, GdkRectangle* rect,
2062 TSOffsetStyleGCs(style, rect->x, rect->y);
2065 rect->x, rect->y, rect->width, rect->height);
2071 moz_gtk_resizer_paint(GdkDrawable* drawable, GdkRectangle* rect,
2083 TSOffsetStyleGCs(style, rect->x, rect->y);
2089 rect->x, rect->y, rect->width, rect->height);
2094 moz_gtk_frame_paint(GdkDrawable* drawable, GdkRectangle* rect,
2107 TSOffsetStyleGCs(style, rect->x, rect->y);
2109 cliprect, gParts->frameWidget, "frame", rect->x, rect->y,
2110 rect->width, rect->height);
2116 moz_gtk_progressbar_paint(GdkDrawable* drawable, GdkRectangle* rect,
2126 TSOffsetStyleGCs(style, rect->x, rect->y);
2128 cliprect, gParts->progresWidget, "trough", rect->x, rect->y,
2129 rect->width, rect->height);
2135 moz_gtk_progress_chunk_paint(GdkDrawable* drawable, GdkRectangle* rect,
2145 TSOffsetStyleGCs(style, rect->x, rect->y);
2147 cliprect, gParts->progresWidget, "bar", rect->x, rect->y,
2148 rect->width, rect->height);
2164 moz_gtk_tab_paint(GdkDrawable* drawable, GdkRectangle* rect,
2179 TSOffsetStyleGCs(style, rect->x, rect->y);
2185 rect->x, rect->y, rect->width, rect->height,
2192 * frame rect already overlaps the tabpanel frame rect, we need to take
2252 rect->x, rect->y + gap_voffset, rect->width,
2253 rect->height - gap_voffset, GTK_POS_TOP);
2259 rect->x,
2260 rect->y + gap_voffset
2262 rect->width, gap_height);
2265 rect->x - gap_loffset,
2266 rect->y + gap_voffset - 3 * gap_height,
2267 rect->width + gap_loffset + gap_roffset,
2269 gap_loffset, rect->width);
2277 rect->x, rect->y, rect->width,
2278 rect->height - gap_voffset, GTK_POS_BOTTOM);
2284 rect->x,
2285 rect->y + rect->height
2287 rect->width, gap_height);
2290 rect->x - gap_loffset,
2291 rect->y + rect->height - gap_voffset,
2292 rect->width + gap_loffset + gap_roffset,
2294 gap_loffset, rect->width);
2303 moz_gtk_tabpanels_paint(GdkDrawable* drawable, GdkRectangle* rect,
2317 TSOffsetStyleGCs(style, rect->x, rect->y);
2319 cliprect, gParts->tabWidget, "notebook", rect->x, rect->y,
2320 rect->width, rect->height,
2327 moz_gtk_tab_scroll_arrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
2335 gint arrow_size = MIN(rect->width, rect->height);
2336 gint x = rect->x + (rect->width - arrow_size) / 2;
2337 gint y = rect->y + (rect->height - arrow_size) / 2;
2342 TSOffsetStyleGCs(style, rect->x, rect->y);
2357 moz_gtk_menu_bar_paint(GdkDrawable* drawable, GdkRectangle* rect,
2369 TSOffsetStyleGCs(style, rect->x, rect->y);
2371 cliprect, rect->x, rect->y,
2372 rect->width, rect->height);
2375 cliprect, gParts->menuBarWidget, "menubar", rect->x, rect->y,
2376 rect->width, rect->height);
2381 moz_gtk_menu_popup_paint(GdkDrawable* drawable, GdkRectangle* rect,
2390 TSOffsetStyleGCs(style, rect->x, rect->y);
2392 cliprect, rect->x, rect->y,
2393 rect->width, rect->height);
2396 rect->x, rect->y, rect->width, rect->height);
2402 moz_gtk_menu_separator_paint(GdkDrawable* drawable, GdkRectangle* rect,
2422 TSOffsetStyleGCs(style, rect->x, rect->y);
2425 if (separator_height > rect->height)
2426 separator_height = rect->height;
2431 rect->x + horizontal_padding + style->xthickness,
2432 rect->y + (rect->height - separator_height - style->ythickness) / 2,
2433 rect->width - 2 * (horizontal_padding + style->xthickness),
2437 if (paint_height > rect->height)
2438 paint_height = rect->height;
2443 rect->x + horizontal_padding + style->xthickness,
2444 rect->x + rect->width - horizontal_padding - style->xthickness - 1,
2445 rect->y + (rect->height - style->ythickness) / 2);
2452 moz_gtk_menu_item_paint(GdkDrawable* drawable, GdkRectangle* rect,
2471 TSOffsetStyleGCs(style, rect->x, rect->y);
2477 cliprect, item_widget, "menuitem", rect->x, rect->y,
2478 rect->width, rect->height);
2485 moz_gtk_menu_arrow_paint(GdkDrawable* drawable, GdkRectangle* rect,
2497 TSOffsetStyleGCs(style, rect->x, rect->y);
2502 TRUE, rect->x, rect->y, rect->width, rect->height);
2508 moz_gtk_check_menu_item_paint(GdkDrawable* drawable, GdkRectangle* rect,
2520 moz_gtk_menu_item_paint(drawable, rect, cliprect, state, FALSE, direction);
2539 rect->width - indicator_size - offset - 3: rect->x + offset + 3;
2540 y = rect->y + (rect->height - indicator_size) / 2;
2561 moz_gtk_window_paint(GdkDrawable* drawable, GdkRectangle* rect,
2571 TSOffsetStyleGCs(style, rect->x, rect->y);
2574 cliprect, rect->x, rect->y,
2575 rect->width, rect->height);
3013 GdkRectangle* rect, GdkRectangle* cliprect,
3021 return moz_gtk_button_paint(drawable, rect, cliprect, state,
3026 return moz_gtk_button_paint(drawable, rect, cliprect, state,
3032 return moz_gtk_toggle_paint(drawable, rect, cliprect, state,
3039 return moz_gtk_scrollbar_button_paint(drawable, rect, cliprect, state,
3045 return moz_gtk_scrollbar_trough_paint(widget, drawable, rect,
3050 return moz_gtk_scrollbar_thumb_paint(widget, drawable, rect,
3055 return moz_gtk_scale_paint(drawable, rect, cliprect, state,
3060 return moz_gtk_scale_thumb_paint(drawable, rect, cliprect, state,
3064 return moz_gtk_spin_paint(drawable, rect, direction);
3068 return moz_gtk_spin_updown_paint(drawable, rect,
3074 return moz_gtk_entry_paint(drawable, rect, cliprect, state,
3078 return moz_gtk_gripper_paint(drawable, rect, cliprect, state,
3082 return moz_gtk_treeview_paint(drawable, rect, cliprect, state,
3086 return moz_gtk_tree_header_cell_paint(drawable, rect, cliprect, state,
3090 return moz_gtk_tree_header_sort_arrow_paint(drawable, rect, cliprect,
3096 return moz_gtk_treeview_expander_paint(drawable, rect, cliprect, state,
3100 return moz_gtk_expander_paint(drawable, rect, cliprect, state,
3105 return moz_gtk_entry_paint(drawable, rect, cliprect, state,
3109 return moz_gtk_caret_paint(drawable, rect, cliprect, direction);
3112 return moz_gtk_combo_box_paint(drawable, rect, cliprect, state,
3116 return moz_gtk_combo_box_entry_button_paint(drawable, rect, cliprect,
3121 return moz_gtk_entry_paint(drawable, rect, cliprect, state,
3126 return moz_gtk_container_paint(drawable, rect, cliprect, state,
3132 return moz_gtk_toggle_label_paint(drawable, rect, cliprect, state,
3137 return moz_gtk_toolbar_paint(drawable, rect, cliprect, direction);
3140 return moz_gtk_toolbar_separator_paint(drawable, rect, cliprect,
3144 return moz_gtk_tooltip_paint(drawable, rect, cliprect, direction);
3147 return moz_gtk_frame_paint(drawable, rect, cliprect, direction);
3150 return moz_gtk_resizer_paint(drawable, rect, cliprect, state,
3154 return moz_gtk_progressbar_paint(drawable, rect, cliprect, direction);
3157 return moz_gtk_progress_chunk_paint(drawable, rect, cliprect,
3161 return moz_gtk_tab_paint(drawable, rect, cliprect,
3165 return moz_gtk_tabpanels_paint(drawable, rect, cliprect, direction);
3168 return moz_gtk_tab_scroll_arrow_paint(drawable, rect, cliprect, state,
3172 return moz_gtk_menu_bar_paint(drawable, rect, cliprect, direction);
3175 return moz_gtk_menu_popup_paint(drawable, rect, cliprect, direction);
3178 return moz_gtk_menu_separator_paint(drawable, rect, cliprect,
3182 return moz_gtk_menu_item_paint(drawable, rect, cliprect, state, flags,
3186 return moz_gtk_menu_arrow_paint(drawable, rect, cliprect, state,
3190 return moz_gtk_downarrow_paint(drawable, rect, cliprect, state);
3194 return moz_gtk_check_menu_item_paint(drawable, rect, cliprect, state,
3200 return moz_gtk_vpaned_paint(drawable, rect, cliprect, state);
3203 return moz_gtk_hpaned_paint(drawable, rect, cliprect, state);
3206 return moz_gtk_window_paint(drawable, rect, cliprect, direction);