Merge pull request #3485 from ezz666/ldoc_readonly_tag
Ldoc readonly tag
This commit is contained in:
commit
85dc78520a
|
@ -466,7 +466,7 @@ add_custom_tag {
|
||||||
auto_subtags = false
|
auto_subtags = false
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Mark the item ad hidden.
|
-- Mark the item as hidden.
|
||||||
-- This tag should be used to hide items from the documentation.
|
-- This tag should be used to hide items from the documentation.
|
||||||
-- @hidden
|
-- @hidden
|
||||||
add_custom_tag {
|
add_custom_tag {
|
||||||
|
@ -475,6 +475,14 @@ add_custom_tag {
|
||||||
auto_subtags = false
|
auto_subtags = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Mark the item as readonly.
|
||||||
|
-- This tag should be used to mark readonly properties.
|
||||||
|
-- @readonly
|
||||||
|
add_custom_tag {
|
||||||
|
name = "readonly",
|
||||||
|
hidden = true,
|
||||||
|
auto_subtags = false
|
||||||
|
}
|
||||||
-- More fitting section names
|
-- More fitting section names
|
||||||
kind_names={topic='Documentation', module='Libraries', script='Sample files'}
|
kind_names={topic='Documentation', module='Libraries', script='Sample files'}
|
||||||
|
|
||||||
|
@ -635,6 +643,9 @@ local function generate_summary(item)
|
||||||
has_show_more = v.showcount or has_show_more
|
has_show_more = v.showcount or has_show_more
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if item.tags.readonly then
|
||||||
|
ret[#ret+1] = {title = "read only"}
|
||||||
|
end
|
||||||
|
|
||||||
item.extra_summary = #ret > 0 and ret or nil
|
item.extra_summary = #ret > 0 and ret or nil
|
||||||
item.has_show_more = has_show_more
|
item.has_show_more = has_show_more
|
||||||
|
|
|
@ -342,6 +342,16 @@ span.inheritance {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.chips--readonly {
|
||||||
|
border: 1px solid #9db9f3;
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 1px 3px;
|
||||||
|
font-size: 70%;
|
||||||
|
color: #9db9f3;
|
||||||
|
background-color: #FFF;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
table.function_list .function_args /*.function_modname*/ {
|
table.function_list .function_args /*.function_modname*/ {
|
||||||
color: #94b1ff;
|
color: #94b1ff;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
|
|
@ -292,7 +292,12 @@
|
||||||
# end
|
# end
|
||||||
</td>
|
</td>
|
||||||
# end
|
# end
|
||||||
<td colspan="$(inherited and 1 or 2)" class="summary">$(M(item.summary,item))</td>
|
<td colspan="$(inherited and 1 or 2)" class="summary">
|
||||||
|
$(M(item.summary,item))
|
||||||
|
# if item.tags.readonly then
|
||||||
|
<span class="chips--readonly">read only</span>
|
||||||
|
# end
|
||||||
|
</td>
|
||||||
# if inherited then
|
# if inherited then
|
||||||
<td class="baseclass" nowrap>
|
<td class="baseclass" nowrap>
|
||||||
Inherited from $(item.baseclass)
|
Inherited from $(item.baseclass)
|
||||||
|
|
|
@ -850,10 +850,10 @@ end
|
||||||
|
|
||||||
--- Return if a client has a fixed size or not.
|
--- Return if a client has a fixed size or not.
|
||||||
--
|
--
|
||||||
-- This property is read only.
|
|
||||||
-- @property is_fixed
|
-- @property is_fixed
|
||||||
-- @tparam[opt=false] boolean is_fixed The fixed size state
|
-- @tparam[opt=false] boolean is_fixed The fixed size state
|
||||||
-- @propemits false false
|
-- @propemits false false
|
||||||
|
-- @readonly
|
||||||
-- @see size_hints
|
-- @see size_hints
|
||||||
-- @see size_hints_honor
|
-- @see size_hints_honor
|
||||||
|
|
||||||
|
@ -876,9 +876,9 @@ end
|
||||||
-- Does the client have a fixed horizontal position and width, i.e. is it
|
-- Does the client have a fixed horizontal position and width, i.e. is it
|
||||||
-- fullscreen, maximized, or horizontally maximized?
|
-- fullscreen, maximized, or horizontally maximized?
|
||||||
--
|
--
|
||||||
-- This property is read only.
|
|
||||||
-- @property immobilized_horizontal
|
-- @property immobilized_horizontal
|
||||||
-- @tparam[opt=false] boolean immobilized_horizontal The immobilized state
|
-- @tparam[opt=false] boolean immobilized_horizontal The immobilized state
|
||||||
|
-- @readonly
|
||||||
-- @see maximized
|
-- @see maximized
|
||||||
-- @see maximized_horizontal
|
-- @see maximized_horizontal
|
||||||
-- @see fullscreen
|
-- @see fullscreen
|
||||||
|
@ -892,9 +892,9 @@ end
|
||||||
-- Does the client have a fixed vertical position and width, i.e. is it
|
-- Does the client have a fixed vertical position and width, i.e. is it
|
||||||
-- fullscreen, maximized, or vertically maximized?
|
-- fullscreen, maximized, or vertically maximized?
|
||||||
--
|
--
|
||||||
-- This property is read only.
|
|
||||||
-- @property immobilized_vertical
|
-- @property immobilized_vertical
|
||||||
-- @tparam[opt=false] boolean immobilized_vertical The immobilized state
|
-- @tparam[opt=false] boolean immobilized_vertical The immobilized state
|
||||||
|
-- @readonly
|
||||||
-- @see maximized
|
-- @see maximized
|
||||||
-- @see maximized_vertical
|
-- @see maximized_vertical
|
||||||
-- @see fullscreen
|
-- @see fullscreen
|
||||||
|
@ -1757,6 +1757,7 @@ pcommon.setup_grant(client.object, "client")
|
||||||
-- @tparam boolean active
|
-- @tparam boolean active
|
||||||
-- @request client border active granted When a client becomes active.
|
-- @request client border active granted When a client becomes active.
|
||||||
-- @request client border inactive granted When a client stop being active.
|
-- @request client border inactive granted When a client stop being active.
|
||||||
|
-- @readonly
|
||||||
-- @see activate
|
-- @see activate
|
||||||
-- @see request::activate
|
-- @see request::activate
|
||||||
-- @see awful.permissions.add_activate_filter
|
-- @see awful.permissions.add_activate_filter
|
||||||
|
|
|
@ -181,7 +181,7 @@ end
|
||||||
|
|
||||||
--- The area where clients can be tiled.
|
--- The area where clients can be tiled.
|
||||||
--
|
--
|
||||||
-- This property holds the (read only) area where clients can be tiled. Use
|
-- This property holds the area where clients can be tiled. Use
|
||||||
-- the `padding` property, `wibox.struts` and `client.struts` to modify this
|
-- the `padding` property, `wibox.struts` and `client.struts` to modify this
|
||||||
-- area.
|
-- area.
|
||||||
--
|
--
|
||||||
|
@ -193,6 +193,7 @@ end
|
||||||
-- @tparam number tiling_area.y
|
-- @tparam number tiling_area.y
|
||||||
-- @tparam number tiling_area.width
|
-- @tparam number tiling_area.width
|
||||||
-- @tparam number tiling_area.height
|
-- @tparam number tiling_area.height
|
||||||
|
-- @readonly
|
||||||
-- @see padding
|
-- @see padding
|
||||||
-- @see get_bounding_geometry
|
-- @see get_bounding_geometry
|
||||||
|
|
||||||
|
@ -205,11 +206,12 @@ end
|
||||||
|
|
||||||
--- Take a screenshot of the physical screen.
|
--- Take a screenshot of the physical screen.
|
||||||
--
|
--
|
||||||
-- Reading this (read only) property returns a screenshot of the physical
|
-- Reading this property returns a screenshot of the physical
|
||||||
-- (Xinerama) screen as a cairo surface.
|
-- (Xinerama) screen as a cairo surface.
|
||||||
--
|
--
|
||||||
-- @property content
|
-- @property content
|
||||||
-- @tparam gears.surface content
|
-- @tparam gears.surface content
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
function screen.object.get_content(s)
|
function screen.object.get_content(s)
|
||||||
local geo = s.geometry
|
local geo = s.geometry
|
||||||
|
@ -301,7 +303,6 @@ end
|
||||||
--
|
--
|
||||||
-- * *property::outputs*
|
-- * *property::outputs*
|
||||||
--
|
--
|
||||||
-- **Immutable:** true
|
|
||||||
-- @property outputs
|
-- @property outputs
|
||||||
-- @param table
|
-- @param table
|
||||||
-- @tfield table table.name A table with the screen name as key (like `eDP1` on a laptop)
|
-- @tfield table table.name A table with the screen name as key (like `eDP1` on a laptop)
|
||||||
|
@ -310,6 +311,7 @@ end
|
||||||
-- @tfield integer table.name The output name.
|
-- @tfield integer table.name The output name.
|
||||||
-- @tfield integer table.viewport_id The identifier of the viewport this output
|
-- @tfield integer table.viewport_id The identifier of the viewport this output
|
||||||
-- corresponds to.
|
-- corresponds to.
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
function screen.object.get_outputs(s)
|
function screen.object.get_outputs(s)
|
||||||
local ret = {}
|
local ret = {}
|
||||||
|
@ -555,12 +557,13 @@ end
|
||||||
|
|
||||||
--- A list of all tags on the screen.
|
--- A list of all tags on the screen.
|
||||||
--
|
--
|
||||||
-- This property is read only, use `tag.screen`, `awful.tag.add`,
|
-- Use `tag.screen`, `awful.tag.add`,
|
||||||
-- `awful.tag.new` or `t:delete()` to alter this list.
|
-- `awful.tag.new` or `t:delete()` to alter this list.
|
||||||
--
|
--
|
||||||
-- @property tags
|
-- @property tags
|
||||||
-- @param table
|
-- @param table
|
||||||
-- @treturn table A table with all available tags.
|
-- @treturn table A table with all available tags.
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
function screen.object.get_tags(s, unordered)
|
function screen.object.get_tags(s, unordered)
|
||||||
local tags = {}
|
local tags = {}
|
||||||
|
@ -584,6 +587,7 @@ end
|
||||||
-- @property selected_tags
|
-- @property selected_tags
|
||||||
-- @param table
|
-- @param table
|
||||||
-- @treturn table A table with all selected tags.
|
-- @treturn table A table with all selected tags.
|
||||||
|
-- @readonly
|
||||||
-- @see tag.selected
|
-- @see tag.selected
|
||||||
-- @see client.to_selected_tags
|
-- @see client.to_selected_tags
|
||||||
|
|
||||||
|
@ -603,6 +607,7 @@ end
|
||||||
-- @property selected_tag
|
-- @property selected_tag
|
||||||
-- @param tag
|
-- @param tag
|
||||||
-- @treturn ?tag The first selected tag or nil.
|
-- @treturn ?tag The first selected tag or nil.
|
||||||
|
-- @readonly
|
||||||
-- @see tag.selected
|
-- @see tag.selected
|
||||||
-- @see selected_tags
|
-- @see selected_tags
|
||||||
|
|
||||||
|
@ -753,10 +758,12 @@ end
|
||||||
--- The lowest density DPI from all of the (physical) outputs.
|
--- The lowest density DPI from all of the (physical) outputs.
|
||||||
-- @property minimum_dpi
|
-- @property minimum_dpi
|
||||||
-- @param number the DPI value.
|
-- @param number the DPI value.
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
--- The highest density DPI from all of the (physical) outputs.
|
--- The highest density DPI from all of the (physical) outputs.
|
||||||
-- @property maximum_dpi
|
-- @property maximum_dpi
|
||||||
-- @param number the DPI value.
|
-- @param number the DPI value.
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
--- The preferred DPI from all of the (physical) outputs.
|
--- The preferred DPI from all of the (physical) outputs.
|
||||||
--
|
--
|
||||||
|
@ -765,6 +772,7 @@ end
|
||||||
--
|
--
|
||||||
-- @property preferred_dpi
|
-- @property preferred_dpi
|
||||||
-- @param number the DPI value.
|
-- @param number the DPI value.
|
||||||
|
-- @readonly
|
||||||
|
|
||||||
--- The maximum diagonal size in millimeters.
|
--- The maximum diagonal size in millimeters.
|
||||||
--
|
--
|
||||||
|
|
|
@ -449,6 +449,7 @@ lua_class_t client_class;
|
||||||
* @property window
|
* @property window
|
||||||
* @tparam integer window
|
* @tparam integer window
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -522,6 +523,7 @@ lua_class_t client_class;
|
||||||
* @property type
|
* @property type
|
||||||
* @tparam string type
|
* @tparam string type
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see ruled.client
|
* @see ruled.client
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -550,6 +552,7 @@ lua_class_t client_class;
|
||||||
* @property class
|
* @property class
|
||||||
* @tparam string class
|
* @tparam string class
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see instance
|
* @see instance
|
||||||
* @see ruled.client
|
* @see ruled.client
|
||||||
*/
|
*/
|
||||||
|
@ -576,6 +579,7 @@ lua_class_t client_class;
|
||||||
* @property instance
|
* @property instance
|
||||||
* @tparam string instance
|
* @tparam string instance
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see class
|
* @see class
|
||||||
* @see ruled.client
|
* @see ruled.client
|
||||||
*/
|
*/
|
||||||
|
@ -588,6 +592,7 @@ lua_class_t client_class;
|
||||||
* @property pid
|
* @property pid
|
||||||
* @tparam integer pid
|
* @tparam integer pid
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -596,6 +601,7 @@ lua_class_t client_class;
|
||||||
* @property role
|
* @property role
|
||||||
* @tparam string role
|
* @tparam string role
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see instance
|
* @see instance
|
||||||
* @see class
|
* @see class
|
||||||
*/
|
*/
|
||||||
|
@ -616,6 +622,7 @@ lua_class_t client_class;
|
||||||
* @property machine
|
* @property machine
|
||||||
* @tparam string machine
|
* @tparam string machine
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -624,6 +631,7 @@ lua_class_t client_class;
|
||||||
* @property icon_name
|
* @property icon_name
|
||||||
* @tparam string icon_name
|
* @tparam string icon_name
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -670,6 +678,7 @@ lua_class_t client_class;
|
||||||
* @property icon_sizes
|
* @property icon_sizes
|
||||||
* @tparam table sizes
|
* @tparam table sizes
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see awful.widget.clienticon
|
* @see awful.widget.clienticon
|
||||||
* @see get_icon
|
* @see get_icon
|
||||||
*/
|
*/
|
||||||
|
@ -912,6 +921,7 @@ lua_class_t client_class;
|
||||||
*
|
*
|
||||||
* @property content
|
* @property content
|
||||||
* @tparam surface content
|
* @tparam surface content
|
||||||
|
* @readonly
|
||||||
* @see gears.surface
|
* @see gears.surface
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1048,6 +1058,7 @@ lua_class_t client_class;
|
||||||
* @property transient_for
|
* @property transient_for
|
||||||
* @tparam client transient_for
|
* @tparam client transient_for
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see modal
|
* @see modal
|
||||||
* @see type
|
* @see type
|
||||||
* @see is_transient_for
|
* @see is_transient_for
|
||||||
|
@ -1064,6 +1075,7 @@ lua_class_t client_class;
|
||||||
* @property group_window
|
* @property group_window
|
||||||
* @tparam integer group_window
|
* @tparam integer group_window
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see leader_window
|
* @see leader_window
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1075,6 +1087,7 @@ lua_class_t client_class;
|
||||||
* @property leader_window
|
* @property leader_window
|
||||||
* @tparam number leader_window
|
* @tparam number leader_window
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see transient_for
|
* @see transient_for
|
||||||
* @see modal
|
* @see modal
|
||||||
* @see group_window
|
* @see group_window
|
||||||
|
@ -1127,6 +1140,7 @@ lua_class_t client_class;
|
||||||
* @tparam[opt] integer|nil hints.base_width
|
* @tparam[opt] integer|nil hints.base_width
|
||||||
* @tparam[opt] integer|nil hints.base_height
|
* @tparam[opt] integer|nil hints.base_height
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see size_hints_honor
|
* @see size_hints_honor
|
||||||
* @see geometry
|
* @see geometry
|
||||||
*/
|
*/
|
||||||
|
@ -1162,6 +1176,7 @@ lua_class_t client_class;
|
||||||
* `full_application_modal` or `unknown`.
|
* `full_application_modal` or `unknown`.
|
||||||
* @tparam[opt] boolean hints.status.tearoff_window
|
* @tparam[opt] boolean hints.status.tearoff_window
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1283,6 +1298,7 @@ lua_class_t client_class;
|
||||||
* @property client_shape_bounding
|
* @property client_shape_bounding
|
||||||
* @tparam surface client_shape_bounding
|
* @tparam surface client_shape_bounding
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see shape_bounding
|
* @see shape_bounding
|
||||||
* @see shape_clip
|
* @see shape_clip
|
||||||
* @see shape_input
|
* @see shape_input
|
||||||
|
@ -1299,6 +1315,7 @@ lua_class_t client_class;
|
||||||
* @property client_shape_clip
|
* @property client_shape_clip
|
||||||
* @tparam surface client_shape_clip
|
* @tparam surface client_shape_clip
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see shape_bounding
|
* @see shape_bounding
|
||||||
* @see shape_clip
|
* @see shape_clip
|
||||||
* @see shape_input
|
* @see shape_input
|
||||||
|
@ -1379,6 +1396,7 @@ lua_class_t client_class;
|
||||||
* @property valid
|
* @property valid
|
||||||
* @tparam boolean valid
|
* @tparam boolean valid
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see kill
|
* @see kill
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1392,6 +1410,7 @@ lua_class_t client_class;
|
||||||
* @property first_tag
|
* @property first_tag
|
||||||
* @tparam tag first_tag
|
* @tparam tag first_tag
|
||||||
* @propemits false false
|
* @propemits false false
|
||||||
|
* @readonly
|
||||||
* @see tags
|
* @see tags
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -171,8 +171,6 @@
|
||||||
*
|
*
|
||||||
* * *property::geometry*
|
* * *property::geometry*
|
||||||
*
|
*
|
||||||
* **Immutable:** true
|
|
||||||
*
|
|
||||||
* @DOC_screen_geometry_EXAMPLE@
|
* @DOC_screen_geometry_EXAMPLE@
|
||||||
*
|
*
|
||||||
* @property geometry
|
* @property geometry
|
||||||
|
@ -181,6 +179,7 @@
|
||||||
* @tfield integer table.y The vertical position
|
* @tfield integer table.y The vertical position
|
||||||
* @tfield integer table.width The width
|
* @tfield integer table.width The width
|
||||||
* @tfield integer table.height The height
|
* @tfield integer table.height The height
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -208,10 +207,10 @@
|
||||||
*
|
*
|
||||||
* screen[1].answer = 42
|
* screen[1].answer = 42
|
||||||
*
|
*
|
||||||
* **Immutable:** true
|
|
||||||
* @property index
|
* @property index
|
||||||
* @param integer
|
* @param integer
|
||||||
* @see screen
|
* @see screen
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -236,6 +235,7 @@
|
||||||
* @tfield integer table.y The vertical position
|
* @tfield integer table.y The vertical position
|
||||||
* @tfield integer table.width The width
|
* @tfield integer table.width The width
|
||||||
* @tfield integer table.height The height
|
* @tfield integer table.height The height
|
||||||
|
* @readonly
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue