No Description

class_q_c_p_layout_inset.tex 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. \hypertarget{class_q_c_p_layout_inset}{}\section{Referencia de la Clase Q\+C\+P\+Layout\+Inset}
  2. \label{class_q_c_p_layout_inset}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  3. A layout that places child elements aligned to the border or arbitrarily positioned.
  4. Diagrama de herencias de Q\+C\+P\+Layout\+Inset\begin{figure}[H]
  5. \begin{center}
  6. \leavevmode
  7. \includegraphics[height=5.000000cm]{class_q_c_p_layout_inset}
  8. \end{center}
  9. \end{figure}
  10. \subsection*{Tipos públicos}
  11. \begin{DoxyCompactItemize}
  12. \item
  13. enum \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement} \{ \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{ip\+Free},
  14. \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{ip\+Border\+Aligned}
  15. \}
  16. \end{DoxyCompactItemize}
  17. \subsection*{Métodos públicos}
  18. \begin{DoxyCompactItemize}
  19. \item
  20. \hyperlink{class_q_c_p_layout_inset_a3ad984f3221735374cc5dee14356a7dd}{Q\+C\+P\+Layout\+Inset} ()
  21. \item
  22. \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement} \hyperlink{class_q_c_p_layout_inset_a8472ff2508807513e4cb0ce0c1d652b3}{inset\+Placement} (int index) const
  23. \item
  24. Qt\+::\+Alignment \hyperlink{class_q_c_p_layout_inset_a78c0c494bb5728237cebb63ae8ef5c58}{inset\+Alignment} (int index) const
  25. \item
  26. Q\+Rect\+F \hyperlink{class_q_c_p_layout_inset_a5ec7037b3b8d20fbf9560e01779b1442}{inset\+Rect} (int index) const
  27. \item
  28. void \hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement} (int index, \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement} placement)
  29. \item
  30. void \hyperlink{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{set\+Inset\+Alignment} (int index, Qt\+::\+Alignment alignment)
  31. \item
  32. void \hyperlink{class_q_c_p_layout_inset_aa487c8378a6f9533567a2e6430099dc3}{set\+Inset\+Rect} (int index, const Q\+Rect\+F \&\hyperlink{class_q_c_p_layout_element_affdfea003469aac3d0fac5f4e06171bc}{rect})
  33. \item
  34. \hypertarget{class_q_c_p_layout_inset_a7b33fdd51b18e6db7cea9bfb2d263b4a}{}virtual void {\bfseries update\+Layout} ()\label{class_q_c_p_layout_inset_a7b33fdd51b18e6db7cea9bfb2d263b4a}
  35. \item
  36. virtual int \hyperlink{class_q_c_p_layout_inset_a2087b97b9266fd9e0f571a8d3cf709f9}{element\+Count} () const
  37. \item
  38. virtual \hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$ \hyperlink{class_q_c_p_layout_inset_ab096d07b08f9b5455647f3ba7ff60e27}{element\+At} (int index) const
  39. \item
  40. virtual \hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$ \hyperlink{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}{take\+At} (int index)
  41. \item
  42. virtual bool \hyperlink{class_q_c_p_layout_inset_a9ac707ccff650633b97f52dd5cddcf49}{take} (\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$element)
  43. \item
  44. virtual void \hyperlink{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}{simplify} ()
  45. \item
  46. virtual double \hyperlink{class_q_c_p_layout_inset_ab5a2f2b88c05e369fd7da9583d17aa3a}{select\+Test} (const Q\+Point\+F \&pos, bool only\+Selectable, Q\+Variant $\ast$details=0) const
  47. \item
  48. void \hyperlink{class_q_c_p_layout_inset_ad61529eb576af7f04dff94abb10c745a}{add\+Element} (\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$element, Qt\+::\+Alignment alignment)
  49. \item
  50. void \hyperlink{class_q_c_p_layout_inset_a8ff61fbee4a1f0ff45c398009d9f1e56}{add\+Element} (\hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$element, const Q\+Rect\+F \&\hyperlink{class_q_c_p_layout_element_affdfea003469aac3d0fac5f4e06171bc}{rect})
  51. \end{DoxyCompactItemize}
  52. \subsection*{Atributos protegidos}
  53. \begin{DoxyCompactItemize}
  54. \item
  55. \hypertarget{class_q_c_p_layout_inset_a8fff7eae9a1be9a5c1e544fb379f682f}{}Q\+List$<$ \hyperlink{class_q_c_p_layout_element}{Q\+C\+P\+Layout\+Element} $\ast$ $>$ {\bfseries m\+Elements}\label{class_q_c_p_layout_inset_a8fff7eae9a1be9a5c1e544fb379f682f}
  56. \item
  57. \hypertarget{class_q_c_p_layout_inset_a57a0a4e445cc78eada29765ecf092abe}{}Q\+List$<$ \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement} $>$ {\bfseries m\+Inset\+Placement}\label{class_q_c_p_layout_inset_a57a0a4e445cc78eada29765ecf092abe}
  58. \item
  59. \hypertarget{class_q_c_p_layout_inset_a55e9b84c310136ff985a6544184ab64a}{}Q\+List$<$ Qt\+::\+Alignment $>$ {\bfseries m\+Inset\+Alignment}\label{class_q_c_p_layout_inset_a55e9b84c310136ff985a6544184ab64a}
  60. \item
  61. \hypertarget{class_q_c_p_layout_inset_aaa8f6b5029458f3d97a65239524a2b33}{}Q\+List$<$ Q\+Rect\+F $>$ {\bfseries m\+Inset\+Rect}\label{class_q_c_p_layout_inset_aaa8f6b5029458f3d97a65239524a2b33}
  62. \end{DoxyCompactItemize}
  63. \subsection*{Otros miembros heredados}
  64. \subsection{Descripción detallada}
  65. A layout that places child elements aligned to the border or arbitrarily positioned.
  66. Elements are placed either aligned to the border or at arbitrary position in the area of the layout. Which placement applies is controlled with the \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement} (\hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement}).
  67. Elements are added via \hyperlink{class_q_c_p_layout_inset_ad61529eb576af7f04dff94abb10c745a}{add\+Element(\+Q\+C\+P\+Layout\+Element $\ast$element, Qt\+::\+Alignment alignment)} or \hyperlink{class_q_c_p_layout_inset_a8ff61fbee4a1f0ff45c398009d9f1e56}{add\+Element(\+Q\+C\+P\+Layout\+Element $\ast$element, const Q\+Rect\+F \&rect)}. If the first method is used, the inset placement will default to \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{ip\+Border\+Aligned} and the element will be aligned according to the {\itshape alignment} parameter. The second method defaults to \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{ip\+Free} and allows placing elements at arbitrary position and size, defined by {\itshape rect}.
  68. The alignment or rect can be set via \hyperlink{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{set\+Inset\+Alignment} or \hyperlink{class_q_c_p_layout_inset_aa487c8378a6f9533567a2e6430099dc3}{set\+Inset\+Rect}, respectively.
  69. This is the layout that every \hyperlink{class_q_c_p_axis_rect}{Q\+C\+P\+Axis\+Rect} has as \hyperlink{class_q_c_p_axis_rect_a4114887c7141b59650b7488f930993e5}{Q\+C\+P\+Axis\+Rect\+::inset\+Layout}.
  70. \subsection{Documentación de las enumeraciones miembro de la clase}
  71. \hypertarget{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!Inset\+Placement@{Inset\+Placement}}
  72. \index{Inset\+Placement@{Inset\+Placement}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  73. \subsubsection[{Inset\+Placement}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Q\+C\+P\+Layout\+Inset\+::\+Inset\+Placement}}\label{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}
  74. Defines how the placement and sizing is handled for a certain element in a \hyperlink{class_q_c_p_layout_inset}{Q\+C\+P\+Layout\+Inset}. \begin{Desc}
  75. \item[Valores de enumeraciones]\par
  76. \begin{description}
  77. \index{ip\+Free@{ip\+Free}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!ip\+Free@{ip\+Free}}\item[{\em
  78. \hypertarget{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{}ip\+Free\label{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}
  79. }]The element may be positioned/sized arbitrarily, see \hyperlink{class_q_c_p_layout_inset_aa487c8378a6f9533567a2e6430099dc3}{set\+Inset\+Rect}. \index{ip\+Border\+Aligned@{ip\+Border\+Aligned}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!ip\+Border\+Aligned@{ip\+Border\+Aligned}}\item[{\em
  80. \hypertarget{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{}ip\+Border\+Aligned\label{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}
  81. }]The element is aligned to one of the layout sides, see \hyperlink{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{set\+Inset\+Alignment}. \end{description}
  82. \end{Desc}
  83. \subsection{Documentación del constructor y destructor}
  84. \hypertarget{class_q_c_p_layout_inset_a3ad984f3221735374cc5dee14356a7dd}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  85. \index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  86. \subsubsection[{Q\+C\+P\+Layout\+Inset}]{\setlength{\rightskip}{0pt plus 5cm}Q\+C\+P\+Layout\+Inset\+::\+Q\+C\+P\+Layout\+Inset (
  87. \begin{DoxyParamCaption}
  88. {}
  89. \end{DoxyParamCaption}
  90. )\hspace{0.3cm}{\ttfamily [explicit]}}\label{class_q_c_p_layout_inset_a3ad984f3221735374cc5dee14356a7dd}
  91. Creates an instance of \hyperlink{class_q_c_p_layout_inset}{Q\+C\+P\+Layout\+Inset} and sets default values.
  92. \subsection{Documentación de las funciones miembro}
  93. \hypertarget{class_q_c_p_layout_inset_ad61529eb576af7f04dff94abb10c745a}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!add\+Element@{add\+Element}}
  94. \index{add\+Element@{add\+Element}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  95. \subsubsection[{add\+Element}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::add\+Element (
  96. \begin{DoxyParamCaption}
  97. \item[{{\bf Q\+C\+P\+Layout\+Element} $\ast$}]{element, }
  98. \item[{Qt\+::\+Alignment}]{alignment}
  99. \end{DoxyParamCaption}
  100. )}\label{class_q_c_p_layout_inset_ad61529eb576af7f04dff94abb10c745a}
  101. Adds the specified {\itshape element} to the layout as an inset aligned at the border (\hyperlink{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{set\+Inset\+Alignment} is initialized with \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{ip\+Border\+Aligned}). The alignment is set to {\itshape alignment}.
  102. {\itshape alignment} is an or combination of the following alignment flags\+: Qt\+::\+Align\+Left, Qt\+::\+Align\+H\+Center, Qt\+::\+Aligh\+Right, Qt\+::\+Align\+Top, Qt\+::\+Align\+V\+Center, Qt\+::\+Align\+Bottom. Any other alignment flags will be ignored.
  103. \begin{DoxySeeAlso}{Ver también}
  104. \hyperlink{class_q_c_p_layout_inset_a8ff61fbee4a1f0ff45c398009d9f1e56}{add\+Element(\+Q\+C\+P\+Layout\+Element $\ast$element, const Q\+Rect\+F \&rect)}
  105. \end{DoxySeeAlso}
  106. \hypertarget{class_q_c_p_layout_inset_a8ff61fbee4a1f0ff45c398009d9f1e56}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!add\+Element@{add\+Element}}
  107. \index{add\+Element@{add\+Element}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  108. \subsubsection[{add\+Element}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::add\+Element (
  109. \begin{DoxyParamCaption}
  110. \item[{{\bf Q\+C\+P\+Layout\+Element} $\ast$}]{element, }
  111. \item[{const Q\+Rect\+F \&}]{rect}
  112. \end{DoxyParamCaption}
  113. )}\label{class_q_c_p_layout_inset_a8ff61fbee4a1f0ff45c398009d9f1e56}
  114. Adds the specified {\itshape element} to the layout as an inset with free positioning/sizing (\hyperlink{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{set\+Inset\+Alignment} is initialized with \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{ip\+Free}). The position and size is set to {\itshape rect}.
  115. {\itshape rect} is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.\+6, 0.\+1, 0.\+35, 0.\+35) will be in the top right corner of the layout, with 35\% width and height of the parent layout.
  116. \begin{DoxySeeAlso}{Ver también}
  117. \hyperlink{class_q_c_p_layout_inset_ad61529eb576af7f04dff94abb10c745a}{add\+Element(\+Q\+C\+P\+Layout\+Element $\ast$element, Qt\+::\+Alignment alignment)}
  118. \end{DoxySeeAlso}
  119. \hypertarget{class_q_c_p_layout_inset_ab096d07b08f9b5455647f3ba7ff60e27}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!element\+At@{element\+At}}
  120. \index{element\+At@{element\+At}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  121. \subsubsection[{element\+At}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Q\+C\+P\+Layout\+Element} $\ast$ Q\+C\+P\+Layout\+Inset\+::element\+At (
  122. \begin{DoxyParamCaption}
  123. \item[{int}]{index}
  124. \end{DoxyParamCaption}
  125. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_ab096d07b08f9b5455647f3ba7ff60e27}
  126. Returns the element in the cell with the given {\itshape index}. If {\itshape index} is invalid, returns 0.
  127. Note that even if {\itshape index} is valid, the respective cell may be empty in some layouts (e.\+g. \hyperlink{class_q_c_p_layout_grid}{Q\+C\+P\+Layout\+Grid}), so this function may return 0 in those cases. You may use this function to check whether a cell is empty or not.
  128. \begin{DoxySeeAlso}{Ver también}
  129. \hyperlink{class_q_c_p_layout_a51fe2675b53e829130b229bc1f7b0f99}{elements}, \hyperlink{class_q_c_p_layout_inset_a2087b97b9266fd9e0f571a8d3cf709f9}{element\+Count}, \hyperlink{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}{take\+At}
  130. \end{DoxySeeAlso}
  131. Implementa \hyperlink{class_q_c_p_layout_afa73ca7d859f8a3ee5c73c9b353d2a56}{Q\+C\+P\+Layout}.
  132. \hypertarget{class_q_c_p_layout_inset_a2087b97b9266fd9e0f571a8d3cf709f9}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!element\+Count@{element\+Count}}
  133. \index{element\+Count@{element\+Count}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  134. \subsubsection[{element\+Count}]{\setlength{\rightskip}{0pt plus 5cm}int Q\+C\+P\+Layout\+Inset\+::element\+Count (
  135. \begin{DoxyParamCaption}
  136. {}
  137. \end{DoxyParamCaption}
  138. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_a2087b97b9266fd9e0f571a8d3cf709f9}
  139. Returns the number of elements/cells in the layout.
  140. \begin{DoxySeeAlso}{Ver también}
  141. \hyperlink{class_q_c_p_layout_a51fe2675b53e829130b229bc1f7b0f99}{elements}, \hyperlink{class_q_c_p_layout_inset_ab096d07b08f9b5455647f3ba7ff60e27}{element\+At}
  142. \end{DoxySeeAlso}
  143. Implementa \hyperlink{class_q_c_p_layout_a39d3e9ef5d9b82ab1885ba1cb9597e56}{Q\+C\+P\+Layout}.
  144. \hypertarget{class_q_c_p_layout_inset_a78c0c494bb5728237cebb63ae8ef5c58}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!inset\+Alignment@{inset\+Alignment}}
  145. \index{inset\+Alignment@{inset\+Alignment}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  146. \subsubsection[{inset\+Alignment}]{\setlength{\rightskip}{0pt plus 5cm}Qt\+::\+Alignment Q\+C\+P\+Layout\+Inset\+::inset\+Alignment (
  147. \begin{DoxyParamCaption}
  148. \item[{int}]{index}
  149. \end{DoxyParamCaption}
  150. ) const}\label{class_q_c_p_layout_inset_a78c0c494bb5728237cebb63ae8ef5c58}
  151. Returns the alignment of the element with the specified {\itshape index}. The alignment only has a meaning, if the inset placement (\hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement}) is \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{ip\+Border\+Aligned}. \hypertarget{class_q_c_p_layout_inset_a8472ff2508807513e4cb0ce0c1d652b3}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!inset\+Placement@{inset\+Placement}}
  152. \index{inset\+Placement@{inset\+Placement}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  153. \subsubsection[{inset\+Placement}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Q\+C\+P\+Layout\+Inset\+::\+Inset\+Placement} Q\+C\+P\+Layout\+Inset\+::inset\+Placement (
  154. \begin{DoxyParamCaption}
  155. \item[{int}]{index}
  156. \end{DoxyParamCaption}
  157. ) const}\label{class_q_c_p_layout_inset_a8472ff2508807513e4cb0ce0c1d652b3}
  158. Returns the placement type of the element with the specified {\itshape index}. \hypertarget{class_q_c_p_layout_inset_a5ec7037b3b8d20fbf9560e01779b1442}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!inset\+Rect@{inset\+Rect}}
  159. \index{inset\+Rect@{inset\+Rect}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  160. \subsubsection[{inset\+Rect}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Rect\+F Q\+C\+P\+Layout\+Inset\+::inset\+Rect (
  161. \begin{DoxyParamCaption}
  162. \item[{int}]{index}
  163. \end{DoxyParamCaption}
  164. ) const}\label{class_q_c_p_layout_inset_a5ec7037b3b8d20fbf9560e01779b1442}
  165. Returns the rect of the element with the specified {\itshape index}. The rect only has a meaning, if the inset placement (\hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement}) is \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{ip\+Free}. \hypertarget{class_q_c_p_layout_inset_ab5a2f2b88c05e369fd7da9583d17aa3a}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!select\+Test@{select\+Test}}
  166. \index{select\+Test@{select\+Test}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  167. \subsubsection[{select\+Test}]{\setlength{\rightskip}{0pt plus 5cm}double Q\+C\+P\+Layout\+Inset\+::select\+Test (
  168. \begin{DoxyParamCaption}
  169. \item[{const Q\+Point\+F \&}]{pos, }
  170. \item[{bool}]{only\+Selectable, }
  171. \item[{Q\+Variant $\ast$}]{details = {\ttfamily 0}}
  172. \end{DoxyParamCaption}
  173. ) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_ab5a2f2b88c05e369fd7da9583d17aa3a}
  174. The inset layout is sensitive to events only at areas where its child elements are sensitive. If the select\+Test method of any of the child elements returns a positive number for {\itshape pos}, this method returns a value corresponding to 0.\+99 times the parent plot\textquotesingle{}s selection tolerance. The inset layout is not selectable itself by default. So if {\itshape only\+Selectable} is true, -\/1.\+0 is returned.
  175. See \hyperlink{class_q_c_p_layerable_a4001c4d0dfec55598efa4d531f2179a9}{Q\+C\+P\+Layerable\+::select\+Test} for a general explanation of this virtual method.
  176. Reimplementado de \hyperlink{class_q_c_p_layout_element_a9fcf5d0ea19f2c23b2b528bce2c6f095}{Q\+C\+P\+Layout\+Element}.
  177. \hypertarget{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!set\+Inset\+Alignment@{set\+Inset\+Alignment}}
  178. \index{set\+Inset\+Alignment@{set\+Inset\+Alignment}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  179. \subsubsection[{set\+Inset\+Alignment}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::set\+Inset\+Alignment (
  180. \begin{DoxyParamCaption}
  181. \item[{int}]{index, }
  182. \item[{Qt\+::\+Alignment}]{alignment}
  183. \end{DoxyParamCaption}
  184. )}\label{class_q_c_p_layout_inset_a62882a4f9ad58bb0f53da12fde022abe}
  185. If the inset placement (\hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement}) is \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa81e7df4a785ddee2229a8f47c46e817}{ip\+Border\+Aligned}, this function is used to set the alignment of the element with the specified {\itshape index} to {\itshape alignment}.
  186. {\itshape alignment} is an or combination of the following alignment flags\+: Qt\+::\+Align\+Left, Qt\+::\+Align\+H\+Center, Qt\+::\+Aligh\+Right, Qt\+::\+Align\+Top, Qt\+::\+Align\+V\+Center, Qt\+::\+Align\+Bottom. Any other alignment flags will be ignored. \hypertarget{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!set\+Inset\+Placement@{set\+Inset\+Placement}}
  187. \index{set\+Inset\+Placement@{set\+Inset\+Placement}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  188. \subsubsection[{set\+Inset\+Placement}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::set\+Inset\+Placement (
  189. \begin{DoxyParamCaption}
  190. \item[{int}]{index, }
  191. \item[{{\bf Q\+C\+P\+Layout\+Inset\+::\+Inset\+Placement}}]{placement}
  192. \end{DoxyParamCaption}
  193. )}\label{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}
  194. Sets the inset placement type of the element with the specified {\itshape index} to {\itshape placement}.
  195. \begin{DoxySeeAlso}{Ver también}
  196. \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192}{Inset\+Placement}
  197. \end{DoxySeeAlso}
  198. \hypertarget{class_q_c_p_layout_inset_aa487c8378a6f9533567a2e6430099dc3}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!set\+Inset\+Rect@{set\+Inset\+Rect}}
  199. \index{set\+Inset\+Rect@{set\+Inset\+Rect}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  200. \subsubsection[{set\+Inset\+Rect}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::set\+Inset\+Rect (
  201. \begin{DoxyParamCaption}
  202. \item[{int}]{index, }
  203. \item[{const Q\+Rect\+F \&}]{rect}
  204. \end{DoxyParamCaption}
  205. )}\label{class_q_c_p_layout_inset_aa487c8378a6f9533567a2e6430099dc3}
  206. If the inset placement (\hyperlink{class_q_c_p_layout_inset_a63298830744d5d8c5345511c00fd2144}{set\+Inset\+Placement}) is \hyperlink{class_q_c_p_layout_inset_a8b9e17d9a2768293d2a7d72f5e298192aa4802986ea2cea457f932b115acba59e}{ip\+Free}, this function is used to set the position and size of the element with the specified {\itshape index} to {\itshape rect}.
  207. {\itshape rect} is given in fractions of the whole inset layout rect. So an inset with rect (0, 0, 1, 1) will span the entire layout. An inset with rect (0.\+6, 0.\+1, 0.\+35, 0.\+35) will be in the top right corner of the layout, with 35\% width and height of the parent layout.
  208. Note that the minimum and maximum sizes of the embedded element (\hyperlink{class_q_c_p_layout_element_a5dd29a3c8bc88440c97c06b67be7886b}{Q\+C\+P\+Layout\+Element\+::set\+Minimum\+Size}, \hyperlink{class_q_c_p_layout_element_a74eb5280a737ab44833d506db65efd95}{Q\+C\+P\+Layout\+Element\+::set\+Maximum\+Size}) are enforced. \hypertarget{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!simplify@{simplify}}
  209. \index{simplify@{simplify}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  210. \subsubsection[{simplify}]{\setlength{\rightskip}{0pt plus 5cm}void Q\+C\+P\+Layout\+Inset\+::simplify (
  211. \begin{DoxyParamCaption}
  212. {}
  213. \end{DoxyParamCaption}
  214. )\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}
  215. The Q\+C\+P\+Inset\+Layout does not need simplification since it can never have empty cells due to its linear index structure. This method does nothing.
  216. Reimplementado de \hyperlink{class_q_c_p_layout_a41e6ac049143866e8f8b4964efab01b2}{Q\+C\+P\+Layout}.
  217. \hypertarget{class_q_c_p_layout_inset_a9ac707ccff650633b97f52dd5cddcf49}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!take@{take}}
  218. \index{take@{take}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  219. \subsubsection[{take}]{\setlength{\rightskip}{0pt plus 5cm}bool Q\+C\+P\+Layout\+Inset\+::take (
  220. \begin{DoxyParamCaption}
  221. \item[{{\bf Q\+C\+P\+Layout\+Element} $\ast$}]{element}
  222. \end{DoxyParamCaption}
  223. )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_a9ac707ccff650633b97f52dd5cddcf49}
  224. Removes the specified {\itshape element} from the layout and returns true on success.
  225. If the {\itshape element} isn\textquotesingle{}t in this layout, returns false.
  226. Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \hyperlink{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}{simplify}.
  227. \begin{DoxySeeAlso}{Ver también}
  228. \hyperlink{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}{take\+At}
  229. \end{DoxySeeAlso}
  230. Implementa \hyperlink{class_q_c_p_layout_ada26cd17e56472b0b4d7fbbc96873e4c}{Q\+C\+P\+Layout}.
  231. \hypertarget{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}{}\index{Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}!take\+At@{take\+At}}
  232. \index{take\+At@{take\+At}!Q\+C\+P\+Layout\+Inset@{Q\+C\+P\+Layout\+Inset}}
  233. \subsubsection[{take\+At}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Q\+C\+P\+Layout\+Element} $\ast$ Q\+C\+P\+Layout\+Inset\+::take\+At (
  234. \begin{DoxyParamCaption}
  235. \item[{int}]{index}
  236. \end{DoxyParamCaption}
  237. )\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_q_c_p_layout_inset_ad6756a3b507e20496aaf7f5ca16c47d1}
  238. Removes the element with the given {\itshape index} from the layout and returns it.
  239. If the {\itshape index} is invalid or the cell with that index is empty, returns 0.
  240. Note that some layouts don\textquotesingle{}t remove the respective cell right away but leave an empty cell after successful removal of the layout element. To collapse empty cells, use \hyperlink{class_q_c_p_layout_inset_abb9eb23bf2d7c587a8abe02d065eae0a}{simplify}.
  241. \begin{DoxySeeAlso}{Ver también}
  242. \hyperlink{class_q_c_p_layout_inset_ab096d07b08f9b5455647f3ba7ff60e27}{element\+At}, \hyperlink{class_q_c_p_layout_inset_a9ac707ccff650633b97f52dd5cddcf49}{take}
  243. \end{DoxySeeAlso}
  244. Implementa \hyperlink{class_q_c_p_layout_a5a79621fa0a6eabb8b520cfc04fb601a}{Q\+C\+P\+Layout}.
  245. La documentación para esta clase fue generada a partir de los siguientes ficheros\+:\begin{DoxyCompactItemize}
  246. \item
  247. \hyperlink{qcustomplot_8h}{qcustomplot.\+h}\item
  248. \hyperlink{qcustomplot_8cpp}{qcustomplot.\+cpp}\end{DoxyCompactItemize}