edelib 2.1.0
|
Typedefs | |
typedef void(* | NetwmCallback) (int action, Window xid, void *data) |
typedef void(* NetwmCallback) (int action, Window xid, void *data) |
Callback type for netwm_callback_add().
anonymous enum |
Various codes reported to callback added with netwm_callback_add().
anonymous enum |
Window type codes. Codes marked as (part of 1.4) are added in Window Manager Specification 1.4 and not all window managers support it. The rest of codes are part of 1.3 specification version.
enum NetwmStateAction |
enum NetwmStateValue |
State of the window. These values represent newer EWMH standard states.
enum WmStateValue |
void netwm_callback_add | ( | NetwmCallback | cb, |
void * | data = 0 ) |
Register callback for events related to windows and environment. This function will open display by calling fl_open_display().
When actions get reported, window id will be set to target id. If action wasn't figured, it will be set to -1.
References edelib::netwm_callback_add().
Referenced by edelib::netwm_callback_add().
void netwm_callback_remove | ( | NetwmCallback | cb | ) |
Remove callback if exists.
References edelib::netwm_callback_remove().
Referenced by edelib::netwm_callback_remove().
void netwm_window_close | ( | Window | win | ) |
Window netwm_window_get_active | ( | void | ) |
Return ID of currently focused window. If fails, return -1.
References edelib::netwm_window_get_active().
Referenced by edelib::netwm_window_get_active().
int netwm_window_get_all_mapped | ( | Window ** | windows | ) |
Get array of mapped windows. Returns array size or -1 if fails. Call XFree() to free allocation.
References edelib::netwm_window_get_all_mapped().
Referenced by edelib::netwm_window_get_all_mapped().
bool netwm_window_get_all_states | ( | Window | win, |
list< NetwmStateValue > & | ret ) |
Get all window states. Returns false if wasn't able to retrieve window state.
References edelib::netwm_window_get_all_states().
Referenced by edelib::netwm_window_get_all_states().
Fl_RGB_Image * netwm_window_get_icon | ( | Window | win, |
unsigned int | requested_width = 0 ) |
Return window icon set with _NET_WM_ICON property. Since application can have multiple icons, with this function you can set desired size to be returned, via requested_width. If icon with requested size wasn't found, it will return the first one.
References edelib::netwm_window_get_icon().
Referenced by edelib::netwm_window_get_icon().
char * netwm_window_get_title | ( | Window | win | ) |
Return window title or NULL if fails. Call free() on returned string.
References edelib::netwm_window_get_title().
Referenced by edelib::netwm_window_get_title().
int netwm_window_get_type | ( | Window | win | ) |
Return window type by returning one of NETWM_WINDOW_TYPE_* codes. If fails, the function returns -1.
References edelib::netwm_window_get_type().
Referenced by edelib::netwm_window_get_type().
int netwm_window_get_workspace | ( | Window | win | ) |
Get workspace given window resides. If fails returns -2 or return -1 if window is sticky (present on all workspaces).
References edelib::netwm_window_get_workspace().
Referenced by edelib::netwm_window_get_workspace().
bool netwm_window_have_state | ( | Window | win, |
NetwmStateValue | val ) |
Check if window has given state. Returns false if not.
References edelib::netwm_window_have_state().
Referenced by edelib::netwm_window_have_state().
int netwm_window_is_manageable | ( | Window | win | ) |
Return 1 if given window is manageable (window can be moved or closed) or 0 if not. Desktop, dock and splash types are not manageable. In case it could not figure out this property, it will return -1.
References edelib::netwm_window_is_manageable().
Referenced by edelib::netwm_window_is_manageable().
void netwm_window_maximize | ( | Window | win | ) |
Maximize window.
References edelib::netwm_window_maximize().
Referenced by edelib::netwm_window_maximize().
void netwm_window_remove_strut | ( | Window | win | ) |
Remove offset, previously set with netwm_window_set_strut. If offset not set, it will do nothing.
References edelib::netwm_window_remove_strut().
Referenced by edelib::netwm_window_remove_strut().
void netwm_window_remove_strut_partial | ( | Window | win | ) |
Remove offset, previously set with netwm_window_set_strut_partial. If offset not set, it will do nothing.
References edelib::netwm_window_remove_strut_partial().
Referenced by edelib::netwm_window_remove_strut_partial().
void netwm_window_set_active | ( | Window | win, |
int | source = 0 ) |
Try to focus or raise given window. source must be set to 1 if request comes from application, and 2 when it comes from pager. By default, source is 0 so it (by specification) indicates using older specification version.
References edelib::netwm_window_set_active().
Referenced by edelib::netwm_window_set_active().
void netwm_window_set_state | ( | Window | win, |
NetwmStateValue | val, | ||
NetwmStateAction | action ) |
Set window state to one of NetwmStateValue values. Value will be set, removed or toggled according to NetwmStateAction action.
References edelib::netwm_window_set_state().
Referenced by edelib::netwm_window_set_state().
void netwm_window_set_strut | ( | Window | win, |
int | left, | ||
int | right, | ||
int | top, | ||
int | bottom ) |
Resize area by setting offsets to each side. win will be outside that area.
References edelib::netwm_window_set_strut().
Referenced by edelib::netwm_window_set_strut().
void netwm_window_set_strut_partial | ( | Window | win, |
int | sizes[12] ) |
Resize area by setting offsets to each side and win will be outside that area. This function will use newer _NET_WM_STRUT_PARTIAL hint, which is highly likely to be supported by newer window managers.
Array is in offset form: left, right, top, bottom, left_start_y, left_end_y, right_start_y, right_end_y, top_start_x, top_end_x, bottom_start_x, bottom_end_x.
References edelib::netwm_window_set_strut_partial().
Referenced by edelib::netwm_window_set_strut_partial().
void netwm_window_set_type | ( | Window | win, |
int | t ) |
Set window type by using one of NETWM_WINDOW_TYPE_* codes. Depending on window managers some types will be applied correctly when window is showed and for some, application must be restarted.
References edelib::netwm_window_set_type().
Referenced by edelib::netwm_window_set_type().
bool netwm_workarea_get_size | ( | int & | x, |
int & | y, | ||
int & | w, | ||
int & | h ) |
Get workarea set by window manager. Return false if fails.
References edelib::netwm_workarea_get_size().
Referenced by edelib::netwm_workarea_get_size().
void netwm_workspace_change | ( | int | n | ) |
Change current workspace.
References edelib::netwm_workspace_change().
Referenced by edelib::netwm_workspace_change().
void netwm_workspace_free_names | ( | char ** | names | ) |
Free allocated names array with netwm_workspace_get_names().
References edelib::netwm_workspace_free_names().
Referenced by edelib::netwm_workspace_free_names().
int netwm_workspace_get_count | ( | void | ) |
Return number of available workspaces. Returns -1 if failed to fetch workspaces count.
References edelib::netwm_workspace_get_count().
Referenced by edelib::netwm_workspace_get_count().
int netwm_workspace_get_current | ( | void | ) |
Currently visible workspace. Workspaces are starting from 0. Returns -1 if failed.
References edelib::netwm_workspace_get_current().
Referenced by edelib::netwm_workspace_get_current().
int netwm_workspace_get_names | ( | char **& | names | ) |
Get array of workspace names. Function returns number of allocated items in array and should be freed with netwm_workspace_free_names().
References edelib::netwm_workspace_get_names().
Referenced by edelib::netwm_workspace_get_names().
void wm_window_ede_restore | ( | Window | win | ) |
edewm specific: restore window to previous state
References edelib::wm_window_ede_restore().
Referenced by edelib::wm_window_ede_restore().
WmStateValue wm_window_get_state | ( | Window | win | ) |
Not part of NETWM. Set window state to one of WmStateValue.
References edelib::wm_window_get_state().
Referenced by edelib::wm_window_get_state().
void wm_window_set_state | ( | Window | win, |
WmStateValue | state ) |
Not part of NETWM. Get one of WmStateValue for given window.
References edelib::wm_window_set_state().
Referenced by edelib::wm_window_set_state().