figure_style
figure_style, every colour and variable of the Dear ImGui, ImPlot and ImPlot3D styles, by name.
Every drawing procedure of this module refuses a call from a task (FIG_ERR_STATE): see processes.md. The scoped changes (*_push_*/*_pop_*, fonts) also need a frame open, and register in the scope record of the frame: a pop without its push is a usage error (app%set_checks; errors.md, "Pairing and frames"). Reading and setting the style (*_get_*, *_set_*) work outside a frame.
The style is global: a change applies to everything drawn afterwards, until it is changed again (or a new style is chosen with app%set_style, which resets every colour and variable). Names are the libraries' own:
- colours: Dear ImGui's
ImGuiCol_*without the prefix (Text,WindowBg,Button,SliderGrab, ...), ImPlot'sImPlotCol_*without the prefix (PlotBg,AxisGrid,LegendBg, ...); - variables: the fields of
ImGuiStyle(WindowRounding,FramePadding,ItemSpacing, ...) and ofImPlotStyle(PlotBorderSize,PlotPadding,MajorGridSize, ...), each a number, a pair of numbers, a logical or an integer. Line weights and marker sizes are per item in ImPlot 1.2:ip_spec; - ImPlot3D (
ip3_push_style_*only):ImPlot3DCol_*without the prefix (PlotBg,AxisGrid,LegendBg, ...) and the fields ofImPlot3DStyle(LineWeight,MarkerSize,PlotPadding,ViewScaleFactor, ...).
Colours are given as '#rrggbb' or '#rrggbbaa', or as [r, g, b] / [r, g, b, a] in [0, 1]. Variables in pixels hold the values Dear ImGui uses, already multiplied by the display's content scale (app%content_scale()).
Source: src/lib/figure_style.F90
Dependencies
Contents
- ig_set_style_color
- ip_set_style_color
- ig_set_style_var
- ip_set_style_var
- ig_push_style_color
- ip_push_style_color
- ig_push_style_var
- ip3_push_style_color
- ip3_push_style_var
- ip_push_style_var
- push_color
- push_color_hex
- push_var
- pop
- ig_push_style_color_hex
- ig_push_style_color_rgba
- ig_pop_style_color
- ig_push_style_var_r64
- ig_push_style_var_vec2
- ig_push_style_var_logical
- ig_push_style_var_i32
- ig_pop_style_var
- ip_push_style_color_hex
- ip_push_style_color_rgba
- ip_pop_style_color
- ip_push_style_var_r64
- ip_push_style_var_vec2
- ip_push_style_var_logical
- ip_pop_style_var
- ip3_push_style_color_hex
- ip3_push_style_color_rgba
- ip3_pop_style_color
- ip3_push_style_var_r64
- ip3_push_style_var_vec2
- ip3_pop_style_var
- ig_show_style_editor
- ig_push_font
- ig_pop_font
- hex_color
- set_color
- set_color_hex
- get_color
- ig_set_style_color_hex
- ig_set_style_color_rgba
- ig_get_style_color
- ip_set_style_color_hex
- ip_set_style_color_rgba
- ip_get_style_color
- set_var
- get_var
- ig_set_style_var_r64
- ig_set_style_var_vec2
- ig_set_style_var_logical
- ig_set_style_var_i32
- ig_get_style_var
- ip_set_style_var_r64
- ip_set_style_var_vec2
- ip_set_style_var_logical
- ip_get_style_var
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
LIB_IMGUI | integer(kind=c_int) | parameter | Dear ImGui. |
LIB_IMPLOT | integer(kind=c_int) | parameter | ImPlot. |
LIB_IMPLOT3D | integer(kind=c_int) | parameter | ImPlot3D. |
Interfaces
ig_set_style_color
Set a Dear ImGui colour, by hex string or by components.
Module procedures: ig_set_style_color_hex, ig_set_style_color_rgba
ip_set_style_color
Set an ImPlot colour, by hex string or by components.
Module procedures: ip_set_style_color_hex, ip_set_style_color_rgba
ig_set_style_var
Set a Dear ImGui style variable: a number, a pair, a logical or an integer.
Module procedures: ig_set_style_var_r64, ig_set_style_var_vec2, ig_set_style_var_logical, ig_set_style_var_i32
ip_set_style_var
Set an ImPlot style variable: a number, a pair or a logical.
Module procedures: ip_set_style_var_r64, ip_set_style_var_vec2, ip_set_style_var_logical
ig_push_style_color
Change a Dear ImGui colour until ig_pop_style_color, by hex string or by components.
Module procedures: ig_push_style_color_hex, ig_push_style_color_rgba
ip_push_style_color
Change an ImPlot colour until ip_pop_style_color, by hex string or by components.
Module procedures: ip_push_style_color_hex, ip_push_style_color_rgba
ig_push_style_var
Change a Dear ImGui style variable until ig_pop_style_var: a number, a pair, a logical or an integer.
Module procedures: ig_push_style_var_r64, ig_push_style_var_vec2, ig_push_style_var_logical, ig_push_style_var_i32
ip3_push_style_color
Change an ImPlot3D colour until ip3_pop_style_color: hex text or RGBA components.
Module procedures: ip3_push_style_color_hex, ip3_push_style_color_rgba
ip3_push_style_var
Change an ImPlot3D style variable until ip3_pop_style_var: a number or a pair.
Module procedures: ip3_push_style_var_r64, ip3_push_style_var_vec2
ip_push_style_var
Change an ImPlot style variable until ip_pop_style_var: a number, a pair or a logical.
Module procedures: ip_push_style_var_r64, ip_push_style_var_vec2, ip_push_style_var_logical
Subroutines
push_color
Push a colour given as components (3 or 4).
subroutine push_color(lib, who, name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
who | character(len=*) | in | Caller, for messages. | |
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
push_color_hex
Push a colour given as a hex string.
subroutine push_color_hex(lib, who, name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
who | character(len=*) | in | Caller, for messages. | |
name | character(len=*) | in | Colour name. | |
color | character(len=*) | in | '#rrggbb' or '#rrggbbaa'. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
push_var
Push a style variable of n values.
subroutine push_var(lib, name, values, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
name | character(len=*) | in | Variable name. | |
values | real(kind=real64) | in | Values. | |
n | integer(kind=c_int) | in | How many. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
pop
Undo the n newest pushes (default 1) of colours (vars = 0) or variables (vars = 1).
subroutine pop(vars, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
vars | integer(kind=c_int) | in | 0: colours, 1: variables. | |
n | integer(kind=int32) | in | optional | How many (default 1). |
stat | integer(kind=int32) | out | optional | Status: FIG_ERR_STATE for more pops than pushes. |
Call graph
ig_push_style_color_hex
Change the Dear ImGui colour name ('#rrggbb' or '#rrggbbaa') until ig_pop_style_color.
Attributes: recursive
subroutine ig_push_style_color_hex(name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImGuiCol_* without the prefix). | |
color | character(len=*) | in | Hex colour. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_push_style_color_rgba
Change the Dear ImGui colour name ([r, g, b(, a)] in [0, 1]) until ig_pop_style_color.
Attributes: recursive
subroutine ig_push_style_color_rgba(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_pop_style_color
Undo the n newest colour pushes (default 1); colours pushed by ig_push_style_color and ip_push_style_color share one stack.
Attributes: recursive
subroutine ig_pop_style_color(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ig_push_style_var_r64
Change a Dear ImGui style variable holding one number until ig_pop_style_var.
Attributes: recursive
subroutine ig_push_style_var_r64(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | real(kind=real64) | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_push_style_var_vec2
Change a Dear ImGui style variable holding a pair until ig_pop_style_var.
Attributes: recursive
subroutine ig_push_style_var_vec2(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | real(kind=real64) | in | Values (x, y). | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_push_style_var_logical
Change a Dear ImGui style variable holding a logical until ig_pop_style_var.
Attributes: recursive
subroutine ig_push_style_var_logical(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | logical | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_push_style_var_i32
Change a Dear ImGui style variable holding an enumeration until ig_pop_style_var.
Attributes: recursive
subroutine ig_push_style_var_i32(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | integer(kind=int32) | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_pop_style_var
Undo the n newest variable pushes (default 1); variables pushed by ig_push_style_var and ip_push_style_var share one stack.
Attributes: recursive
subroutine ig_pop_style_var(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ip_push_style_color_hex
Change the ImPlot colour name ('#rrggbb' or '#rrggbbaa') until ip_pop_style_color.
Attributes: recursive
subroutine ip_push_style_color_hex(name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImPlotCol_* without the prefix). | |
color | character(len=*) | in | Hex colour. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip_push_style_color_rgba
Change the ImPlot colour name ([r, g, b(, a)] in [0, 1]) until ip_pop_style_color.
Attributes: recursive
subroutine ip_push_style_color_rgba(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip_pop_style_color
Undo the n newest colour pushes (default 1): the same stack as ig_pop_style_color.
Attributes: recursive
subroutine ip_pop_style_color(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ip_push_style_var_r64
Change an ImPlot style variable holding one number until ip_pop_style_var.
Attributes: recursive
subroutine ip_push_style_var_r64(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | real(kind=real64) | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip_push_style_var_vec2
Change an ImPlot style variable holding a pair until ip_pop_style_var.
Attributes: recursive
subroutine ip_push_style_var_vec2(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | real(kind=real64) | in | Values (x, y). | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip_push_style_var_logical
Change an ImPlot style variable holding a logical until ip_pop_style_var.
Attributes: recursive
subroutine ip_push_style_var_logical(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | logical | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip_pop_style_var
Undo the n newest variable pushes (default 1): the same stack as ig_pop_style_var.
Attributes: recursive
subroutine ip_pop_style_var(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ip3_push_style_color_hex
Change the ImPlot3D colour name ('#rrggbb' or '#rrggbbaa') until ip3_pop_style_color: the 3-D plots drawn meanwhile use it. Statuses: FIG_ERR_ARGUMENT for an unknown name or a malformed colour; FIG_ERR_STATE outside a frame, from a task.
Attributes: recursive
subroutine ip3_push_style_color_hex(name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImPlot3DCol_* without the prefix). | |
color | character(len=*) | in | Hex colour. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip3_push_style_color_rgba
Change the ImPlot3D colour name ([r, g, b(, a)] in [0, 1]) until ip3_pop_style_color.
Attributes: recursive
subroutine ip3_push_style_color_rgba(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImPlot3DCol_* without the prefix). | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip3_pop_style_color
Undo the n newest colour pushes (default 1): the same stack as ig_pop_style_color and ip_pop_style_color.
Attributes: recursive
subroutine ip3_pop_style_color(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ip3_push_style_var_r64
Change an ImPlot3D style variable holding one number until ip3_pop_style_var. Statuses: FIG_ERR_ARGUMENT for an unknown name or a pair's name; FIG_ERR_STATE outside a frame, from a task.
Attributes: recursive
subroutine ip3_push_style_var_r64(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlot3DStyle). | |
value | real(kind=real64) | in | Value. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip3_push_style_var_vec2
Change an ImPlot3D style variable holding a pair until ip3_pop_style_var.
Attributes: recursive
subroutine ip3_push_style_var_vec2(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlot3DStyle). | |
value | real(kind=real64) | in | Values (x, y). | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ip3_pop_style_var
Undo the n newest variable pushes (default 1): the same stack as ig_pop_style_var and ip_pop_style_var.
Attributes: recursive
subroutine ip3_pop_style_var(n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
n | integer(kind=int32) | in | optional | How many. |
stat | integer(kind=int32) | out | optional |
Call graph
ig_show_style_editor
Dear ImGui's and ImPlot's style editors, in a window titled "Style editor": every colour and size, live; with open, the window has a close button that sets it false. Keep the result as a theme file with app%save_style.
Attributes: recursive
subroutine ig_show_style_editor(open, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
open | logical | inout | optional | Window open. |
stat | integer(kind=int32) | out | optional | Status: FIG_ERR_STATE outside a frame. |
Call graph
ig_push_font
Switch the font and/or its size for the widgets that follow, until ig_pop_font: font as app%set_font ('' keeps the current one), size in logical pixels (absent: keep). Pair every push with a pop.
Attributes: recursive
subroutine ig_push_font(font, size, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
font | character(len=*) | in | Font ('plex-sans', 'plex-mono', 'proggy', a file), or ''. | |
size | real(kind=real64) | in | optional | Size [logical pixels], in (0, 200]. |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_pop_font
Back to the font before the last ig_push_font.
Attributes: recursive
subroutine ig_pop_font(stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
stat | integer(kind=int32) | out | optional | Status. |
Call graph
hex_color
Parse '#rrggbb' or '#rrggbbaa' (the # optional, either case) into components in [0, 1].
Attributes: pure
subroutine hex_color(text, rgba, ok)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
text | character(len=*) | in | Hex colour. | |
rgba | real(kind=real64) | out | Components; alpha 1 when not given. | |
ok | logical | out | The text is a valid colour. |
Call graph
set_color
Write a colour given as components (3 or 4).
subroutine set_color(lib, who, name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
who | character(len=*) | in | Caller, for messages. | |
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
set_color_hex
Write a colour given as a hex string.
subroutine set_color_hex(lib, who, name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
who | character(len=*) | in | Caller, for messages. | |
name | character(len=*) | in | Colour name. | |
color | character(len=*) | in | '#rrggbb' or '#rrggbbaa'. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
get_color
Read a colour.
subroutine get_color(lib, name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | out | Components in [0, 1]. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_set_style_color_hex
Set the Dear ImGui colour name (Text, WindowBg, Button, ...) from '#rrggbb' or '#rrggbbaa'.
Attributes: recursive
subroutine ig_set_style_color_hex(name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImGuiCol_* without the prefix). | |
color | character(len=*) | in | Hex colour. | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_set_style_color_rgba
Set the Dear ImGui colour name from [r, g, b] or [r, g, b, a] in [0, 1].
Attributes: recursive
subroutine ig_set_style_color_rgba(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImGuiCol_* without the prefix). | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_get_style_color
The Dear ImGui colour name, as [r, g, b, a] in [0, 1].
Attributes: recursive
subroutine ig_get_style_color(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | out | Components. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_set_style_color_hex
Set the ImPlot colour name (PlotBg, AxisGrid, LegendBg, ...) from '#rrggbb' or '#rrggbbaa'.
Attributes: recursive
subroutine ip_set_style_color_hex(name, color, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImPlotCol_* without the prefix). | |
color | character(len=*) | in | Hex colour. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_set_style_color_rgba
Set the ImPlot colour name from [r, g, b] or [r, g, b, a] in [0, 1].
Attributes: recursive
subroutine ip_set_style_color_rgba(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name (ImPlotCol_* without the prefix). | |
rgba | real(kind=real64) | in | Components. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_get_style_color
The ImPlot colour name, as [r, g, b, a] in [0, 1]; ImPlot's automatic colours (derived from Dear ImGui's) are returned as ImPlot draws them.
Attributes: recursive
subroutine ip_get_style_color(name, rgba, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Colour name. | |
rgba | real(kind=real64) | out | Components. | |
stat | integer(kind=int32) | out | optional |
Call graph
set_var
Write a style variable of n values.
subroutine set_var(lib, name, values, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
name | character(len=*) | in | Variable name. | |
values | real(kind=real64) | in | Values. | |
n | integer(kind=c_int) | in | How many. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
get_var
Read a style variable.
subroutine get_var(lib, name, values, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
lib | integer(kind=c_int) | in | Library. | |
name | character(len=*) | in | Variable name. | |
values | real(kind=real64) | out | Values (the second is 0 for a single value). | |
n | integer(kind=int32) | out | How many values the variable has: 1 or 2. | |
stat | integer(kind=int32) | out | optional | Status. |
Call graph
ig_set_style_var_r64
Set a Dear ImGui style variable holding one number (WindowRounding, Alpha, IndentSpacing, ...).
Attributes: recursive
subroutine ig_set_style_var_r64(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | real(kind=real64) | in | Value. | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_set_style_var_vec2
Set a Dear ImGui style variable holding a pair (WindowPadding, FramePadding, ItemSpacing, ...).
Attributes: recursive
subroutine ig_set_style_var_vec2(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | real(kind=real64) | in | Values (x, y). | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_set_style_var_logical
Set a Dear ImGui style variable holding a logical (AntiAliasedLines, ...).
Attributes: recursive
subroutine ig_set_style_var_logical(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | logical | in | Value. | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_set_style_var_i32
Set a Dear ImGui style variable holding an enumeration (WindowMenuButtonPosition, ...).
Attributes: recursive
subroutine ig_set_style_var_i32(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImGuiStyle). | |
value | integer(kind=int32) | in | Value. | |
stat | integer(kind=int32) | out | optional |
Call graph
ig_get_style_var
A Dear ImGui style variable: its value(s) and how many it has (1, or 2 for a pair); a logical reads 0 or 1.
Attributes: recursive
subroutine ig_get_style_var(name, values, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name. | |
values | real(kind=real64) | out | Values. | |
n | integer(kind=int32) | out | 1 or 2. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_set_style_var_r64
Set an ImPlot style variable holding one number (PlotBorderSize, MinorAlpha, ...).
Attributes: recursive
subroutine ip_set_style_var_r64(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | real(kind=real64) | in | Value. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_set_style_var_vec2
Set an ImPlot style variable holding a pair (PlotPadding, MajorGridSize, LegendPadding, ...).
Attributes: recursive
subroutine ip_set_style_var_vec2(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | real(kind=real64) | in | Values (x, y). | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_set_style_var_logical
Set an ImPlot style variable holding a logical (UseLocalTime, UseISO8601, Use24HourClock).
Attributes: recursive
subroutine ip_set_style_var_logical(name, value, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name (a field of ImPlotStyle). | |
value | logical | in | Value. | |
stat | integer(kind=int32) | out | optional |
Call graph
ip_get_style_var
An ImPlot style variable: its value(s) and how many it has (1, or 2 for a pair); a logical reads 0 or 1.
Attributes: recursive
subroutine ip_get_style_var(name, values, n, stat)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
name | character(len=*) | in | Variable name. | |
values | real(kind=real64) | out | Values. | |
n | integer(kind=int32) | out | 1 or 2. | |
stat | integer(kind=int32) | out | optional |
Call graph