Class: Gnm::Func
- Inherits:
-
Object
- Object
- Gnm::Func
- Defined in:
- (unknown)
Class Method Summary collapse
-
.add(group, descriptor, tdomain) ⇒ Gnm::Func
A new Gnm::Func.
-
.add_placeholder(scope, name, type) ⇒ Gnm::Func
A placeholder with the given name.
-
.add_placeholder_localized(gname, lname) ⇒ Gnm::Func
A placeholder with the given localized name.
- .builtin_init ⇒ nil
- .builtin_shutdown ⇒ nil
-
.convert_markup_to_pango(desc, target) ⇒ String
The escaped string with @{} markup converted to pango markup.
- .enumerate ⇒ Array<Gnm::Func>
- .init_ ⇒ nil
-
.lookup(name, scope) ⇒ Gnm::Func
The function of that name.
-
.lookup_localized(name, scope) ⇒ Gnm::Func
The function of that name.
-
.lookup_or_add_placeholder(name) ⇒ Gnm::Func
one or a placeholder.
-
.lookup_prefix(prefix, scope, trans) ⇒ GLib::SList<Gnm::Func>
whose names start with prefix.
- .shutdown_ ⇒ nil
Instance Method Summary collapse
-
#count_args(min, max) ⇒ nil
This calculates the maximum and minimum number of args that can be passed.
-
#dec_usage ⇒ nil
This function decrements the usage count of func.
-
#derivative(expr, ep, info) ⇒ Gnm::Expr
info.
-
#description ⇒ String
The description of the function.
- #dispose ⇒ nil
- #flags ⇒ Gnm::FuncFlags
- #flags=(f) ⇒ nil
- #from_desc=(desc) ⇒ nil
-
#function_group ⇒ Gnm::FuncGroup
The function group to which func belongs.
- #function_group=(group) ⇒ nil
-
#get_arg_description(arg_idx) ⇒ String
The description of the argument.
-
#get_arg_name(arg_idx) ⇒ String
The name of the argument.
-
#get_arg_type(arg_idx) ⇒ Gnm::gchar
The type of the argument.
-
#get_arg_type_string(arg_idx) ⇒ String
The type of the argument as a string.
-
#get_help(n) ⇒ Array<Gnm::FuncHelp>
func's help items.
-
#get_name(localized) ⇒ String
func's name.
-
#gettext(str) ⇒ String
domain.
- #impl_status ⇒ Gnm::FuncImplStatus
- #impl_status=(st) ⇒ nil
- #in_use ⇒ Boolean
- #in_use=(in_use) ⇒ Boolean
-
#in_use? ⇒ Boolean
In-use.
-
#inc_usage ⇒ Gnm::Func
This function increments the usage count of func.
- #is_fixargs ⇒ Boolean
- #is_varargs ⇒ Boolean
- #link_dep(ei, qlink) ⇒ Gnm::DependentFlags
- #load_if_stub ⇒ nil
-
#name ⇒ String
Name.
- #name=(name) ⇒ String
- #set_fixargs(fn, spec) ⇒ nil
- #set_help(help, n) ⇒ nil
- #set_stub ⇒ nil
- #set_varargs(fn, spec) ⇒ nil
- #test_status ⇒ Gnm::FuncTestStatus
- #test_status=(st) ⇒ nil
-
#translation_domain ⇒ String
Translation-domain.
- #translation_domain=(translation_domain) ⇒ String
Class Method Details
.add(group, descriptor, tdomain) ⇒ Gnm::Func
Returns a new Gnm::Func.
.add_placeholder(scope, name, type) ⇒ Gnm::Func
Returns a placeholder with the given name.
.add_placeholder_localized(gname, lname) ⇒ Gnm::Func
Returns a placeholder with the given localized name.
.builtin_init ⇒ nil
.builtin_shutdown ⇒ nil
.convert_markup_to_pango(desc, target) ⇒ String
Returns the escaped string with @{} markup converted to pango markup.
.enumerate ⇒ Array<Gnm::Func>
.init_ ⇒ nil
.lookup(name, scope) ⇒ Gnm::Func
Returns the function of that name.
.lookup_localized(name, scope) ⇒ Gnm::Func
Returns the function of that name.
.lookup_or_add_placeholder(name) ⇒ Gnm::Func
one or a placeholder.
.lookup_prefix(prefix, scope, trans) ⇒ GLib::SList<Gnm::Func>
whose names start with prefix.
.shutdown_ ⇒ nil
Instance Method Details
#count_args(min, max) ⇒ nil
This calculates the maximum and minimum number of args that can be passed. For a vararg function, the maximum will be set to G_MAXINT.
#dec_usage ⇒ nil
This function decrements the usage count of func. When the usage count reaches zero, the function may be unloaded, for example by unloading the plugin that defines it.
#derivative(expr, ep, info) ⇒ Gnm::Expr
info.
#description ⇒ String
Returns the description of the function.
#dispose ⇒ nil
#flags ⇒ Gnm::FuncFlags
#flags=(f) ⇒ nil
#from_desc=(desc) ⇒ nil
#function_group ⇒ Gnm::FuncGroup
Returns the function group to which func belongs.
#function_group=(group) ⇒ nil
#get_arg_description(arg_idx) ⇒ String
Returns the description of the argument.
#get_arg_name(arg_idx) ⇒ String
Returns the name of the argument.
#get_arg_type(arg_idx) ⇒ Gnm::gchar
Returns the type of the argument.
#get_arg_type_string(arg_idx) ⇒ String
Returns the type of the argument as a string.
#get_help(n) ⇒ Array<Gnm::FuncHelp>
Returns func's help items.
#get_name(localized) ⇒ String
Returns func's name.
#gettext(str) ⇒ String
domain.
#impl_status ⇒ Gnm::FuncImplStatus
#impl_status=(st) ⇒ nil
#in_use ⇒ Boolean
#in_use=(in_use) ⇒ Boolean
#in_use? ⇒ Boolean
Returns in-use.
#inc_usage ⇒ Gnm::Func
This function increments the usage count of func. A non-zero usage count prevents the unloading of the function.
#is_fixargs ⇒ Boolean
#is_varargs ⇒ Boolean
#link_dep(ei, qlink) ⇒ Gnm::DependentFlags
#load_if_stub ⇒ nil
#name ⇒ String
Returns name.
#name=(name) ⇒ String
#set_fixargs(fn, spec) ⇒ nil
#set_help(help, n) ⇒ nil
#set_stub ⇒ nil
#set_varargs(fn, spec) ⇒ nil
#test_status ⇒ Gnm::FuncTestStatus
#test_status=(st) ⇒ nil
#translation_domain ⇒ String
Returns translation-domain.