Questions tagged [visibility]
Visibility is an attribute of an object. It may refer to the concept of having something visible (or not) on the graphical interface, or a symbol visibility in linkage. This tag should not be used in place of the more specific tags [memory-visibility] or [class-visibility].
visibility
3,193
questions
-1
votes
1
answer
86
views
How to correctly link a C++ library that has different behaviors depending on its compilation?
I have a library called Print and the function println, which mimics printf. If compiled with the directive USE_DEBUG_PRINT, println actually prints something. If compiled without this define, it ...
0
votes
0
answers
61
views
Go Property Visibility & API Design
So I have a LineItem struct that contains a Price property that needs to be exported for SQLx to set the value from the database but the desired value requires logic to be applied to get the value (e....
1
vote
1
answer
207
views
Swift Package's extension property's visibility
When defining a property as an Extension in a Swift Package, if it was created with internal visibility, is it safe to define a property of the same name on the side that uses it? Or could there be ...
0
votes
0
answers
41
views
Android - Why this TextView is moving its position after changing its visibility programmatically?
Initially both TextViews are visible and aligned correctly:
After clicking the Button, I set both TextViews visibility to GONE. Second time I click on the Button, I set the visibility again to ...
0
votes
0
answers
23
views
I read that 'hidden' comps cause issues in IE. What is the safest method to show/hide elements for cross browser compatibility?
I have several components such as tooltips and menus that are not always visible. I read somewhere that visibility = hidden can throw errors in IE but I don't know how accurate that is. If so, for ...
0
votes
2
answers
123
views
Dynamically added Views not visible
I am trying to add TextViews to a LinearLayout wrapped in a ScrollView during runtime, but the visibility of the TextViews will eventually not display on screen even though their visibility flags are ...
0
votes
1
answer
79
views
C++ program symbols visibility issues in libgcc and ld
For this question: version-script and hidden visibility
I saw this comment:
Visibility annotations are preferred to linker scripts as they allow more aggressive optimization by compilers. Scripts are ...
0
votes
2
answers
190
views
How to make sibling div element visible when list item is hovered on
I have the following simple header component with navigation items, which when hovered on should add the following two css rules to the mega-menu div element so that it appears:
visibility: visible;
...
0
votes
0
answers
151
views
What are the visibility rules for package com.sun.tools.javac.code in oracle open jdk version 20?
I am writing a database management program in java in maven in intellij IDEA. For now, the code is only connecting me to the database in MySQL. The code itself has no errors. However, upon running it, ...
0
votes
1
answer
358
views
Hide divi module with advanced custom fields
I hope anyone can help me.
Is there a way to toggle the visibility of a Divi module with ACF in Wordpress?
I tried it myself an searched in forums
0
votes
1
answer
76
views
How can I make an element stop glitching if it gains visibility when another element behind it is hovered?
I have two divs; let's call them div 1 and div 2 and the one on top of the other is set to visibility:hidden:
Basically the info div is supposed to appear whenever you hover the other one.
That part ...
0
votes
1
answer
125
views
How can I make my Flutter application visible to users with Gmail.com email addresses on the Google Play Store?
I have recently deployed my Flutter application to the production mode on the Google Play Store. The application is targeted for 177 countries and should be available to all users, regardless of their ...
0
votes
0
answers
22
views
DOM Operation Unsuccessful - Show HTML in Element
Working code here is mixed with non-working code. The code works up until the line where it commands the innerText to be of
x.innerHTML.substring(3,-3)
This is the function I am calling on a click ...
0
votes
0
answers
70
views
Having trouble getting button visibility to work with view binding
Here is the github link:
https://github.com/dunow0033/BudgetTracker
Here is the XML for a button for updating a budget entry:
<Button
android:id="@+id/updateBtn"
android:...
1
vote
1
answer
869
views
Allowing binary in the same crate to use library's modules but disallowing external crates to use the same modules
I have three files under the src directory:
src
|____ keys.rs // a 'sub-module' under `lib.rs`
|____ lib.rs
|____ main.rs // binary file
In my cargo.toml, I specify specifically the paths to the lib ...
1
vote
1
answer
183
views
Strip symbols from static library, or import only specific symbols during linking
The setup is the same as in my other question here.
I thought a bit more about the problem, and it turns out, of all symbols exported from the libraries I'm using, I only need a few of them. In the ...
1
vote
2
answers
806
views
Rust idiom for exposing public fields while restricting direct struct construction
I know of the visibility rules in Rust and the typical 'constructor' patterns in Rust, e.g. via associated functions, commonly named as new or if all fields of the struct are public, via 'direct' ...
3
votes
1
answer
128
views
Can BlockingQueue make MemorySegment visible for multiple threads?
I am using JDK20's FFI, and I need to pass a Object to a BlockingQueue to shared it from one thread to another. The Object contains several MemorySegment field, which belongs to Arena.openShared(). ...
0
votes
1
answer
211
views
TCL - invalid command name ... but different
I try to add two buttons to the console window for convenience and to play around with it.
The problem is: The first button just triggers an "exit". This works fine.
The second button ...
0
votes
1
answer
333
views
Toggle visibility of the meshes from the scene in Three.js
I have faced with an issue. when I set the cubes' visible property to false. It is hiding the mesh from the user, but it is actual place is staying there and preventing from clicking the another mesh ...
2
votes
1
answer
172
views
UML classes diagram the question of relations and visibility of fields
I have a few questions regarding my design after having reviewed a number of information sources.
I decided to link the User and UserSettings classes with a composition relation (since user settings ...
0
votes
0
answers
116
views
Override fvisibility in Fortran routine
In a shared object, I can make my Fortran routines unavailable from outside using -fvisibility=hidden.
In C/C++ you can override this setting in your routines by void __attribute__ ((visibility("...
0
votes
0
answers
178
views
SSRS Report Incorrectly Displays Conditionally Hidden Tablix After a Hidden Subgroup is Toggled on a Separate Tablix
My SSRS report has multiple Tablix elements. Their visibility is conditional to the content of the datasets they use. It works as intended when first displayed. When the dataset is empty, the Tablix ...
0
votes
1
answer
29
views
How can I make a control invisible with code in a Python FMX GUI App?
I made the following GUI in DelphiFMX for Python that contains two buttons and a rectangle. I simply want to hide and show the rectangle with the button clicks:
What I've tried doing so far is:
def ...
0
votes
1
answer
254
views
Access Private Variable in Solidity
I already have searched for my question on Stack Overflow and on the documentation (https://docs.soliditylang.org/en/develop/contracts.html#visibility-and-getters), but I am not sure of the answer.
To ...
0
votes
1
answer
50
views
How can I make an element's attribute only appear on hover when another element is hidden?
I'm having trouble figuring out how to make the data-title only appear on hovering of the up-arrow only when the footer is down/not showing. However, I would also appreciate another solution where the ...
-1
votes
1
answer
94
views
Using only javascript and css: can I enable the user to selectively display and hide divs of different classes, via a single drop-down menu?
I have an html page consisting of 80-100 css-styled divs each containing a grid with an image and information about a single artwork. (Each div already has a unique Id, to enable linking-in to a ...
2
votes
4
answers
2k
views
Get current index/visible item of FlatList
I have a scrolling view of posts. Each post has a corresponding user and I have a header that shows the user info of the current visible post. With Flutter this was simple, I just wrapped the post ...
1
vote
1
answer
309
views
Do inherited methods use the visibility, methods and attributes of the superclass or subclass?
What I assume is that an inherited method will, by standard, use the methods and attributes of the class whose object is used to execute that method.
Here's an example for my question, it's from a ...
0
votes
1
answer
371
views
UX: should I hide basic functionality that users can't reach?
I'm working on dashboards now, e.g. employee form. Some users have permissions to delete employee and some are not. Usually these permissions are changed only if user assigned to new type, e.g. from ...
0
votes
1
answer
380
views
Icon does not become invisible in jetpack compose
I have simple viewpager and toolbar in my code :
@Composable
fun DefaultAppBar(
mainViewModel: MainViewModel
) {
CompositionLocalProvider(LocalLayoutDirection provides ...
0
votes
2
answers
248
views
Showing only one of several widgets in Flutter
I have a space where I to show either widget1 or widget2 (and never both). How?
In fact, widget1 to contain a simple case of retrieved information and a button to switch to show widget2 (with more ...
0
votes
1
answer
170
views
three js weird artifacts with objects intersection
Trying to get into three js and following some tutorials here and there but I'm stuck on some very basic stuff I feel, that I can't find the solution to.
The problem I have is shown better on the gif ...
1
vote
0
answers
100
views
Avoiding globally overloaded new and delete(in one shared library) to be called while calling new from other shared library
I have overloaded new globally in get_seven.cpp. Also, I am using -fvisibility=hidden option, but still If I do new from get_seven.cpp, my new is called. I do not want that. How can I achieve that ...
2
votes
1
answer
185
views
Rust visibility across files in same folder
I have divided my Rust project into multiple files in same folder for tidiness. Now each file is perceived as a mod of its own and I have to mark everything pub(crate). Is there a way to publicize all ...
0
votes
1
answer
742
views
why can't I access a protected method from a private method if the protected ones are inherited by the subclasses?
I do not understand this particular case or what Alexander says.
class instance is not the same as class?
As already Alexander Larikov said that you can't access protected
methods from class instance ...
2
votes
1
answer
553
views
Get all visible windows with JNA
I am programming an overlay in Java showing information for multiple windows.
I need it to follow the window that it is tracking, and to do this I regularly take information about the current windows ...
1
vote
1
answer
253
views
How to Hide a Button with a Visibility widget
Few Informations about me: Im 17y/o and from Germany.
I have made a ListView to show Multiple Headers. Each Header should be a able to store multiple Subheaders which can be opened or closed. It ...
0
votes
1
answer
158
views
My widget is rebuilt when toggling visibility where it shouldn't
I have a StatefulWidget that basically consists on a background widget (an playing video) and foreground HUD Column of Widget. The later visibility can be toggled by taping on an ElevatedButton.
The ...
1
vote
1
answer
442
views
How do I keep a mod private and use it in another module within the same project in Rust?
So I want to have some modules defined in lib.rs but not make them public but only available for use within the project.
in my lib.rs, if I have the definition as this:
pub mod args;
in my main.rs, I ...
0
votes
1
answer
691
views
how to unhide a hidden div with bootstrap
I'm working on a site built on bootstrap and have a column down the right side that contains a search module and some other things. it gets hidden on smaller screens. I'm hoping to restore just the ...
0
votes
1
answer
807
views
Can functions with the onlyOwner modifier be called by the owner if they are set with visibility external instead of public?
I have some functions that I'm trying to save gas on.
onlyOwner modifier is self explanatory.
This is related to a previous question that I had, where I noticed that address(this) is different from ...
0
votes
1
answer
671
views
My visibility condition in SSRS caused "[BC30516] Overload resolution failed because no accessible 'IIf' accepts this number of arguments." error
I am using the following expression for a row visibility rule:
=IIF(Sum(Fields!bt_actual_usage.Value) > 0
AND (Count(Fields!bt_actual_usage.Value) < Parameters!Consecutive.Value)), true, false)
...
1
vote
0
answers
674
views
React Native: How do I change the scroll position of a ScrollView when the element is not visible?
I have a horizontal FlatList which renders a list of vertical ScrollView cards.
When I scroll the FlatList, I would like the ScrollView cards to reset their scroll position to the top. I do not want ...
0
votes
1
answer
1k
views
How to remove white space on website from SVG symbol at botton of index.html
On youtube I learned how to place my SVG code inside a elements at the bottom of my index.html and whenever I want to use the SVG then I would use the tags. Doing this makes sure that my code ...
0
votes
1
answer
322
views
Make element visible when Validation.HasError is true
I have the following xaml markup:
<GroupBox Margin="10" Padding="20" Header="Case 5 - Custom Error Object">
<GroupBox.DataContext>
...
0
votes
0
answers
194
views
Weird behaviour regarding visibility of symbols in C++
I was trying to hide all symbols in a shared object file except for a certain selection
The hiding part I was doing via -fvisibility=hidden compiler option
The exception part I was doing via ...
1
vote
1
answer
379
views
How can I show a Visibility widget based on multiple conditions?
I'm building a restaurant menu app and one of the features of the menu is to allow the users to pick their allergies so the app will turn the menu items containing those allergenics unclickable.
bool ...
6
votes
1
answer
2k
views
How to import/use macro from different module in the same crate?
Real life scenario:
I wanted to use crate::app::verbose_trace!("string literal") inside crate::app::args::parse module.
Reproducable scenario:
After an hour of attempts, I came with ...
0
votes
1
answer
238
views
'void android.widget.LinearLayout.setVisibility(int)' on a null object reference when i want to display a LinearLayout
I have a problem with a button that modifies the visibility of a LinearLayout
I always get the error
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout....