GuiLayoutProperties.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include <UI\Core\BSize.h>
11 #include <UI\Layout\Margins.h>
12 #include <UI\Layout\DockLayout.h>
13 #include <UI\Layout\LayoutFlags.h>
14 #include <Mstn\MdlApi\dlogbox.r.h>
15 
16 #define COLSPAN_REMAINDER -1
17 
19 
21 
22 //=======================================================================================
27 //=======================================================================================
29 {
30 public:
41  MSCORE_EXPORT StatusInt SetMargins (int margins);
42 
56  MSCORE_EXPORT StatusInt SetMargins (int left, int top, int right, int bottom);
57 
63  MSCORE_EXPORT StatusInt SetLeftMargin (int margin);
64 
70  MSCORE_EXPORT StatusInt SetTopMargin (int margin);
71 
77  MSCORE_EXPORT StatusInt SetRightMargin (int margin);
78 
84  MSCORE_EXPORT StatusInt SetBottomMargin (int margin);
85 
92  MSCORE_EXPORT StatusInt SetSpacing (int spacing);
93 
100  MSCORE_EXPORT StatusInt SetHSpacing (int spacing);
101 
108  MSCORE_EXPORT StatusInt SetVSpacing (int spacing);
109 
121  MSCORE_EXPORT StatusInt SetStretch (int stretch);
122 
129  MSCORE_EXPORT StatusInt SetDockPosition (DockPosition dockPosition);
130 
137  MSCORE_EXPORT StatusInt SetColumn (int column);
138 
149  MSCORE_EXPORT StatusInt SetColSpan (int colSpan);
150 
157  MSCORE_EXPORT StatusInt SetRow (int row);
158 
165  MSCORE_EXPORT StatusInt SetRowSpan (int rowSpan);
166 
173  MSCORE_EXPORT StatusInt SetHorizontalSizePolicy (SizePolicyType horizontalType);
174 
181  MSCORE_EXPORT StatusInt SetVerticalSizePolicy (SizePolicyType verticalType);
182 
189  MSCORE_EXPORT StatusInt SetSizePolicy (SizePolicyType horizontalType, SizePolicyType verticalType);
190 
197  MSCORE_EXPORT StatusInt SetHorizontalAlignment (HorizontalAlignment alignment);
198 
205  MSCORE_EXPORT StatusInt SetVerticalAlignment (VerticalAlignment alignment);
206 
213  MSCORE_EXPORT StatusInt SetMinWidth (int minWidth);
214 
221  MSCORE_EXPORT StatusInt SetMinHeight (int minHeight);
222 
226  MSCORE_EXPORT StatusInt SetMinSize (BSize const& minSize);
227 
234  MSCORE_EXPORT StatusInt SetMaxWidth (int maxWidth);
235 
242  MSCORE_EXPORT StatusInt SetMaxHeight (int maxHeight);
243 
247  MSCORE_EXPORT StatusInt SetMaxSize (BSize const& maxSize);
248 
252  MSCORE_EXPORT StatusInt SetOriginalSize (BSize const& size);
253 
260  MSCORE_EXPORT StatusInt SetGridWidthPolicy (GridWidthPolicy policy);
261 
262 
266  MSCORE_EXPORT Margins GetMargins ();
267 
271  MSCORE_EXPORT int GetSpacing ();
272 
276  MSCORE_EXPORT int GetHSpacing ();
277 
281  MSCORE_EXPORT int GetVSpacing ();
282 
291  MSCORE_EXPORT int GetStretch ();
292 
296  MSCORE_EXPORT LayoutDockPosition GetDockPosition ();
297 
301  MSCORE_EXPORT int GetColumn ();
302 
307  MSCORE_EXPORT int GetColSpan ();
308 
312  MSCORE_EXPORT int GetRow ();
313 
317  MSCORE_EXPORT int GetRowSpan ();
318 
322  MSCORE_EXPORT SizePolicyR GetSizePolicy ();
323 
327  MSCORE_EXPORT LayoutAlignment GetAlignment ();
328 
332  MSCORE_EXPORT BSize GetMinSize ();
333 
337  MSCORE_EXPORT BSize GetMaxSize ();
338 
342  MSCORE_EXPORT BSize GetOriginalSize ();
343 
347  MSCORE_EXPORT GridWidthPolicy GetGridWidthPolicy ();
348 
349 
350 
351 };
352 
354 
The SizePolicy class is a layout attribute describing horizontal and vertical resizing policy...
Definition: SizePolicy.h:50
#define END_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:30
HorizontalAlignment
HorizontalAlignment used in GuiLayoutProperties methods and EXTINTATTR_HORIZONTAL_ALIGNMENT.
Definition: dlogbox.r.h:2516
LayoutFlags - Creates a "Flags" class out of an enum with constructors and operator overloading...
Definition: LayoutFlags.h:43
#define BEGIN_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:29
The BSize class defines the size of a two - dimensional object using integer point precision...
Definition: BSize.h:38
The Margins class defines the four margins of a rectangle.
Definition: Margins.h:23
DockPosition
Definition: MicroStation.r.h:602
#define USING_NAMESPACE_BENTLEY_UIFRAMEWORK
Definition: UIFramework.h:16
GuiLayoutProperties contains Dialog Layout Manager information attached to a RawItemHdr.
Definition: GuiLayoutProperties.h:28
LayoutDockPosition
LayoutDockPosition - position of the docked content along the top, bottom, left or right edge...
Definition: DockLayout.h:24
GridWidthPolicy
GridWidthPolicy used in GuiLayoutProperties methods and EXTINTATTR_GRID_WIDTHPOLICY.
Definition: dlogbox.r.h:2536
int StatusInt
Definition: Bentley.h:222
VerticalAlignment
VerticalAlignment used in GuiLayoutProperties methods and EXTINTATTR_VERTICAL_ALIGNMENT.
Definition: dlogbox.r.h:2526
SizePolicyType
Fixed - The "desired" size is the only acceptable alternative, so the control can never grow or shrin...
Definition: LayoutEnums.r.h:67
size_type size() const
Definition: stdcxx/bstdmap.h:214

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.