doc: fix typos with root.c and beautiful
This commit is contained in:
parent
3fe663fc60
commit
e25bc558c4
|
@ -54,7 +54,7 @@ local function load_font(name)
|
||||||
-- Apply default values from the context (e.g. a default font size)
|
-- Apply default values from the context (e.g. a default font size)
|
||||||
desc:merge(ctx:get_font_description(), false)
|
desc:merge(ctx:get_font_description(), false)
|
||||||
|
|
||||||
-- Calculate fond height
|
-- Calculate font height.
|
||||||
local metrics = ctx:get_metrics(desc, nil)
|
local metrics = ctx:get_metrics(desc, nil)
|
||||||
local height = math.ceil((metrics:get_ascent() + metrics:get_descent()) / Pango.SCALE)
|
local height = math.ceil((metrics:get_ascent() + metrics:get_descent()) / Pango.SCALE)
|
||||||
|
|
||||||
|
|
18
root.c
18
root.c
|
@ -135,7 +135,7 @@ _string_to_key_code(const char *s)
|
||||||
|
|
||||||
/** Send fake events. Usually the current focused client will get it.
|
/** Send fake events. Usually the current focused client will get it.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam The event type: key_press, key_release, button_press, button_release
|
* \lparam The event type: key_press, key_release, button_press, button_release
|
||||||
* or motion_notify.
|
* or motion_notify.
|
||||||
|
@ -208,9 +208,9 @@ luaA_root_fake_input(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get or set global key bindings.
|
/** Get or set global key bindings.
|
||||||
* This binding will be available when you'll press keys on root window.
|
* This binding will be available when you'll press keys on the root window.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam An array of key bindings objects, or nothing.
|
* \lparam An array of key bindings objects, or nothing.
|
||||||
* \lreturn The array of key bindings objects of this client.
|
* \lreturn The array of key bindings objects of this client.
|
||||||
|
@ -250,9 +250,9 @@ luaA_root_keys(lua_State *L)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get or set global mouse bindings.
|
/** Get or set global mouse bindings.
|
||||||
* This binding will be available when you'll click on root window.
|
* This binding will be available when you'll click on the root window.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam An array of mouse button bindings objects, or nothing.
|
* \lparam An array of mouse button bindings objects, or nothing.
|
||||||
* \lreturn The array of mouse button bindings objects.
|
* \lreturn The array of mouse button bindings objects.
|
||||||
|
@ -289,7 +289,7 @@ luaA_root_buttons(lua_State *L)
|
||||||
|
|
||||||
/** Set the root cursor.
|
/** Set the root cursor.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lparam A X cursor name.
|
* \lparam A X cursor name.
|
||||||
*/
|
*/
|
||||||
|
@ -316,7 +316,7 @@ luaA_root_cursor(lua_State *L)
|
||||||
|
|
||||||
/** Get the drawins attached to a screen.
|
/** Get the drawins attached to a screen.
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lreturn A table with all drawins.
|
* \lreturn A table with all drawins.
|
||||||
*/
|
*/
|
||||||
|
@ -336,7 +336,7 @@ luaA_root_drawins(lua_State *L)
|
||||||
|
|
||||||
/** Get the screen's wallpaper
|
/** Get the screen's wallpaper
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lreturn A cairo surface for the wallpaper.
|
* \lreturn A cairo surface for the wallpaper.
|
||||||
*/
|
*/
|
||||||
|
@ -400,7 +400,7 @@ luaA_root_wallpaper(lua_State *L)
|
||||||
|
|
||||||
/** Get the screen's wallpaper
|
/** Get the screen's wallpaper
|
||||||
* \param L The Lua VM state.
|
* \param L The Lua VM state.
|
||||||
* \return The number of element pushed on stack.
|
* \return The number of elements pushed on stack.
|
||||||
* \luastack
|
* \luastack
|
||||||
* \lreturn A cairo surface for the wallpaper.
|
* \lreturn A cairo surface for the wallpaper.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue