ewasylishen@gmail.com)ETDecoratorItem subclass which makes decorates a layout item with a title bar, allowing the item to be collapsed (like window shading in some window managers).
Copyright: (C) 2009 Eric Wasylishen
- Declared in:
- ETTitleBarItem.h
ETView also offers a customizable title bar. The
title bar visibility can always be turned on or off.
By default, it's turned off. If you are in Live
Development mode, most view title bars are
usually visible and are tuned for live UI editing
with various buttons to switch between available
edition modes like view, model, object, component
etc. By clicking and dragging a title bar in Live
Development you can edit your UI layout.
Outside of Live Development mode, title bars
support collapse and expand operations (think of it
as window shading at view level) which is useful to
build complex inspectors or very flexible UI based on
disclosable views. Title bar support also means
an ETContainer embedding ETView instances and using a
layout of type ETFreeLayout will give you a built-in
window manager. Title bar views can be customized at
application-level by setting a title bar
view prototype to be reused by all instances.
Instance-by-instance customization is
also possible by calling
-setTitleBarView:
, in this case calling
+setTitleBarViewPrototype:
will never be reflected at instance level until you
call
-setTitleBarView:
nil which resets the title bar to the
class-shared prototype.
Returns the height of the title bar or zero when no title bar is used.