/*EXTL_DOC * Get module basic settings. For details, see \fnref{mod_menu.set}. */ EXTL_SAFE EXTL_EXPORT ExtlTab mod_menu_get() { ExtlTab tab=extl_create_table(); extl_table_sets_i(tab, "scroll_amount", scroll_amount); extl_table_sets_i(tab, "scroll_delay", scroll_time); return tab; }
void ioncore_get_moveres_accel(ExtlTab tab) { extl_table_sets_i(tab, "kbresize_t_max", actmax), extl_table_sets_i(tab, "kbresize_t_min", uptmin); extl_table_sets_d(tab, "kbresize_step", accelinc); extl_table_sets_d(tab, "kbresize_maxacc", accelmax); extl_table_sets_d(tab, "kbresize_delay", resize_delay); extl_table_sets_i(tab, "edge_resistance", ioncore_edge_resistance); }
ExtlTab extl_table_from_rectangle(const WRectangle *rect) { ExtlTab tab=extl_create_table(); extl_table_sets_i(tab, "x", rect->x); extl_table_sets_i(tab, "y", rect->y); extl_table_sets_i(tab, "w", rect->w); extl_table_sets_i(tab, "h", rect->h); return tab; }
ExtlTab region_size_hints_extl(WRegion *reg) { WSizeHints hints; ExtlTab tab; region_size_hints(reg, &hints); tab=extl_create_table(); if(hints.base_set){ extl_table_sets_i(tab, "base_w", hints.base_width); extl_table_sets_i(tab, "base_h", hints.base_height); } if(hints.min_set){ extl_table_sets_i(tab, "min_w", hints.min_width); extl_table_sets_i(tab, "min_h", hints.min_height); } if(hints.max_set){ extl_table_sets_i(tab, "max_w", hints.max_width); extl_table_sets_i(tab, "max_h", hints.max_height); } if(hints.inc_set){ extl_table_sets_i(tab, "inc_w", hints.width_inc); extl_table_sets_i(tab, "inc_h", hints.height_inc); } return tab; }
/*EXTL_DOC * Get parameters. For details see \fnref{mod_tiling.set}. */ EXTL_SAFE EXTL_EXPORT ExtlTab mod_tiling_get() { ExtlTab tab=extl_create_table(); extl_table_sets_i(tab, "raise_delay", mod_tiling_raise_delay); return tab; }
void ioncore_groupws_get(ExtlTab t) { extl_table_sets_s(t, "float_placement_method", (ioncore_placement_method==PLACEMENT_UDLR ? "udlr" : (ioncore_placement_method==PLACEMENT_LRUD ? "lrud" : "random"))); extl_table_sets_i(t, "float_placement_padding", ioncore_placement_padding); }
/*EXTL_DOC * Get ioncore basic settings. For details see \fnref{ioncore.set}. */ EXTL_SAFE EXTL_EXPORT ExtlTab ioncore_get() { ExtlTab tab=extl_create_table(); extl_table_sets_b(tab, "opaque_resize", ioncore_g.opaque_resize); extl_table_sets_b(tab, "warp", ioncore_g.warp_enabled); extl_table_sets_b(tab, "switchto", ioncore_g.switchto_new); extl_table_sets_i(tab, "dblclick_delay", ioncore_g.dblclick_delay); extl_table_sets_b(tab, "screen_notify", ioncore_g.screen_notify); extl_table_sets_b(tab, "framed_transients", ioncore_g.framed_transients); extl_table_sets_b(tab, "unsqueeze", ioncore_g.unsqueeze_enabled); extl_table_sets_b(tab, "autoraise", ioncore_g.autoraise); extl_table_sets_b(tab, "autosave_layout", ioncore_g.autosave_layout); extl_table_sets_i(tab, "focuslist_insert_delay", ioncore_g.focuslist_insert_delay); extl_table_sets_i(tab, "workspace_indicator_timeout", ioncore_g.workspace_indicator_timeout); extl_table_sets_b(tab, "activity_notification_on_all_screens", ioncore_g.activity_notification_on_all_screens); extl_table_sets_s(tab, "window_stacking_request", stringintmap_key(win_stackrq, ioncore_g.window_stacking_request, NULL)); extl_table_sets_s(tab, "frame_default_index", stringintmap_key(frame_idxs, ioncore_g.frame_default_index, NULL)); extl_table_sets_s(tab, "mousefocus", (ioncore_g.no_mousefocus ? "disabled" : "sloppy")); ioncore_get_moveres_accel(tab); ioncore_groupws_get(tab); return tab; }
/*EXTL_DOC * Get module configuration. For more information see * \fnref{mod_query.set}. */ EXTL_SAFE EXTL_EXPORT ExtlTab mod_query_get() { ModQueryConfig *c=&mod_query_config; ExtlTab tab=extl_create_table(); extl_table_sets_b(tab, "autoshowcompl", c->autoshowcompl); extl_table_sets_i(tab, "autoshowcompl_delay", c->autoshowcompl_delay); extl_table_sets_b(tab, "caseicompl", c->caseicompl); extl_table_sets_b(tab, "substrcompl", c->substrcompl); return tab; }
ExtlTab manageparams_to_table(const WManageParams *mp) { ExtlTab t=extl_create_table(); extl_table_sets_b(t, "switchto", mp->switchto); extl_table_sets_b(t, "jumpto", mp->jumpto); extl_table_sets_b(t, "userpos", mp->userpos); extl_table_sets_b(t, "dockapp", mp->dockapp); extl_table_sets_b(t, "maprq", mp->maprq); extl_table_sets_i(t, "gravity", mp->gravity); extl_table_sets_rectangle(t, "geom", &(mp->geom)); extl_table_sets_o(t, "tfor", (Obj*)(mp->tfor)); return t; }