![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/GNUstep/Documentation/Developer/Gui/Reference/ |
Upload File : |
<?xml version="1.0"?> <!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 1.0.4//EN" "http://www.gnustep.org/gsdoc-1_0_4.dtd"> <gsdoc base="NSBox" up="Gui"> <head> <title>NSBox</title> <author name="Scott Christley"> <email address="scottc@net-community.com"> scottc@net-community.com </email> </author> <abstract> Simple box view that can display a border and title </abstract> <copy>1996-2015 Free Software Foundation, Inc.</copy> </head> <body> <front><contents /></front> <chapter> <heading> Software documentation for the NSBox class </heading> <class name="NSBox" super="NSView" ovadd="1.0.0"> <declared>AppKit/NSBox.h</declared> <conform>NSCoding</conform> <desc> <p> TODO : Description </p> </desc> <ivariable type="NSColor*" name="_border_color" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSRect" name="_border_rect" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSBorderType" name="_border_type" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="CGFloat" name="_border_width" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSBoxType" name="_box_type" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="id" name="_cell" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="id" name="_content_view" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="CGFloat" name="_corner_radius" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSColor*" name="_fill_color" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSSize" name="_offsets" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSTitlePosition" name="_title_position" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="NSRect" name="_title_rect" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <ivariable type="BOOL" name="_transparent" validity="protected" ovadd="1.0.0"> <desc> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </desc> </ivariable> <method type="NSColor*" ovadd="10.5.0"> <sel>borderColor</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="NSRect" ovadd="1.0.0"> <sel>borderRect</sel> <desc> <p> Returns the border rectangle of the box. </p> </desc> </method> <method type="NSBorderType" ovadd="1.0.0"> <sel>borderType</sel> <desc> <p> Returns the NSBox's border type. See <ref type="type" id="NSBorderType"> NSBorderType </ref> for more information. The default border type is <ref type="type" id="NSBorderType"> NSGrooveBorder </ref> . </p> <p> See Also: <ref type="method" id="-setBorderType:"> -setBorderType: </ref> </p> </desc> </method> <method type="CGFloat" ovadd="10.5.0"> <sel>borderWidth</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="NSBoxType" ovadd="10.0.0"> <sel>boxType</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="id" ovadd="1.0.0"> <sel>contentView</sel> <desc> <p> Returns the NSBox's content view. The content view is created as NSView when the box is initialized. The contentView is resizes when needed. </p> <p> See Also: <ref type="method" id="-setContentView:"> -setContentView: </ref> </p> </desc> </method> <method type="NSSize" ovadd="1.0.0"> <sel>contentViewMargins</sel> <desc> <p> Returns an NSSize containing the interior margins of the receiver. An NSBox's content view margins are empty space that is subtracted from the top, bottom, and sides as padding between the inside of the box and the frame of its content view. </p> <p> See Also: <ref type="method" id="-setContentViewMargins:"> -setContentViewMargins: </ref> </p> </desc> </method> <method type="CGFloat" ovadd="10.5.0"> <sel>cornerRadius</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="NSColor*" ovadd="10.5.0"> <sel>fillColor</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="BOOL" ovadd="10.5.0"> <sel>isTransparent</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="NSSize" ovadd="0.0.0" ovrem="0.0.0"> <sel>minimumSize</sel> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="10.5.0"> <sel>setBorderColor:</sel> <arg type="NSColor*">newBorderColor</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setBorderType:</sel> <arg type="NSBorderType">aType</arg> <desc> <p> Sets the border type to <var>aType</var>, resizes the content view frame if needed, and marks self for display. See <ref type="type" id="NSBorderType"> NSBorderType </ref> for more informations The default boder type is <ref type="type" id="NSBorderType"> NSGrooveBorder </ref> . </p> <p> See Also: <ref type="method" id="-borderType"> -borderType </ref> </p> </desc> </method> <method type="void" ovadd="10.5.0"> <sel>setBorderWidth:</sel> <arg type="CGFloat">borderWidth</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="10.0.0"> <sel>setBoxType:</sel> <arg type="NSBoxType">aType</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setContentView:</sel> <arg type="NSView*">aView</arg> <desc> <p> Sets the content view to <var>aView</var>. The current content view is replaced by <ref type="method" id="-replaceSubview:with:"> -replaceSubview:with: </ref> . So you should <ref type="method" id="-retain"> -retain </ref> the current view if you want to use it later. The contentView frame is resized if needed. </p> <p> See Also: <ref type="method" id="-contentView"> -contentView </ref> </p> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setContentViewMargins:</sel> <arg type="NSSize">offsetSize</arg> <desc> <p> Sets the NSSize containing the interior margins to <var>offsetSize</var>. An NSBox's content view margins are empty space that is subtracted from the top, bottom, and sides as padding between the inside of the box and the frame of its content view </p> <p> See Also: <ref type="method" id="-contentViewMargins"> -contentViewMargins </ref> </p> </desc> </method> <method type="void" ovadd="10.5.0"> <sel>setCornerRadius:</sel> <arg type="CGFloat">cornerRadius</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="10.5.0"> <sel>setFillColor:</sel> <arg type="NSColor*">newFillColor</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setFrameFromContentFrame:</sel> <arg type="NSRect">contentFrame</arg> <desc> <p> Resizes the NSBox to fit the content view frame <var>contentFrame</var>. </p> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setTitle:</sel> <arg type="NSString*">aString</arg> <desc> <p> Sets the title cell to <var>aString</var>, resizes the content view frame if needed and marks self for display. </p> <p> Warning: This method does not implement the Cocoa behaviour </p> <p> See Also: <ref type="method" id="-title">-title</ref> <ref type="method" id="-setStringValue:" class="NSCell"> [NSCell -setStringValue:] </ref> </p> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setTitleFont:</sel> <arg type="NSFont*">fontObj</arg> <desc> <p> Sets the title cell font to <var>fontObj</var>, resizes the content view frame if needed and marks self for display. </p> <p> See Also: <ref type="method" id="-titleFont"> -titleFont </ref> <ref type="method" id="-setFont:" class="NSCell"> [NSCell -setFont:] </ref> </p> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>setTitlePosition:</sel> <arg type="NSTitlePosition">aPosition</arg> <desc> <p> Sets the title cell position to <var>aPosition</var> , resizes the content view frame if needed and marks self for display. See <ref type="type" id="NSTitlePosition"> NSTitlePosition </ref> for more information. The default position is <ref type="type" id="NSTitlePosition"> NSAtTop </ref> . </p> <p> See Also: <ref type="method" id="-titlePosition"> -titlePosition </ref> </p> </desc> </method> <method type="void" ovadd="10.0.0"> <sel>setTitleWithMnemonic:</sel> <arg type="NSString*">aString</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="10.5.0"> <sel>setTransparent:</sel> <arg type="BOOL">transparent</arg> <desc> <em>Description forthcoming.</em> </desc> </method> <method type="void" ovadd="1.0.0"> <sel>sizeToFit</sel> <desc> <p> Resizes the NSBox and its content view to fit its subviews. </p> </desc> </method> <method type="NSString*" ovadd="1.0.0"> <sel>title</sel> <desc> <p> Returns title cell string value. </p> <p> See Also: <ref type="method" id="-setTitle:"> -setTitle: </ref> <ref type="method" id="-stringValue" class="NSCell"> [NSCell -stringValue] </ref> </p> </desc> </method> <method type="id" ovadd="1.0.0"> <sel>titleCell</sel> <desc> <p> Returns the title cell </p> </desc> </method> <method type="NSFont*" ovadd="1.0.0"> <sel>titleFont</sel> <desc> <p> Returns the title cell font. </p> <p> See Also: <ref type="method" id="-setTitleFont:"> -setTitleFont: </ref> <ref type="method" id="-font" class="NSCell"> [NSCell -font] </ref> </p> </desc> </method> <method type="NSTitlePosition" ovadd="1.0.0"> <sel>titlePosition</sel> <desc> <p> Returns the title position. See <ref type="type" id="NSTitlePosition"> NSTitlePosition </ref> for more information. The default position is <ref type="type" id="NSTitlePosition"> NSAtTop </ref> </p> <p> See Also: <ref type="method" id="-setTitlePosition:"> -setTitlePosition: </ref> </p> </desc> </method> <method type="NSRect" ovadd="1.0.0"> <sel>titleRect</sel> <desc> <p> Returns the title rectangle </p> </desc> </method> </class> </chapter> </body> </gsdoc>