MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / justificationFromProperty

Function justificationFromProperty

Source/Core/CtrlrUtilitiesGUI.cpp:25–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25const Justification justificationFromProperty(const var &justificationProperty)
26{
27 if (justificationProperty == "left")
28 {
29 return (Justification::left);
30 }
31 else if (justificationProperty == "right")
32 {
33 return (Justification::right);
34 }
35 else if (justificationProperty == "horizontallyCentred")
36 {
37 return (Justification::horizontallyCentred);
38 }
39 else if (justificationProperty == "top")
40 {
41 return (Justification::top);
42 }
43 else if (justificationProperty == "bottom")
44 {
45 return (Justification::bottom);
46 }
47 else if (justificationProperty == "verticallyCentred")
48 {
49 return (Justification::verticallyCentred);
50 }
51 else if (justificationProperty == "horizontallyJustified")
52 {
53 return (Justification::horizontallyJustified);
54 }
55 else if (justificationProperty == "centred")
56 {
57 return (Justification::centred);
58 }
59 else if (justificationProperty == "centredLeft")
60 {
61 return (Justification::centredLeft);
62 }
63 else if (justificationProperty == "centredRight")
64 {
65 return (Justification::centredRight);
66 }
67 else if (justificationProperty == "centredTop")
68 {
69 return (Justification::centredTop);
70 }
71 else if (justificationProperty == "centredBottom")
72 {
73 return (Justification::centredBottom);
74 }
75 else if (justificationProperty == "topLeft")
76 {
77 return (Justification::topLeft);
78 }
79 else if (justificationProperty == "topRight")
80 {
81 return (Justification::topRight);
82 }

Callers 13

createSliderTextBoxMethod · 0.85
createSliderTextBoxMethod · 0.85
createSliderTextBoxMethod · 0.85
createSliderTextBoxMethod · 0.85
drawTextBoxTextMethod · 0.85
paintListBoxItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected