mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
decorations: refactor view_set_decorations
This commit is contained in:
parent
a8f98cb90b
commit
38ac6c59d6
8 changed files with 78 additions and 49 deletions
|
|
@ -65,7 +65,7 @@ void ssd_set_active(struct ssd *ssd, bool active);
|
|||
void ssd_update_title(struct ssd *ssd);
|
||||
void ssd_update_geometry(struct ssd *ssd);
|
||||
void ssd_destroy(struct ssd *ssd);
|
||||
void ssd_titlebar_hide(struct ssd *ssd);
|
||||
void ssd_set_titlebar(struct ssd *ssd, bool enabled);
|
||||
|
||||
void ssd_enable_keybind_inhibit_indicator(struct ssd *ssd, bool enable);
|
||||
void ssd_enable_shade(struct ssd *ssd, bool enable);
|
||||
|
|
|
|||
|
|
@ -30,6 +30,12 @@ enum ssd_preference {
|
|||
LAB_SSD_PREF_SERVER,
|
||||
};
|
||||
|
||||
enum ssd_mode {
|
||||
LAB_SSD_MODE_NONE,
|
||||
LAB_SSD_MODE_BORDER,
|
||||
LAB_SSD_MODE_FULL
|
||||
};
|
||||
|
||||
/**
|
||||
* Directions in which a view can be maximized. "None" is used
|
||||
* internally to mean "not maximized" but is not valid in rc.xml.
|
||||
|
|
@ -452,7 +458,7 @@ void view_toggle_visible_on_all_workspaces(struct view *view);
|
|||
bool view_is_tiled(struct view *view);
|
||||
bool view_is_floating(struct view *view);
|
||||
void view_move_to_workspace(struct view *view, struct workspace *workspace);
|
||||
void view_set_decorations(struct view *view, bool decorations);
|
||||
void view_set_decorations(struct view *view, enum ssd_mode mode);
|
||||
void view_toggle_fullscreen(struct view *view);
|
||||
void view_invalidate_last_layout_geometry(struct view *view);
|
||||
void view_adjust_for_layout_change(struct view *view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue