_MetaFrameLayout Struct Reference

Various parameters used to calculate the geometry of a frame. More...


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 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.


Detailed Description

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.

Bug:
button_sizing isn't really necessary, because we could easily say that if button_aspect is zero, the height and width are fixed values. This would also mean that MetaButtonSizing didn't need to exist, and save code.

Definition at line 83 of file theme.h.


Field Documentation

Reference count.

Definition at line 86 of file theme.h.

Referenced by meta_frame_layout_copy(), meta_frame_layout_new(), meta_frame_layout_ref(), and meta_frame_layout_unref().

Size of left side.

Definition at line 89 of file theme.h.

Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().

Size of right side.

Definition at line 91 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().

Size of bottom side.

Definition at line 93 of file theme.h.

Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().

Border of blue title region.

Bug:
(blue?!)

Definition at line 98 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_border().

Extra height for inside of title region, above the font height.

Definition at line 101 of file theme.h.

Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().

Right indent of buttons from edges of frame.

Definition at line 104 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().

Left indent of buttons from edges of frame.

Definition at line 106 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().

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).

Definition at line 115 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), meta_frame_layout_validate(), parse_aspect_ratio(), and parse_distance().

Ratio of height/width.

Honoured only if button_sizing==META_BUTTON_SIZING_ASPECT. Otherwise we figure out the height from the button_border.

Definition at line 122 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), meta_frame_layout_validate(), and parse_aspect_ratio().

Width of a button; set even when we are using aspect sizing.

Definition at line 125 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_new(), and parse_distance().

Height of a button; set even when we are using aspect sizing.

Definition at line 128 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_distance().

Space around buttons.

Definition at line 131 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_border().

scale factor for title text

Definition at line 134 of file theme.h.

Referenced by meta_frame_layout_new(), meta_theme_get_title_scale(), and parse_toplevel_element().

Whether title text will be displayed.

Definition at line 137 of file theme.h.

Referenced by meta_frame_layout_get_borders(), meta_frame_layout_new(), and parse_toplevel_element().

Whether we should hide the buttons.

Definition at line 140 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), and parse_toplevel_element().

Radius of the top left-hand corner; 0 if not rounded.

Definition at line 143 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().

Radius of the top right-hand corner; 0 if not rounded.

Definition at line 145 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().

Radius of the bottom left-hand corner; 0 if not rounded.

Definition at line 147 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().

Radius of the bottom right-hand corner; 0 if not rounded.

Definition at line 149 of file theme.h.

Referenced by meta_frame_layout_calc_geometry(), meta_preview_get_clip_region(), and parse_toplevel_element().


The documentation for this struct was generated from the following file:

Generated on Sat Aug 23 22:04:24 2008 for metacity by  doxygen 1.5.5