|
marco 1.29.1
Window manager
|
Various parameters used to calculate the geometry of a frame. More...
#include <src/ui/theme.h>
Data Fields | |
| int | refcount |
| Reference count. | |
| int | left_width |
| Size of left side. | |
| int | right_width |
| Size of right side. | |
| int | bottom_height |
| Size of bottom side. | |
| GtkBorder | invisible_resize_border |
| GtkBorder | title_border |
| Border of blue title region. | |
| int | title_vertical_pad |
| Extra height for inside of title region, above the font height. | |
| int | right_titlebar_edge |
| Right indent of buttons from edges of frame. | |
| int | left_titlebar_edge |
| Left indent of buttons from edges of frame. | |
| MetaButtonSizing | button_sizing |
| Sizing rule of buttons, either META_BUTTON_SIZING_ASPECT (in which case button_aspect will be honoured, and button_width and button_height set from it), or META_BUTTON_SIZING_FIXED (in which case we read the width and height directly). | |
| double | button_aspect |
| Ratio of height/width. | |
| int | button_width |
| Width of a button; set even when we are using aspect sizing. | |
| int | button_height |
| Height of a button; set even when we are using aspect sizing. | |
| GtkBorder | button_border |
| Space around buttons. | |
| double | title_scale |
| scale factor for title text | |
| guint | has_title: 1 |
| Whether title text will be displayed. | |
| guint | hide_buttons: 1 |
| Whether we should hide the buttons. | |
| guint | top_left_corner_rounded_radius |
| Radius of the top left-hand corner; 0 if not rounded. | |
| guint | top_right_corner_rounded_radius |
| Radius of the top right-hand corner; 0 if not rounded. | |
| guint | bottom_left_corner_rounded_radius |
| Radius of the bottom left-hand corner; 0 if not rounded. | |
| guint | bottom_right_corner_rounded_radius |
| Radius of the bottom right-hand corner; 0 if not rounded. | |
Various parameters used to calculate the geometry of a frame.
They are used inside a MetaFrameStyle. This corresponds closely to the <frame_geometry> tag in a theme file.
| int _MetaFrameLayout::bottom_height |
Size of bottom side.
Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().
| guint _MetaFrameLayout::bottom_left_corner_rounded_radius |
Radius of the bottom left-hand corner; 0 if not rounded.
Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().
| guint _MetaFrameLayout::bottom_right_corner_rounded_radius |
Radius of the bottom right-hand corner; 0 if not rounded.
Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().
| double _MetaFrameLayout::button_aspect |
Ratio of height/width.
Honoured only if button_sizing==META_BUTTON_SIZING_ASPECT. Otherwise we figure out the height from the button_border.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), meta_frame_layout_validate(), and parse_aspect_ratio().
| GtkBorder _MetaFrameLayout::button_border |
Space around buttons.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_border().
| int _MetaFrameLayout::button_height |
Height of a button; set even when we are using aspect sizing.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().
| MetaButtonSizing _MetaFrameLayout::button_sizing |
Sizing rule of buttons, either META_BUTTON_SIZING_ASPECT (in which case button_aspect will be honoured, and button_width and button_height set from it), or META_BUTTON_SIZING_FIXED (in which case we read the width and height directly).
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), meta_frame_layout_validate(), parse_aspect_ratio(), and parse_distance().
| int _MetaFrameLayout::button_width |
Width of a button; set even when we are using aspect sizing.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().
| guint _MetaFrameLayout::has_title |
Whether title text will be displayed.
Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_toplevel_element().
| guint _MetaFrameLayout::hide_buttons |
Whether we should hide the buttons.
Referenced by meta_frame_layout_calc_geometry(), and parse_toplevel_element().
| GtkBorder _MetaFrameLayout::invisible_resize_border |
Referenced by meta_frame_layout_get_borders(), and meta_frame_layout_new().
| int _MetaFrameLayout::left_titlebar_edge |
Left indent of buttons from edges of frame.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().
| int _MetaFrameLayout::left_width |
Size of left side.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().
| int _MetaFrameLayout::refcount |
Reference count.
Referenced by meta_frame_layout_copy(), meta_frame_layout_new(), meta_frame_layout_ref(), and meta_frame_layout_unref().
| int _MetaFrameLayout::right_titlebar_edge |
Right indent of buttons from edges of frame.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().
| int _MetaFrameLayout::right_width |
Size of right side.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().
| GtkBorder _MetaFrameLayout::title_border |
Border of blue title region.
Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_border().
| double _MetaFrameLayout::title_scale |
scale factor for title text
Referenced by meta_frame_layout_new(), meta_theme_get_title_scale(), and parse_toplevel_element().
| int _MetaFrameLayout::title_vertical_pad |
Extra height for inside of title region, above the font height.
Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().
| guint _MetaFrameLayout::top_left_corner_rounded_radius |
Radius of the top left-hand corner; 0 if not rounded.
Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().
| guint _MetaFrameLayout::top_right_corner_rounded_radius |
Radius of the top right-hand corner; 0 if not rounded.
Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().